Synchronise LDAP users to MySQL and MariaDB
Project description
myldapsync - fork of pgldapsync by EnterpriseDB Corporation adopted for MySQL and MariaDB
This Python module allows you to synchronise MySQL or MariaDB users with users in an LDAP directory.
Require MySQL 8 with installed and configured simple or sasl LDAP Authentication Plugin or PAM plugin (pam also supported in MySQL 5.7 and MariaDB).
Percona Server for MySQL:
https://docs.percona.com/percona-server/8.0/ldap-authentication
https://docs.percona.com/percona-server/8.0/pam-plugin.html
MySQL:
https://dev.mysql.com/doc/refman/8.0/en/ldap-pluggable-authentication.html
https://dev.mysql.com/doc/refman/8.0/en/pam-pluggable-authentication.html
MariaDB:
https://mariadb.com/kb/en/authentication-plugin-pam/
myldapsync is supported on Python 3.8 or later.
In order to use it, you will need to create a config.ini file containing the site-specific configuration you require. See config.ini.example for a complete list of all the available configuration options. This file should be copied to create your own configuration.
Once configured, simply run myldapsync like so:
python3 myldapsync.py /path/to/config.ini
In order to test the configuration (and dump the SQL that would be executed to stdout), run it like this:
python3 myldapsync.py --dry-run /path/to/config.ini
Creating a virtual environment for dev/test
python3 -m venv /path/to/myldapsync
source /path/to/myldapsync/bin/activate
pip install -r requirements.txt
Adapt the first command as required for your environment/Python version.
Creating a package
To create a package (wheel), run the following in your virtual environment:
python3 setup.py sdist bdist_wheel --universal
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for myldapsync-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 386bb9ba261e0c9ff0d1226c8ef6693368fd71aba838674670c20da383b01932 |
|
MD5 | c59c9b972557a173bb3ec11b59c08250 |
|
BLAKE2b-256 | 820d945987581f31abe654c20d73fba1e2389ed39698975d03b812b1152f7d60 |
Hashes for myldapsync-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 740f684a6fc5a51168f46f7795cc8899b93ebc1e35e2ce88e9b17fc8f0fbc3bf |
|
MD5 | 1f2de3924bde77e53b27d73e11debc0e |
|
BLAKE2b-256 | 0c060b953e94b8e932565dd2c7ae93846ca46599b41a3c0c40779f474e2e2d3a |