'*PK*' will allow a 'locked' account to login in certain situations, remove it for...
authortroup <>
Mon, 9 Apr 2007 19:54:29 +0000 (19:54 +0000)
committertroup <>
Mon, 9 Apr 2007 19:54:29 +0000 (19:54 +0000)
ud-generate

index 03a5186..f7c929e 100755 (executable)
@@ -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 (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 \