r97697 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97696‎ | r97697 | r97698 >
Date:04:21, 21 September 2011
Author:laner
Status:ok
Tags:
Comment:
Skip user accounts that don't have sshkeys
Modified paths:
  • /trunk/tools/subversion/user-management/homedirectorymanager.py (modified) (history)

Diff [purge]

Index: trunk/tools/subversion/user-management/homedirectorymanager.py
@@ -81,6 +81,9 @@
8282 # uidNumber and gidNumber come back from LDAP as strings, we need ints here.
8383 uidNumber = int(user[1]['uidNumber'][0])
8484 gidNumber = int(user[1]['gidNumber'][0])
 85+ # Not all users have an sshkey, if not continue
 86+ if 'sshPublicKey' not in user[1]:
 87+ continue
8588 sshPublicKey = user[1]['sshPublicKey']
8689
8790 AllUsers[uid] = {}

Status & tagging log