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=dmc448-01it.group.pirelli.com --port=636 --search_base dc=group,dc=pirelli,dc=com'

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

Uploaded Source

Built Distributions

msad-0.1.3-py3.9.egg (19.0 kB view details)

Uploaded Source

msad-0.1.3-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: msad-0.1.3.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7

File hashes

Hashes for msad-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5e66e7a22d0d2ab16d14268cace27d1541cdaf4dc21c5c1a6b8de0d9a2877896
MD5 e65361787759cfb522629b08972988b1
BLAKE2b-256 06cde15620eaeb5663a3997190486f33d7b82802a13617b07c35988c70c732ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msad-0.1.3-py3.9.egg
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7

File hashes

Hashes for msad-0.1.3-py3.9.egg
Algorithm Hash digest
SHA256 076ba0087c0813761111c3ba4ad977b9a691da073e1942620365cd1649020fe9
MD5 c07e1ee8d5b630a00ae7c176889a4319
BLAKE2b-256 ab20a8d2941eb0e7a70aa51fdeea587d48f15818bdbdcce4e6fa718dcf0c1061

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msad-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7

File hashes

Hashes for msad-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1204a9699ce180def340064d74ce17f7c0815fd590f75ca09695d3c08c126458
MD5 7cffb687801ea685f3e565bde2df97ea
BLAKE2b-256 fb9ff77c4f8e3865611592b2f51f4ad13ba5149a8e81e2836eb107ca087f92b4

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