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.2.0.tar.gz (19.5 kB view details)

Uploaded Source

Built Distributions

msad-0.2.0-py3.10.egg (25.5 kB view details)

Uploaded Source

msad-0.2.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: msad-0.2.0.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for msad-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d6aa69756586b9eb9cbe2b35c8122f8aef4687a7c9a4472786f4bd23018c0563
MD5 d45608afbc871949d739b2814eda6b4b
BLAKE2b-256 17111abb1a9c71a138c24fc46b02a0baea65b25f246786150649f0078e8e3d1c

See more details on using hashes here.

File details

Details for the file msad-0.2.0-py3.10.egg.

File metadata

  • Download URL: msad-0.2.0-py3.10.egg
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for msad-0.2.0-py3.10.egg
Algorithm Hash digest
SHA256 527f9bac7dcaa50cc4817b1f0fbda2931cbd06037c6994adaa28ac21dfeedacc
MD5 335100f670b11885e54b4b018cec4606
BLAKE2b-256 294be34c3eafbf8a0a1cd9ca648508d9257ceefb53e785703a209e1a5456aca4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msad-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for msad-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f75f609ab64e1018b68c8a3ed0c5c4ac91c2d0b1e69cb8055080fcd5dca7f031
MD5 558da60776eda6c81eceef9c84ab5953
BLAKE2b-256 c88c33d689e9c1644a2f74c26c2eb679cd22f28dec54c18ab0de048c8ad0da9c

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