Giter VIP home page Giter VIP logo

pyadm's Introduction

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 = [email protected]
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.

pyadm's People

Contributors

okleinschmidt avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mehrenreich

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.