summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-11-06 06:42:34 -0800
committerKarolin Seeger <kseeger@samba.org>2008-11-18 10:06:51 +0100
commit899c9219f53916b3ebdbde9fcdf957907882ff45 (patch)
tree58505720b59d5cfbe938af1c3c6b76cd606de138 /source
parente54ddf2fbb209088552408f84f4fd1e19992704e (diff)
downloadsamba-899c9219f53916b3ebdbde9fcdf957907882ff45.tar.gz
samba-899c9219f53916b3ebdbde9fcdf957907882ff45.tar.xz
samba-899c9219f53916b3ebdbde9fcdf957907882ff45.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. (cherry picked from commit 7cbbcc75a834179d1c48411666670d7cb7d41726)
Diffstat (limited to 'source')
-rw-r--r--source/passdb/pdb_interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/passdb/pdb_interface.c b/source/passdb/pdb_interface.c
index 2a1024cc563..fcb38b464b3 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)