Skip to main content

Basic LDAP3

Basic LDAP is a small package that uses the ldap3 library. It can be used to authenticate a user against an LDAP server and can check whether the users is in a specific group. In addition it is possible to get user attributes if the authentication is successful.

Basic example

Import basicldap and define the server

from basicldap import Ldap

LDAP_HOST = 'ldap.server.com'
LDAP_BASE_DN = 'DC=example,DC=com'

conn = Ldap(LDAP_HOST, LDAP_BASE_DN)

# Using SSL
ssl = {"port": 636, "use_ssl": True}
conn = Ldap(LDAP_HOST, LDAP_BASE_DN, ldap3_args=ssl)

Authenticate the user

conn.authenticate(user_name, password)

Get user attributes (requires successful authentication)

# To get all attributes
conn.get_attributes()

# To get specific attributes
conn.get_attributes(['mail', 'cn])

Metadata

Release files for basicldap3 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for basicldap3 0.1.2
File Size Uploaded Provenance
basicldap3-0.1.2.tar.gz 2.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for basicldap3 0.1.2
File Interpreter ABI Platform
basicldap3-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / basicldap3-0.1.2.tar.gz

Download URL basicldap3-0.1.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ebf533b1ec1a6149fc35709c584c8695d1d70b77b086d96dbbdb038e85abfb2d
BLAKE2b-256 checksum
How to use checksums
0277c8b2b6caaed2fa161cd77ed3b0117332959eb20112c455bcbdecb0640cdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.3 CPython/3.7.5 Windows/10

Release files / basicldap3-0.1.2-py3-none-any.whl

Download URL basicldap3-0.1.2-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc846a2fbe9e19ab9d81869033f9e827016f59c77d3f52a4881aee1a66b5edd1
BLAKE2b-256 checksum
How to use checksums
c36624aca6f3ee5895bc77d67833e4f4c589d0e8b5987d288c1e08c3f3cf0872
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.3 CPython/3.7.5 Windows/10

Security for basicldap3 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page