raise "No Users";
for x in PasswdAttrs:
- if x[1].has_key("uidNumber") == 0 or \
- x[1].has_key("sshRSAAuthKey") == 0:
+ # 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):
continue;
if x[1].has_key("uidNumber") == 0 or \
GenPasswd(l,OutDir+"passwd",Split[1]);
sys.stdout.flush();
GenGroup(l,OutDir+"group");
+ if CurrentHost == "haydn.debian.org" or CurrentHost == "costa.debian.org":
+ continue;
GenShadow(l,OutDir+"shadow");
# Link in global things