From: Jeremy Allison Date: Thu, 6 Nov 2008 14:40:35 +0000 (-0800) Subject: Fix bug #5825 - Account locking out doesnt work with an LDAP backend.Based on a probl... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab984c93a2b197368ad21cfa0982ac2438ec57bf;p=thirdparty%2Fsamba.git Fix bug #5825 - Account locking out doesnt work with an LDAP backend.Based on a problem found by Boyang. Only the pdb_nds backend implements login attempts so this was broken for tdbsam and ldap. Jeremy. --- diff --git a/source/passdb/pdb_interface.c b/source/passdb/pdb_interface.c index cd34c89bfc5..dd9fd1b5400 100644 --- a/source/passdb/pdb_interface.c +++ b/source/passdb/pdb_interface.c @@ -1150,7 +1150,9 @@ static NTSTATUS pdb_default_rename_sam_account (struct pdb_methods *methods, str static NTSTATUS pdb_default_update_login_attempts (struct pdb_methods *methods, struct samu *newpwd, bool success) { - return NT_STATUS_NOT_IMPLEMENTED; + /* Only the pdb_nds backend implements this, by + * default just return ok. */ + return NT_STATUS_OK; } static NTSTATUS pdb_default_get_account_policy(struct pdb_methods *methods, int policy_index, uint32 *value)