fix dn generation

This commit is contained in:
aatish 2018-11-16 20:38:16 +05:45
parent b4bf9318df
commit bca7a22085

View file

@ -13,7 +13,7 @@ def create_user(user, password, firstname, lastname, email):
obj_new_user = ObjectDef( obj_new_user = ObjectDef(
['inetOrgPerson'], conn) ['inetOrgPerson'], conn)
w = Writer(conn, obj_new_user) 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.new(dn)
w[0].givenName = firstname w[0].givenName = firstname
w[0].sn = lastname w[0].sn = lastname