Skip to main content

msad is a library and commandline for interacting with Active Directory

Project description

msAD

msad is a library and command line tool for working with an Active Directory / LDAP server. It can be used for:

  • search objects (users, groups, computers,..)
  • search group members
  • add/remove members to/from AD groups using DN or sAMaccoutName
  • change AD passwords
  • check if a user is disabled or locked, group membership

Install

pip install msad

Usage

I find useful to add an alias in my ~/.bash_aliases

alias msad='/usr/local/bin/msad --host=dmc1it.group.redaelli.org --port=636 --search_base dc=group,dc=redaelli,dc=org'

Retreive info about a user

msad check_user matteo 90 \[qliksense_analyzer,qliksense_professional\] 2>/dev/null
{"is_disabled": false}
{"is_locked": false}
{"has_never_expires_password": false}
{"has_expired_password": false}
{"membership_qliksense_analyzer": false}
{"membership_qliksense_professional": true}

License

Copyright © 2021 Matteo Redaelli

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

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

msad-0.1.5.tar.gz (19.4 kB view details)

Uploaded Source

Built Distributions

msad-0.1.5-py3.9.egg (25.0 kB view details)

Uploaded Source

msad-0.1.5-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file msad-0.1.5.tar.gz.

File metadata

  • Download URL: msad-0.1.5.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.3 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.27.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.9 CPython/3.9.12

File hashes

Hashes for msad-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d3105ee0e28c02ba8f4c409061b64223bcad22664bebc8f3fe21327b0e16c042
MD5 cd1d33df9ceb8b70056b31d17a5bf813
BLAKE2b-256 1bceb4f63787211905cb2500d02be726fe226ca2256303e3317db6f3bcb81845

See more details on using hashes here.

File details

Details for the file msad-0.1.5-py3.9.egg.

File metadata

  • Download URL: msad-0.1.5-py3.9.egg
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.3 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.27.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.9 CPython/3.9.12

File hashes

Hashes for msad-0.1.5-py3.9.egg
Algorithm Hash digest
SHA256 add27d9a8c67347f7e8ce3954b7c9e6bdd8d4b686450ca0df8e94b652c73f06a
MD5 4fe20a865effe613eeb3af2bb53e20c7
BLAKE2b-256 abed5b96152db923a58f84b9925e3e1f051a2bb1531f66f4ec82644c8d9747e2

See more details on using hashes here.

File details

Details for the file msad-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: msad-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.3 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.27.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.9 CPython/3.9.12

File hashes

Hashes for msad-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 95612d99bda345cbdd7858acd15e2977df046df731d402a11248997bb08fb4c9
MD5 6623850b2c983ad13022cb80f7d6130b
BLAKE2b-256 0471c5a0cbfe1a6edf65508b1e97dfc6076be63020a4e97707047cedb2bd6c0d

See more details on using hashes here.

Supported by

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