From bca7a22085c75f18ec5732a0d56df080ac2eabce Mon Sep 17 00:00:00 2001 From: Aatish Neupane Date: Fri, 16 Nov 2018 20:38:16 +0545 Subject: [PATCH] fix dn generation --- users/ldap_funcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/ldap_funcs.py b/users/ldap_funcs.py index 7a9ea52..507d8e3 100644 --- a/users/ldap_funcs.py +++ b/users/ldap_funcs.py @@ -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