projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for setting a TOTP seed
[mirror/userdir-ldap.git]
/
UDLdap.py
diff --git
a/UDLdap.py
b/UDLdap.py
index
e917542
..
f07ba36
100644
(file)
--- a/
UDLdap.py
+++ b/
UDLdap.py
@@
-88,7
+88,7
@@
class Account:
return self['accountStatus'] == 'active' and self.numkeys() != 0
def is_guest_account(self):
return self['accountStatus'] == 'active' and self.numkeys() != 0
def is_guest_account(self):
- return 'guest' in self['supplementaryGid']
+ return '
supplementaryGid' in self and '
guest' in self['supplementaryGid']
def latitude_dec(self, anonymized=False):
return userdir_ldap.DecDegree(self['latitude'], anonymized)
def latitude_dec(self, anonymized=False):
return userdir_ldap.DecDegree(self['latitude'], anonymized)