From 2ba5c5051d6c96d4360d02db30b6928665dc8319 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 7 Oct 2009 17:04:36 -0400 Subject: Move ldap provider configuration into its own file --- server/providers/ldap/sdap.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'server/providers/ldap/sdap.h') diff --git a/server/providers/ldap/sdap.h b/server/providers/ldap/sdap.h index 891f8701b..540e4c785 100644 --- a/server/providers/ldap/sdap.h +++ b/server/providers/ldap/sdap.h @@ -19,6 +19,9 @@ along with this program. If not, see . */ +#ifndef _SDAP_H_ +#define _SDAP_H_ + #include "providers/dp_backend.h" #include #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_ */ -- cgit