pyad_auth
Simple Python library to verify a user’s credentials against Active Directory
Requirements
Python >= 2
ldap3
Installation
pip install pyad_auth
Usage
Include pyad_auth in your project
Use pyad_auth.connect() to connect to the server:
try: server = pyad_auth.connect("myip", port) except Exception as e: # handle exceptionUse pyad_auth.auth() to verify if the user is in Active Directory:
try: authenticated = pyad_auth.auth(server, "username", "password") except Exception as e: # handle exception
Metadata
Release files for pyad_auth 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyad_auth-0.0.2.tar.gz | 2.1 kB | Details |
Release files / pyad_auth-0.0.2.tar.gz
| Download URL | pyad_auth-0.0.2.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91b22ffa86a53785a1d2be57b823cf6930ae5ad25ec65c6796f78a2f641d971b
|
|
BLAKE2b-256 checksum How to use checksums |
beb389671ed4ec4da1050f6f9c9482d4c2a95ba666ee1e85bb6b88900ebc1be0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |