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