diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-22 21:18:48 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-23 09:13:21 -0500 |
commit | 087219897d8b8a92d7d33da3fa30883d40ad8cdb (patch) | |
tree | 5f003f8861d653ca4aabcba8570196861c31b9c5 /src/providers/ldap/ldap_common.h | |
parent | 5319ad03a11fb600bea9a9a51a392eef38e10ac8 (diff) | |
download | sssd_unused-087219897d8b8a92d7d33da3fa30883d40ad8cdb.tar.gz sssd_unused-087219897d8b8a92d7d33da3fa30883d40ad8cdb.tar.xz sssd_unused-087219897d8b8a92d7d33da3fa30883d40ad8cdb.zip |
IPA: Add ipa_parse_search_base()
Previously, we were using sdap_parse_search_base() for setting up
the search_base objects for use in IPA. However, this was
generating unfriendly log messages about unknown search base
types. This patch creates a new common_parse_search_base() routine
that can be used with either LDAP or IPA providers.
https://fedorahosted.org/sssd/ticket/1151
Diffstat (limited to 'src/providers/ldap/ldap_common.h')
-rw-r--r-- | src/providers/ldap/ldap_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h index c9125763..7c472cf4 100644 --- a/src/providers/ldap/ldap_common.h +++ b/src/providers/ldap/ldap_common.h @@ -203,5 +203,10 @@ errno_t msgs2attrs_array(TALLOC_CTX *mem_ctx, size_t count, errno_t sdap_parse_search_base(TALLOC_CTX *mem_ctx, struct dp_option *opts, int class, struct sdap_search_base ***_search_bases); +errno_t common_parse_search_base(TALLOC_CTX *mem_ctx, + const char *unparsed_base, + const char *class_name, + const char *old_filter, + struct sdap_search_base ***_search_bases); #endif /* _LDAP_COMMON_H_ */ |