PyADM - Python Admin Toolkit. The swiss army knife for every engineer.
Project description
pyadm - Swiss Army Knife for Engineers and Administrators
pyadm is a versatile command-line tool designed as a Swiss Army Knife for engineers and administrators.
It provides modular functionality to perform various tasks efficiently.
Currently, the only available module is ldap
, which enables LDAP-related operations.
Installation
To install pyadm
, use the following command (soon!):
pip install pyadm-toolkit
Usage
The general command structure for pyadm is as follows:
pyadm MODULE SUBCOMMAND [OPTIONS]
To use the LDAP module, execute the pyadm ldap command followed by the desired subcommand to perform specific LDAP operations.
LDAP Module
The LDAP module within pyadm allows you to interact with LDAP servers and perform common operations, such as retrieving user information, showing group associations, and displaying group members.
Examples
- Retrieve information for a user in the LDAP directory:
pyadm ldap user USERNAME
- Show groups associated with a user in the LDAP directory:
pyadm ldap groups USERNAME
- Show members of a group in the LDAP directory:
pyadm ldap members GROUP_CN
For more information on each subcommand, you can use the --help option, as shown in the examples below:
pyadm ldap user --help
pyadm ldap groups --help
pyadm ldap members --hel
Configuration
The pyadm tool allows you to customize its behavior through a configuration file. By default, the configuration file is located at ~/.config/pyadm/pyadm.conf
.
To use a custom configuration file, create a file in the following format:
[LDAP]
server = ldaps://dc.example.org
base_dn = dc=example,dc=org
bind_username = administrator@example.org
bind_password = s3cr3t-p455w0rd!
Specify the desired values for the LDAP server, base DN, bind username, and bind password in the configuration file.
Contributing
Contributions are welcome! If you encounter any issues, have suggestions, or would like to add new features, please submit an issue or a pull request.
License
This project is licensed under the MIT License.
Feel free to copy and use this markdown source as needed for your README.md
file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyadm-toolkit-0.0.1.tar.gz
.
File metadata
- Download URL: pyadm-toolkit-0.0.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f24573a3262bedb61659d92a747ce645a8114252f7e028bdf76d3bf7a348b996 |
|
MD5 | 12fd0172129371a65378ed81c401443b |
|
BLAKE2b-256 | 6ed0c9d446d879c49be0485b8155a8d4804920850e722a56c18fe53333f54d01 |
File details
Details for the file pyadm_toolkit-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyadm_toolkit-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbf90c2cd9df214ced948cf7246b97bc6707e60f7cbf6d96ba7d84cf62cfdd63 |
|
MD5 | 8556da714ba0487cca55374fa60c8409 |
|
BLAKE2b-256 | 8f1e74911dd84303d16b10c19612d28ad879a9c447ddf5f92f813e4ded8ab3af |