summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2004-02-23 02:47:27 +0000
committerJim McDonough <jmcd@samba.org>2004-02-23 02:47:27 +0000
commit74112e7ccaff59bca963d07af3aa11520d5cb656 (patch)
tree9f38f6a7be93b17004406b4a51a983d08a982ebe
parent6ba430dd8ec030359de0bc8295cb0db76912dbb0 (diff)
downloadsamba-74112e7ccaff59bca963d07af3aa11520d5cb656.tar.gz
samba-74112e7ccaff59bca963d07af3aa11520d5cb656.tar.bz2
samba-74112e7ccaff59bca963d07af3aa11520d5cb656.zip
Add bad password count/time attributes
(This used to be commit 2fa56111d37a09702b31e1769a687b630aff1c1b)
-rw-r--r--source3/include/smbldap.h1
-rw-r--r--source3/lib/smbldap.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h
index 14ea2de012..9ef66a14ef 100644
--- a/source3/include/smbldap.h
+++ b/source3/include/smbldap.h
@@ -91,6 +91,7 @@
#define LDAP_ATTR_BAD_PASSWORD_COUNT 35
#define LDAP_ATTR_LOGON_COUNT 36
#define LDAP_ATTR_MUNGED_DIAL 37
+#define LDAP_ATTR_BAD_PASSWORD_TIME 38
typedef struct _attrib_map_entry {
int attrib;
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index bb16517149..fcebccc58a 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -98,6 +98,8 @@ ATTRIB_MAP_ENTRY attrib_map_v30[] = {
{ LDAP_ATTR_OBJCLASS, "objectClass" },
{ LDAP_ATTR_ACB_INFO, "sambaAcctFlags" },
{ LDAP_ATTR_MUNGED_DIAL, "sambaMungedDial" },
+ { LDAP_ATTR_BAD_PASSWORD_COUNT, "sambaBadPasswordCount" },
+ { LDAP_ATTR_BAD_PASSWORD_TIME, "sambaBadPasswordTime" },
{ LDAP_ATTR_LIST_END, NULL }
};