From 81b81c6a5022ce148ff56b94b3b83ed2212124cd Mon Sep 17 00:00:00 2001 From: User Identifier Date: Sun, 4 Oct 2020 14:23:26 +0200 Subject: [PATCH] Log as root --- test/conftest.py | 6 ++++-- test/test_ldap.py | 4 +--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/conftest.py b/test/conftest.py index bf569b6..a90c720 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -9,8 +9,10 @@ def ldap_client(): host='localhost', port=389, encryption='TLSv1.2', ciphers='HIGH', validate=False, - username='uid=phi,ou=Services,dc=unit,dc=macaomilano,dc=org', - password='phi', + # username='uid=phi,ou=Services,dc=unit,dc=macaomilano,dc=org', + # password='phi', + username='cn=root,dc=unit,dc=macaomilano,dc=org', + password='root', base_dn='dc=unit,dc=macaomilano,dc=org') client.open() yield client diff --git a/test/test_ldap.py b/test/test_ldap.py index 0089874..991f9bb 100644 --- a/test/test_ldap.py +++ b/test/test_ldap.py @@ -54,6 +54,4 @@ def test_add_user(ldap_client): entry = get_user_by_uid(ldap_client, uid) assert entry['uid'] == uid - assert entry['mail'] == email - - assert False + assert entry['mail'] == mail