fixed some things
This commit is contained in:
parent
39f08c7939
commit
b512ee2f61
3 changed files with 11 additions and 4 deletions
|
|
@ -62,7 +62,7 @@ def objclasses(rdn, uid, connection):
|
|||
connection.search(rdn, '(%s)' % uid, attributes=['objectClass'])
|
||||
objclass = []
|
||||
# get the relevant data
|
||||
tmp = conn.entries[0]['objectClass']
|
||||
tmp = connection.entries[0]['objectClass']
|
||||
# This one sets up the array
|
||||
for y in tmp:
|
||||
objclass.append(y)
|
||||
|
|
@ -116,7 +116,6 @@ class CreateUser(object):
|
|||
# set objectClasses for the new user
|
||||
obj_new_user = ObjectDef(['inetOrgPerson', 'posixAccount', 'ldapPublicKey'], conn)
|
||||
w = Writer(conn, obj_new_user)
|
||||
# newly created users get put into ou=customers
|
||||
dn = 'uid=%s,ou=users,dc=ungleich,dc=ch' % user
|
||||
w.new(dn)
|
||||
# Filling in some of the data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue