Skip to main content

pudl is an Active Directory client library and CLI

Project description

pudl is a python package (with an included CLI) that wraps python-ldap and provides a somewhat-oo interface to Active Directory user, group and computer objects, retreived via LDAP with TLS. While not necessarily a replacement for existing client libraries and the ldapsearch binary, the api and bundled cli are perhaps simpler to work with than alternatives, for many common queries.

Documentation

For the full API reference and CLI usage with examples, please see the [full project documentation](http://pudl.readthedocs.org/en/latest/).

Prerequisites

To get up and running, the following must be installed:

  • python 2.7.x

  • python-dev

  • libsasl2-dev

  • libldap2-dev

  • libyaml-dev

Installation

### The Easy Way `bash pip install pudl `

### Manual Installation + Create a virtual environment and activate + Clone this git repository + pip install .

Optionally for sphinx document generation, pip install the following

  • sphinx

  • pygments

  • sphinx_rtd_theme

  • sphinx-argparse

  • mock

Optionally, it may be desirable to set a few envrionment variables, e.g.:

  • PUDL_BASE_DN - This is an important one to set, such as ‘OU=Departments,DC=example,DC=com’.

  • PUDL_DOMAIN - Also a key setting, the AD domain is prepended to the user name for authentication.

  • PUDL_PAGE_SIZE - Adjusting the page size may result in faster queries, defaults to 300 results per page.

  • PUDL_TLS_NO_VERIFY - Provides an encrypted communication channel with TLS, but does not verify the server’s identity. Use with caution.

Example CLI Usage

Retrieve JSON representations of two users

`bash pudl user bhodges jdupont ` Retrieve three groups, serialized to yaml

`bash pudl group HR Finance Technology --output-format=yaml `

License

Apache License, version 2.0. Please see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pudl-0.1.3.tar.gz (14.4 kB view details)

Uploaded Source

File details

Details for the file pudl-0.1.3.tar.gz.

File metadata

  • Download URL: pudl-0.1.3.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pudl-0.1.3.tar.gz
Algorithm Hash digest
SHA256 df4397af7814c6a9b2a598e535bbfc75f65d28a0c72c2ec05b49d8771fb6d1d8
MD5 3ce18761961b14a79458e7164a81fe22
BLAKE2b-256 bf6a18a9ad991b762a36c3a856418b48865faa716ffea1ada5335c9bf0ee7d69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page