diff --git a/README.md b/README.md index 43058c4e9d8f4656639af672767bd67f1176f329..e7aaf3721032272c15c9d26881c41616abc20525 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ All nagios scripts are located under `nagios` directory. - example: -``` +```sh python3 check_user_logins.py -p /var/log/proxyaai/simplesamlphp/simplesamlphp/simplesamlphp.log -l 5 @@ -103,6 +103,23 @@ python3 check_user_logins.py python3 check_ldap.py --help ``` +### check_ldap_syncrepl + +- check whether an LDAP replica is up to date with the provider +- to use this check, you must install the ldap extra: + + ```sh + pip install perun.proxy.utils[ldap] + ``` + + and the [build prerequisites of the python-ldap library](https://www.python-ldap.org/en/latest/installing.html#build-prerequisites) + +- for usage run: + + ```sh + check_ldap_syncrepl --help + ``` + ### check_privacyidea.py - check whether privacyidea is available diff --git a/setup.py b/setup.py index d8716af6b36a7f0ec8661e34b58992cd3bd65944..882ef2987ab88b448ec5f2065484aef834d6b6ac 100644 --- a/setup.py +++ b/setup.py @@ -15,13 +15,13 @@ setuptools.setup( "beautifulsoup4~=4.12", "requests~=2.31", "PyYAML>=5.4,<7.0", - "check_syncrepl_extended~=2020.13", "check_nginx_status~=1.0", "pyotp~=2.9", ], extras_require={ "ldap": [ "ldap3~=2.9.1", + "check_syncrepl_extended~=2020.13", ], "postgresql": [ "psycopg2-binary~=2.9",