X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-mailgate;h=60baacdc2b12433de6030a31f7c68c14d155a5d1;hb=8b615deb35e176d752f1784ada1ad529b43fa9fd;hp=6e24f10d0108c165c31c76071a9f84fd973dded6;hpb=162b1cc123ef36b78070248e133d35ba6968a2a8;p=mirror%2Fuserdir-ldap.git diff --git a/ud-mailgate b/ud-mailgate index 6e24f10..60baacd 100755 --- a/ud-mailgate +++ b/ud-mailgate @@ -416,7 +416,7 @@ def HandleChPass(Reply,DnRecord,Key): # Check for a locked account Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,"uid="+GetAttr(DnRecord,"uid")); if (string.find(GetAttr(Attrs[0],"userPassword"),"*LK*") != -1) \ - or GetAttr(x,"userPassword").startswith("!"): + or GetAttr(Attrs[0],"userPassword").startswith("!"): raise Error, "This account is locked"; # Modify the password