Commit bca7a220 authored by Aatish Neupane's avatar Aatish Neupane

fix dn generation

parent b4bf9318
......@@ -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
......@@ -25,4 +25,4 @@ def create_user(user, password, firstname, lastname, email):
conn.unbind()
raise Exception("Couldn't write user")
conn.unbind()
return True
\ No newline at end of file
return True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment