Log as root

This commit is contained in:
User Identifier 2020-10-04 14:23:26 +02:00
parent 93328aa2cf
commit 81b81c6a50
2 changed files with 5 additions and 5 deletions

View File

@ -9,8 +9,10 @@ def ldap_client():
host='localhost', port=389, host='localhost', port=389,
encryption='TLSv1.2', ciphers='HIGH', encryption='TLSv1.2', ciphers='HIGH',
validate=False, validate=False,
username='uid=phi,ou=Services,dc=unit,dc=macaomilano,dc=org', # username='uid=phi,ou=Services,dc=unit,dc=macaomilano,dc=org',
password='phi', # password='phi',
username='cn=root,dc=unit,dc=macaomilano,dc=org',
password='root',
base_dn='dc=unit,dc=macaomilano,dc=org') base_dn='dc=unit,dc=macaomilano,dc=org')
client.open() client.open()
yield client yield client

View File

@ -54,6 +54,4 @@ def test_add_user(ldap_client):
entry = get_user_by_uid(ldap_client, uid) entry = get_user_by_uid(ldap_client, uid)
assert entry['uid'] == uid assert entry['uid'] == uid
assert entry['mail'] == email assert entry['mail'] == mail
assert False