Skip to main content

A set of tools to make managing LDAP users, groups, and keys easier

Project description

LDAP Tools

This LDAP tools gem is designed as a wrapper around ldap3 to make interacting with LDAP easier. No knowledge of LDIF required.

Requirements

Use pyenv to install python 3.5.3 (or 3.6.4)

The following items are installed automatically as part of the pip install: - ldap3 - click - sshpubkeys - pyyaml

Installation

Installation from pypi

pip install ldap-tools

Installation from source

pip install git+https://github.com/carta/ldap_tools#egg=ldap_tools

Configuration

There are two files used by this application. The default location is $HOME/.ldap; however, this can be overridden using the LDAP_CONFIG_DIR environment variable

ldap_info.yaml

This config file provides basic information about your LDAP server setup.

---
server: # LDAP server
user_dn: # DN of user to interact with LDAP
port: # LDAP port
basedn: #LDAP Base DN
mail_domain: # Domain to be used for user email addresses
service_ou: # Organization Unit (OU) for service accounts

Note: DN of a user is the unique name used to identify that user

ldap.secret

This is a base64-encoded file with the LDAP root password.

Commands

ldaptools

This is the base command from which all other commands are launched

Usage: ldaptools [OPTIONS] COMMAND [ARGS]...

Enter the application here.

Options:
  --help  Show this message and exit.

Commands:
  audit    Display LDAP group membership by user, by...
  group    LDAP Group Management Commands.
  key      Manage LDAP user SSH public keys.
  user     LDAP User Management Commands.
  version  LDAP Group Management Commands.

Help is available for all subcommands in a similar fashion.

Currently supported subcommands

  • user create

  • user delete

  • group create

  • group delete

  • group add_user

  • group remove_user

  • key add

  • key remove

  • key install

  • audit by_user

  • audit by_group

  • audit raw

Changelog

(unreleased)

  • Update changelog. [Ali Tayarani]

  • Bump version: 0.7.11 → 0.7.12. [Ali Tayarani]

  • Update dependencies. [Ali Tayarani]

v0.7.11 (2018-05-09)

  • Initial commit. [Ali Tayarani]

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ldap_tools-0.7.12-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file ldap_tools-0.7.12-py3-none-any.whl.

File metadata

  • Download URL: ldap_tools-0.7.12-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.5.5

File hashes

Hashes for ldap_tools-0.7.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d90d1fb9a66011a78ebe76625cc65e78c88d3779769522a99a401495790193
MD5 b7599ca245551b8c90bc48aad912ec48
BLAKE2b-256 0e1fed035499975ae6d94bfae70a56ccef00af252417ffd567b164c8c7a9ff2b

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