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 details)

Uploaded Source

File details

Details for the file pyad_auth-0.0.2.tar.gz.

File metadata

  • Download URL: pyad_auth-0.0.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyad_auth-0.0.2.tar.gz
Algorithm Hash digest
SHA256 91b22ffa86a53785a1d2be57b823cf6930ae5ad25ec65c6796f78a2f641d971b
MD5 3b41f10f5da2e460ae0fd2f51d0b0c92
BLAKE2b-256 beb389671ed4ec4da1050f6f9c9482d4c2a95ba666ee1e85bb6b88900ebc1be0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page