Log as root
This commit is contained in:
parent
93328aa2cf
commit
81b81c6a50
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user