# 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) \
# 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) \