summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_ldap.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-10-10 21:45:42 +0200
committerGünther Deschner <gd@samba.org>2011-10-11 10:41:29 +0200
commita1f4fe7e08ca4fb0441869e73e3cc1af607e8d8b (patch)
tree152ecfea15d560197c84fc55e8964f16870f7939 /source3/passdb/pdb_ldap.h
parent2c3c18c388d4cae107ecc3bb7e8cb43b525a1154 (diff)
downloadsamba-a1f4fe7e08ca4fb0441869e73e3cc1af607e8d8b.tar.gz
samba-a1f4fe7e08ca4fb0441869e73e3cc1af607e8d8b.tar.bz2
samba-a1f4fe7e08ca4fb0441869e73e3cc1af607e8d8b.zip
s3-passdb: split out passdb/pdb_ldap.h.
Guenther
Diffstat (limited to 'source3/passdb/pdb_ldap.h')
-rw-r--r--source3/passdb/pdb_ldap.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.h b/source3/passdb/pdb_ldap.h
new file mode 100644
index 0000000000..244945d933
--- /dev/null
+++ b/source3/passdb/pdb_ldap.h
@@ -0,0 +1,42 @@
+/*
+ Unix SMB/CIFS implementation.
+ LDAP protocol helper functions for SAMBA
+ Copyright (C) Jean François Micouleau 1998
+ Copyright (C) Gerald Carter 2001-2003
+ Copyright (C) Shahms King 2001
+ Copyright (C) Andrew Bartlett 2002-2003
+ Copyright (C) Stefan (metze) Metzmacher 2002-2003
+ Copyright (C) Simo Sorce 2006
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+#ifndef _PASSDB_PDB_LDAP_H_
+#define _PASSDB_PDB_LDAP_H_
+
+/* The following definitions come from passdb/pdb_ldap.c */
+
+const char** get_userattr_list( TALLOC_CTX *mem_ctx, int schema_ver );
+NTSTATUS pdb_init_ldapsam_compat(struct pdb_methods **pdb_method, const char *location);
+NTSTATUS pdb_init_ldapsam(struct pdb_methods **pdb_method, const char *location);
+NTSTATUS pdb_ldap_init(void);
+int ldapsam_search_suffix_by_name(struct ldapsam_privates *ldap_state,
+ const char *user,
+ LDAPMessage ** result,
+ const char **attr);
+const char** get_userattr_list( TALLOC_CTX *mem_ctx, int schema_ver );
+LDAP *priv2ld(struct ldapsam_privates *priv);
+
+#endif /* _PASSDB_PDB_LDAP_H_ */