summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2005-08-13 12:05:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:32 -0500
commit2c425096732d6693b4388ad0167e566d8378ff79 (patch)
tree6638fbe0ebffa3579c195346628a4c2c195b29bb /source3/include
parent9a6c50f5525c0eba739a4e3f500e91ef407e69b6 (diff)
downloadsamba-2c425096732d6693b4388ad0167e566d8378ff79.tar.gz
samba-2c425096732d6693b4388ad0167e566d8378ff79.tar.bz2
samba-2c425096732d6693b4388ad0167e566d8378ff79.zip
r9303: Clobber compiler warnings. Patch from Jason Mader <jason@ncac.gwu.edu> plus
some extra function declarations. Bugzilla bug #2523. (This used to be commit 98d364459daa48aca3d239926cf40a0655e27e97)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smbldap.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h
index b54b3f4325..df56f60bf3 100644
--- a/source3/include/smbldap.h
+++ b/source3/include/smbldap.h
@@ -22,6 +22,8 @@
#ifndef _SMBLDAP_H
#define _SMBLDAP_H
+struct smbldap_state;
+
#ifdef HAVE_LDAP
/* specify schema versions between 2.2. and 3.0 */
@@ -119,6 +121,10 @@ extern ATTRIB_MAP_ENTRY sidmap_attr_list[];
/* Function declarations -- not included in proto.h so we don't
have to worry about LDAP structure types */
+NTSTATUS smbldap_init(TALLOC_CTX *mem_ctx,
+ const char *location,
+ struct smbldap_state **smbldap_state);
+
const char* get_attr_key2string( ATTRIB_MAP_ENTRY table[], int key );
const char** get_attr_list( ATTRIB_MAP_ENTRY table[] );
void free_attr_list( const char **list );
@@ -131,6 +137,10 @@ BOOL smbldap_get_single_attribute (LDAP * ldap_struct, LDAPMessage * entry,
int max_len);
BOOL smbldap_get_single_pstring (LDAP * ldap_struct, LDAPMessage * entry,
const char *attribute, pstring value);
+char *smbldap_get_dn(LDAP *ld, LDAPMessage *entry);
+int smbldap_modify(struct smbldap_state *ldap_state,
+ const char *dn,
+ LDAPMod *attrs[]);
/**
* Struct to keep the state for all the ldap stuff
@@ -180,9 +190,21 @@ struct ldapsam_privates {
char *location;
};
-#endif /* HAVE_LDAP */
+/* Functions shared between pdb_ldap.c and pdb_nds.c. */
+NTSTATUS pdb_init_ldapsam_compat(PDB_CONTEXT *pdb_context,
+ PDB_METHODS **pdb_method,
+ const char *location);
+void private_data_free_fn(void **result);
+int ldapsam_search_suffix_by_name(struct ldapsam_privates *ldap_state,
+ const char *user,
+ LDAPMessage ** result,
+ const char **attr);
+NTSTATUS pdb_init_ldapsam(PDB_CONTEXT *pdb_context,
+ PDB_METHODS **pdb_method,
+ const char *location);
+const char** get_userattr_list( int schema_ver );
-struct smbldap_state;
+#endif /* HAVE_LDAP */
#define LDAP_CONNECT_DEFAULT_TIMEOUT 15
#define LDAP_PAGE_SIZE 1024