Skip to main content

A simple Active Directory user authorization tool.

Project description

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 exception
    
  • Use 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
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyad_auth, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pyad_auth-0.0.2.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page