Correctifs sur le précédent commit, et prise en compte dans mkhome.
This commit is contained in:
parent
962d9df0f3
commit
da71e80be1
3 changed files with 6 additions and 4 deletions
|
@ -23,8 +23,8 @@ conn=lc_ldap.shortcuts.lc_ldap_readonly()
|
|||
l=[]
|
||||
for user in sys.argv[1:]:
|
||||
a=conn.search(u'uid=%s' % user)
|
||||
if a and a[0]['homeDirectory'] and a[0]['uidNumber'] and a[0]['uid']:
|
||||
l.append("%s,%s,%s" % (a[0]['homeDirectory'][0], a[0]['uidNumber'][0], a[0]['uid'][0]))
|
||||
if a and a[0]['homeDirectory'] and a[0]['uidNumber'] and a[0]['uid']:
|
||||
l.append("%s,," % (a[0]['uid'][0],))
|
||||
|
||||
if l:
|
||||
h=gestion.gen_confs.adherents.home(l)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue