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
Built Distributions
File details
Details for the file msad-0.1.4.tar.gz
.
File metadata
- Download URL: msad-0.1.4.tar.gz
- Upload date:
- Size: 19.2 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/24.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c5da04cfb09d127918f6c9ebf818680027d9a9f748cd63d0309b5ff2a165284 |
|
MD5 | e748b779a890f3edba3a9cb9dfe24a0c |
|
BLAKE2b-256 | f4820f245594fcca968f2278407629b153f55d2fcd2a575079c5d31c3193f9f9 |
File details
Details for the file msad-0.1.4-py3.9.egg
.
File metadata
- Download URL: msad-0.1.4-py3.9.egg
- Upload date:
- Size: 19.6 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/24.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f02275329787aabb8f613a2e93986ac5537625c71bd134d0074f7265173d91 |
|
MD5 | d39324070458308dcba2a38a6443e104 |
|
BLAKE2b-256 | d167208682ac9dab9852f72f0288e0ab4c1645c083dfd7acea8b450b47fff800 |
File details
Details for the file msad-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: msad-0.1.4-py3-none-any.whl
- Upload date:
- Size: 22.6 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/24.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d12ecfb36f829a3cbc0f72cf467d9ee665e3f895b9722b24fd0a215c3954e32b |
|
MD5 | e4908d1c5d96ae6337bbb1afba72bd97 |
|
BLAKE2b-256 | 160dcaf98dd80d2b2978f4e1e7593c326043d3280f02750597e8e0180884362b |