Skip to main content

ldap-user-transfer

Script for transferring LDAP users from Postgresql database. Tested only in OpenLDAP, may work in others.

Configuration

  • db :

    • user_sql: Sql query for fetching users. (Cast id column to varchar)
    • group_sql: Sql query for getting group of user (Cast id column to varchar)
    • user_pk: Id column of user table
    • user_password_column: Password column of user in plain text. If this property given, userPassword field on LDAP will filled password with SHA-512 encryption in CRYPT format.
    • group_pk: Id column of group table
    • cursor_fetch_size: This script use postgresql binary cursors to iterate large amount of user rows. You can set cursor fetch size with this value.
  • ldap:

    • user_base: user base DN without base DN
    • group_base: group base DN without base DN
    • user_classes: LDAP classes of user object (as list)
  • mappings:

    • user_fields: mapping of user table column names and LDAP attributes in <String, String> or <String, List> formats.
    • groups: mapping of group names on db and LDAP group names in <String, String> format. Use id column of groups table for mapping.

Usage

After installing package from PyPI, define your config.yml path via LDAP_USER_TRANSFER_CONFIG environment variable then run ldap-transfer-user command.

Metadata

Release files for ldap-user-transfer 1.0.0

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

Built distribution (wheel)

Table of built distributions (wheels) for ldap-user-transfer 1.0.0
File Interpreter ABI Platform
ldap_user_transfer-1.0.0-py3-none-any.whl Python 3 none any Details

Release files / ldap_user_transfer-1.0.0-py3-none-any.whl

Download URL ldap_user_transfer-1.0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53085c5ffda1e1a5b7d48e74e2eedebddcf4209fcf7417471d413b75441eb91e
BLAKE2b-256 checksum
How to use checksums
7fbaf30604916e7772d2d23a95692da9ed9d5713ff31ce493433f7edd660a18b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

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