Skip to main content

Simple user management CLI for Active Directory

Project description

Overview

ADLeastCLI provides least operations for managing users/groups on Active Directory(AD).

When you want to use an AD for only authentication (i.e. AWS Client VPN with Directory Service), it can manage users/groups with very simple procedure.

And for changing password by each users, very simple web server is implemented. For very limited usage, it can be used for changing password by users without the administrator.

Example:

Create a user
$ adleastcli -S example.com user create testuser Password123#

Create a group
$ adleastcli -S example.com group create mygroup

Add the user to the group
$ adleastcli -S example.com user join testuser mygroup

Remove the user from the group
$ adleastcli -S example.com user leave testuser mygroup

Delete a group
$ adleastcli -S example.com group delete mygroup

Delete a user
$ adleastcli -S example.com user delete testuser

List users
$ adleastcli -S example.com user

Show user details
$ adleastcli -S example.com user info testuser

List groups
$ adleastcli -S example.com group

Show group details
$ adleastcli -S example.com group info mygroup

Set password(as administrator)
$ adleastcli -S example.com user setpw testuser NewPass123#

Change password(as a user)
$ adleastcli -S example.com -U testuser user passwd
Enter password for testuser:
Enter new password:
Confirm new password:

Start WebUI server for changing password by oneself
$ adleastcli -S example.com -b 0.0.0.0:8080 httpd

Installation

Install the latest release with pip install adleastcli or simply downloading adleastcli.py.

Installing with pip store adleastcli to your bin path, but it is only copy of adleastcli.py. If you get adleastcli.py with downloading, you can rename it to adleastcli.

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

adleastcli-0.0.4.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file adleastcli-0.0.4.tar.gz.

File metadata

  • Download URL: adleastcli-0.0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8

File hashes

Hashes for adleastcli-0.0.4.tar.gz
Algorithm Hash digest
SHA256 decd366be11c57f1e76756f366a580b08c5c94a9da6c710e8529fa4ef63271fc
MD5 c8bd4eae66c2f17c796aa7adefa6e2dd
BLAKE2b-256 5a1c7f13ad33baffbc5c2399a9ea26f9bf59ffc3649593005b536c1ea41d171d

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