X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-generate;h=bc85714419cc5fbee327bf76920646552374c394;hb=9126d4b7859fcd0865b4c0d0e6681bae1c838df4;hp=8baf226a0a9bc31929f0b1f7fb60d4f2dc253d35;hpb=58b1ca2d5d35584f8dcf6344c374d0e13c9a809a;p=mirror%2Fuserdir-ldap.git diff --git a/ud-generate b/ud-generate index 8baf226..bc85714 100755 --- a/ud-generate +++ b/ud-generate @@ -5,7 +5,7 @@ # Copyright (c) 2000-2001 Jason Gunthorpe # Copyright (c) 2003-2004 James Troup # Copyright (c) 2004-2005 Joey Schulze -# Copyright (c) 2001-2006 Ryan Murray +# Copyright (c) 2001-2007 Ryan Murray # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -403,8 +403,7 @@ def GenMailDisable(l,File): Reason = None # If the account is locked, disable incoming mail - if (string.find(GetAttr(x,"userPassword"),"*LK*") != -1) or \ - x[1].has_key("keyFingerPrint") == 0: + if (string.find(GetAttr(x,"userPassword"),"*LK*") != -1): Reason = "user account locked" else: if x[1].has_key("mailDisableMessage"):