Skip to main content

ldaputils

Ldap utils library.

Install

pip install ldaputils

Usage

# use your own host, port, username and password values.
# username must be a fully qualified dn.
# Use ipython help to see more init parameters.
server = LdapService(
    host="localhost,
    port=389,
    username="cn=admin,dc=example,dc=com",
    password="adminpassword",
)

name = nameutils.get_random_name() # use fastutils.nameutils.get_random_name for test
username = pinyinutils.to_pinyin(name).lower()
user_detail = {
    "cn": name,
    "ou": "AI Tech Group",
    "l": "HangZhou, China",
}
assert self.server.add_user_entry(username, user_detail)
assert self.server.delete_user_entry(username)

Releases

v0.1.0 2020/11/14

  • First release.
  • Add, update, delete user entry function ready.
  • Get user and get users function ready.

v0.1.4 2020/11/17

  • Add util functions.

v0.1.5 2020/11/21

  • Add attributes param for LdapService.get_user_entries.

v0.1.7 2021/03/24

  • Fix add_user_entry changed the user_detail dict problem.

v0.1.9 2023/09/15

  • Doc update.

Download files

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

Source Distribution

ldaputils-0.1.9.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ldaputils-0.1.9-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file ldaputils-0.1.9.tar.gz.

File metadata

  • Download URL: ldaputils-0.1.9.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ldaputils-0.1.9.tar.gz
Algorithm Hash digest
SHA256 710c6eb95b27c5dddbfd130cdb8007e641f0e263206ad686422b7e63a128466d
MD5 cad2cd2fbea8f3a892f0e1b28e4d3922
BLAKE2b-256 249fe95086b4aee61664a9200a7a9fb4c3c08eb484ed50c69c21a40c6b02deab

See more details on using hashes here.

File details

Details for the file ldaputils-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: ldaputils-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ldaputils-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5a690cd61f33288c11228209febce385a6b69d19535c3ac7d62a189a687018b9
MD5 34cc9820294efbfc98ae7cd06dbb01c8
BLAKE2b-256 5b6fa3a442bda50dc73eb2b11fab7a99fa71ce2a45c1306b1a229c8529acc83e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.11

2 files

0.1.10

2 files

This release

0.1.9 This release

2 files

0.1.8

2 files

0.1.7

1 file

0.1.5

1 file

0.1.4

1 file

0.1.0

1 file

Supported by

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