projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Teach ud-generate about host ACLs that expire
[mirror/userdir-ldap.git]
/
ud-generate
diff --git
a/ud-generate
b/ud-generate
index
76d8179
..
af277ea
100755
(executable)
--- a/
ud-generate
+++ b/
ud-generate
@@
-137,7
+137,7
@@
def IsInGroup(account):
if str(account['gidNumber']) in Allowed: return True
# Check the host based ACL
if str(account['gidNumber']) in Allowed: return True
# Check the host based ACL
- if
'allowedHost' in account and CurrentHost in account['allowedHost']
: return True
+ if
account.is_allowed_by_hostacl(CurrentHost)
: return True
# See if there are supplementary groups
if not 'supplementaryGid' in account: return False
# See if there are supplementary groups
if not 'supplementaryGid' in account: return False