fix dn generation

This commit is contained in:
aatish 2018-11-16 20:38:16 +05:45
parent b4bf9318df
commit bca7a22085
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ def create_user(user, password, firstname, lastname, email):
obj_new_user = ObjectDef(
['inetOrgPerson'], conn)
w = Writer(conn, obj_new_user)
dn = 'uid=%s,ou=users,dc=example,dc=com' % user
dn = 'uid=%s,ou=users,dc=ungleich,dc=ch' % user
w.new(dn)
w[0].givenName = firstname
w[0].sn = lastname