From d2969c6b23c722445bd699c830adb7601ba1cdc6 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Mon, 12 Aug 2013 15:06:18 +0000 Subject: Make LDAP extra attributes available to IPA and AD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://fedorahosted.org/sssd/ticket/2073 Reviewed-by: Simo Sorce Reviewed-by: Pavel Březina --- src/providers/ldap/ldap_options.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'src/providers/ldap/ldap_options.c') diff --git a/src/providers/ldap/ldap_options.c b/src/providers/ldap/ldap_options.c index 11ed9c31f..eb00aab32 100644 --- a/src/providers/ldap/ldap_options.c +++ b/src/providers/ldap/ldap_options.c @@ -23,44 +23,6 @@ #include "providers/ldap/sdap_async_private.h" #include "util/crypto/sss_crypto.h" -static int sdap_extend_map_with_list(TALLOC_CTX *mem_ctx, - struct sdap_options *opts, - int extra_attr_index, - struct sdap_attr_map *src_map, - size_t num_entries, - struct sdap_attr_map **_map, - size_t *_new_size) -{ - const char *extra_attrs; - char **extra_attrs_list; - errno_t ret; - - extra_attrs = dp_opt_get_string(opts->basic, extra_attr_index); - if (extra_attrs == NULL) { - *_map = src_map; - *_new_size = num_entries; - return EOK; - } - - /* split server parm into a list */ - ret = split_on_separator(mem_ctx, extra_attrs, ',', true, true, - &extra_attrs_list, NULL); - if (ret != EOK) { - DEBUG(SSSDBG_OP_FAILURE, "Failed to parse server list!\n"); - return ret; - } - - ret = sdap_extend_map(mem_ctx, src_map, - num_entries, extra_attrs_list, - _map, _new_size); - talloc_free(extra_attrs_list); - if (ret != EOK) { - return ret; - } - - return EOK; -} - int ldap_get_options(TALLOC_CTX *memctx, struct sss_domain_info *dom, struct confdb_ctx *cdb, -- cgit