projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'*PK*' will allow a 'locked' account to login in certain situations, remove it for...
[mirror/userdir-ldap.git]
/
ud-generate
diff --git
a/ud-generate
b/ud-generate
index
03a5186
..
f7c929e
100755
(executable)
--- a/
ud-generate
+++ b/
ud-generate
@@
-180,8
+180,7
@@
def GenSSHShadow(l,File):
# If the account is locked, do not write it.
# This is a partial stop-gap. The ssh also needs to change this
# to ignore ~/.ssh/authorized* files.
# If the account is locked, do not write it.
# This is a partial stop-gap. The ssh also needs to change this
# to ignore ~/.ssh/authorized* files.
- if (string.find(GetAttr(x,"userPassword"),"*LK*") != -1) \
- or (string.find(GetAttr(x,"userPassword"),"*PK*") != -1):
+ if (string.find(GetAttr(x,"userPassword"),"*LK*") != -1):
continue;
if x[1].has_key("uidNumber") == 0 or \
continue;
if x[1].has_key("uidNumber") == 0 or \