Index: trunk/tools/subversion/user-management/homedirectorymanager.py |
— | — | @@ -81,6 +81,9 @@ |
82 | 82 | # uidNumber and gidNumber come back from LDAP as strings, we need ints here. |
83 | 83 | uidNumber = int(user[1]['uidNumber'][0]) |
84 | 84 | 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 |
85 | 88 | sshPublicKey = user[1]['sshPublicKey'] |
86 | 89 | |
87 | 90 | AllUsers[uid] = {} |