summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-11-06 06:42:04 -0800
committerJeremy Allison <jra@samba.org>2008-11-06 06:42:04 -0800
commit0db0ce4974b7371891472f75080b1da2d5538b07 (patch)
treeef939f3614588fbc1a48c86abd841535481942c2
parent8d69a6511018390cc11a5020676e7cf14cdb000a (diff)
downloadsamba-0db0ce4974b7371891472f75080b1da2d5538b07.tar.gz
samba-0db0ce4974b7371891472f75080b1da2d5538b07.tar.bz2
samba-0db0ce4974b7371891472f75080b1da2d5538b07.zip
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.
-rw-r--r--source3/passdb/pdb_interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 2a1024cc56..fcb38b464b 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/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)