X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=ud-generate;h=f7c929eaafff39b5968724d3a763f0f92be718f4;hb=6d44670b928bb0a25fc13236df9c9903926a857e;hp=03a51861b4925ee3bac7f4a8bdc29dc6f20f09c8;hpb=44edf4e7b50c276193417a5e7259e8b79624aa07;p=mirror%2Fuserdir-ldap.git diff --git a/ud-generate b/ud-generate index 03a5186..f7c929e 100755 --- 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 (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 \