summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-05 01:22:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:54 -0500
commita5f84481e38ffc79043bfbac5f0353856b77b141 (patch)
tree998d6f505a1768ae060f83dceddaf0ece1e32660 /source3/include
parent9d0a31e9638d118b04f96260b61fdd4370beab97 (diff)
downloadsamba-a5f84481e38ffc79043bfbac5f0353856b77b141.tar.gz
samba-a5f84481e38ffc79043bfbac5f0353856b77b141.tar.bz2
samba-a5f84481e38ffc79043bfbac5f0353856b77b141.zip
r5655: Added support for Novell NDS universal password. Code donated by
Vince Brimhall <vbrimhall@novell.com> - slight tidyup by me to use Samba conventions. Vince - thanks a *lot* for this code - please test to make sure I haven't messed anything up. Jeremy. (This used to be commit 6f5ea963abe8e19d17a1803d4bedd9d87a317e58)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/passdb.h6
-rw-r--r--source3/include/smbldap.h25
2 files changed, 30 insertions, 1 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index 3c244e7625..5a70bb45a8 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -241,7 +241,7 @@ struct acct_info
* this SAMBA will load. Increment this if *ANY* changes are made to the interface.
*/
-#define PASSDB_INTERFACE_VERSION 7
+#define PASSDB_INTERFACE_VERSION 8
typedef struct pdb_context
{
@@ -267,6 +267,8 @@ typedef struct pdb_context
NTSTATUS (*pdb_delete_sam_account)(struct pdb_context *, SAM_ACCOUNT *username);
+ NTSTATUS (*pdb_update_login_attempts)(struct pdb_context *context, SAM_ACCOUNT *sam_acct, BOOL success);
+
NTSTATUS (*pdb_getgrsid)(struct pdb_context *context, GROUP_MAP *map, DOM_SID sid);
NTSTATUS (*pdb_getgrgid)(struct pdb_context *context, GROUP_MAP *map, gid_t gid);
@@ -371,6 +373,8 @@ typedef struct pdb_methods
NTSTATUS (*delete_sam_account)(struct pdb_methods *, SAM_ACCOUNT *username);
+ NTSTATUS (*update_login_attempts)(struct pdb_methods *methods, SAM_ACCOUNT *sam_acct, BOOL success);
+
NTSTATUS (*getgrsid)(struct pdb_methods *methods, GROUP_MAP *map, DOM_SID sid);
NTSTATUS (*getgrgid)(struct pdb_methods *methods, GROUP_MAP *map, gid_t gid);
diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h
index d005104dea..e6a6a1b7c6 100644
--- a/source3/include/smbldap.h
+++ b/source3/include/smbldap.h
@@ -155,6 +155,31 @@ struct smbldap_state {
struct timeval last_rebind;
};
+/* struct used by both pdb_ldap.c and pdb_nds.c */
+
+struct ldapsam_privates {
+ struct smbldap_state *smbldap_state;
+
+ /* Former statics */
+ LDAPMessage *result;
+ LDAPMessage *entry;
+ int index;
+
+ const char *domain_name;
+ DOM_SID domain_sid;
+
+ /* configuration items */
+ int schema_ver;
+
+ char *domain_dn;
+
+ /* Is this NDS ldap? */
+ int is_nds_ldap;
+
+ /* ldap server location parameter */
+ char *location;
+};
+
#endif /* HAVE_LDAP */
struct smbldap_state;