summaryrefslogtreecommitdiff
path: root/server/providers/ldap/sdap.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-10-07 17:04:36 -0400
committerSimo Sorce <ssorce@redhat.com>2009-10-14 17:33:20 -0400
commit2ba5c5051d6c96d4360d02db30b6928665dc8319 (patch)
tree947315bcf14e268bdb556f638540725815f7abf2 /server/providers/ldap/sdap.h
parent8b02aa0d0ce4f70cabc3ee4b332f65b51ed03fc5 (diff)
downloadsssd-2ba5c5051d6c96d4360d02db30b6928665dc8319.tar.gz
sssd-2ba5c5051d6c96d4360d02db30b6928665dc8319.tar.bz2
sssd-2ba5c5051d6c96d4360d02db30b6928665dc8319.zip
Move ldap provider configuration into its own file
Diffstat (limited to 'server/providers/ldap/sdap.h')
-rw-r--r--server/providers/ldap/sdap.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/server/providers/ldap/sdap.h b/server/providers/ldap/sdap.h
index 891f8701..540e4c78 100644
--- a/server/providers/ldap/sdap.h
+++ b/server/providers/ldap/sdap.h
@@ -19,6 +19,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef _SDAP_H_
+#define _SDAP_H_
+
#include "providers/dp_backend.h"
#include <ldap.h>
#include "util/sss_ldap.h"
@@ -159,10 +162,12 @@ struct sdap_options {
struct ldb_dn *groups_base;
};
-int sdap_get_options(TALLOC_CTX *memctx,
- struct confdb_ctx *cdb,
- const char *conf_path,
- struct sdap_options **_opts);
+int sdap_get_map(TALLOC_CTX *memctx,
+ struct confdb_ctx *cdb,
+ const char *conf_path,
+ struct sdap_id_map *def_map,
+ int num_entries,
+ struct sdap_id_map **_map);
int sdap_parse_user(TALLOC_CTX *memctx, struct sdap_options *opts,
struct sdap_handle *sh, struct sdap_msg *sm,
@@ -176,3 +181,5 @@ int sdap_get_msg_dn(TALLOC_CTX *memctx, struct sdap_handle *sh,
struct sdap_msg *sm, char **_dn);
errno_t setup_tls_config(struct dp_option *basic_opts);
+
+#endif /* _SDAP_H_ */