summaryrefslogtreecommitdiff
path: root/source3/include/smbldap.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-10-10 18:46:53 +0200
committerGünther Deschner <gd@samba.org>2011-10-11 10:41:28 +0200
commit2c3c18c388d4cae107ecc3bb7e8cb43b525a1154 (patch)
treee1027a6f502bb2ff2c25b7ae546e74cc9c54f4a4 /source3/include/smbldap.h
parentfea02ce1771ddb2ee09a442a86def72a01b9582e (diff)
downloadsamba-2c3c18c388d4cae107ecc3bb7e8cb43b525a1154.tar.gz
samba-2c3c18c388d4cae107ecc3bb7e8cb43b525a1154.tar.bz2
samba-2c3c18c388d4cae107ecc3bb7e8cb43b525a1154.zip
s3-smbldap: rearrange prototypes a bit.
Guenther
Diffstat (limited to 'source3/include/smbldap.h')
-rw-r--r--source3/include/smbldap.h37
1 files changed, 18 insertions, 19 deletions
diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h
index 4ae84763ed..c84a9acead 100644
--- a/source3/include/smbldap.h
+++ b/source3/include/smbldap.h
@@ -225,25 +225,6 @@ int ldapsam_search_suffix_by_name(struct ldapsam_privates *ldap_state,
const char **attr);
NTSTATUS pdb_init_ldapsam( struct pdb_methods **pdb_method, const char *location);
const char** get_userattr_list( TALLOC_CTX *mem_ctx, int schema_ver );
-
-char * smbldap_talloc_single_attribute(LDAP *ldap_struct, LDAPMessage *entry,
- const char *attribute,
- TALLOC_CTX *mem_ctx);
-char * smbldap_talloc_first_attribute(LDAP *ldap_struct, LDAPMessage *entry,
- const char *attribute,
- TALLOC_CTX *mem_ctx);
-char * smbldap_talloc_smallest_attribute(LDAP *ldap_struct, LDAPMessage *entry,
- const char *attribute,
- TALLOC_CTX *mem_ctx);
-bool smbldap_talloc_single_blob(TALLOC_CTX *mem_ctx, LDAP *ld,
- LDAPMessage *msg, const char *attrib,
- DATA_BLOB *blob);
-bool smbldap_pull_sid(LDAP *ld, LDAPMessage *msg, const char *attrib,
- struct dom_sid *sid);
-void talloc_autofree_ldapmsg(TALLOC_CTX *mem_ctx, LDAPMessage *result);
-void talloc_autofree_ldapmod(TALLOC_CTX *mem_ctx, LDAPMod **mod);
-char *smbldap_talloc_dn(TALLOC_CTX *mem_ctx, LDAP *ld,
- LDAPMessage *entry);
LDAP *priv2ld(struct ldapsam_privates *priv);
/* The following definitions come from lib/smbldap.c */
@@ -276,6 +257,24 @@ bool smbldap_has_control(LDAP *ld, const char *control);
bool smbldap_has_extension(LDAP *ld, const char *extension);
bool smbldap_has_naming_context(LDAP *ld, const char *naming_context);
bool smbldap_set_creds(struct smbldap_state *ldap_state, bool anon, const char *dn, const char *secret);
+char * smbldap_talloc_single_attribute(LDAP *ldap_struct, LDAPMessage *entry,
+ const char *attribute,
+ TALLOC_CTX *mem_ctx);
+char * smbldap_talloc_first_attribute(LDAP *ldap_struct, LDAPMessage *entry,
+ const char *attribute,
+ TALLOC_CTX *mem_ctx);
+char * smbldap_talloc_smallest_attribute(LDAP *ldap_struct, LDAPMessage *entry,
+ const char *attribute,
+ TALLOC_CTX *mem_ctx);
+bool smbldap_talloc_single_blob(TALLOC_CTX *mem_ctx, LDAP *ld,
+ LDAPMessage *msg, const char *attrib,
+ DATA_BLOB *blob);
+bool smbldap_pull_sid(LDAP *ld, LDAPMessage *msg, const char *attrib,
+ struct dom_sid *sid);
+void talloc_autofree_ldapmsg(TALLOC_CTX *mem_ctx, LDAPMessage *result);
+void talloc_autofree_ldapmod(TALLOC_CTX *mem_ctx, LDAPMod **mod);
+char *smbldap_talloc_dn(TALLOC_CTX *mem_ctx, LDAP *ld,
+ LDAPMessage *entry);
/* The following definitions come from lib/smbldap_util.c */