diff --git a/src/tests/test_ldapauth.py b/src/tests/test_ldapauth.py index 5e741fe0f..0ec0346da 100644 --- a/src/tests/test_ldapauth.py +++ b/src/tests/test_ldapauth.py @@ -78,7 +78,7 @@ def test_authenticate_server_down(mocker): def test_authenticate_change_password(): - LDAPAuth().authenticate_credentials(credentials="yunohost") + LDAPAuth().authenticate_credentials(credentials="alice:Yunohost") tools_rootpw("plopette", check_strength=False) diff --git a/src/utils/ldap.py b/src/utils/ldap.py index 28ff8eebe..627ab4e7a 100644 --- a/src/utils/ldap.py +++ b/src/utils/ldap.py @@ -84,7 +84,7 @@ class LDAPInterface: def connect(self): def _reconnect(): con = ldap.ldapobject.ReconnectLDAPObject( - self.uri, retry_max=10, retry_delay=0.5 + self.uri, retry_max=10, retry_delay=2 ) con.sasl_non_interactive_bind_s("EXTERNAL") return con