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.

Source Distribution

pyad_auth-0.0.2.tar.gz (2.1 kB view hashes)

Uploaded Source

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