diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-16 13:52:54 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-20 20:13:09 +0200 |
commit | 9dc153a402a36eeb6edbbf23ef489d957b9a76d0 (patch) | |
tree | acc476a7f145930a9d3091a003f6eb510c04413a | |
parent | 7b58d637c20f87e1e49ffc1d49a4de8b25ef06bb (diff) | |
download | sssd-9dc153a402a36eeb6edbbf23ef489d957b9a76d0.tar.gz sssd-9dc153a402a36eeb6edbbf23ef489d957b9a76d0.tar.bz2 sssd-9dc153a402a36eeb6edbbf23ef489d957b9a76d0.zip |
LDAP: Deprecate ldap_{user,group}_search_filter
-rw-r--r-- | src/man/sssd-ldap.5.xml | 44 | ||||
-rw-r--r-- | src/providers/ldap/ldap_common.c | 12 |
2 files changed, 12 insertions, 44 deletions
diff --git a/src/man/sssd-ldap.5.xml b/src/man/sssd-ldap.5.xml index d488ab37..8e6a4a39 100644 --- a/src/man/sssd-ldap.5.xml +++ b/src/man/sssd-ldap.5.xml @@ -2331,50 +2331,6 @@ ldap_access_filter = memberOf=cn=allowedusers,ou=Groups,dc=example,dc=com <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="include/ldap_search_bases.xml" /> </varlistentry> - <varlistentry> - <term>ldap_user_search_filter (string)</term> - <listitem> - <para> - This option specifies an additional LDAP search - filter criteria that restrict user searches. - </para> - <para> - This option is <emphasis>deprecated</emphasis> in - favor of the syntax used by ldap_user_search_base. - </para> - <para> - Default: not set - </para> - <para> - Example: - </para> - <programlisting> - ldap_user_search_filter = (loginShell=/bin/tcsh) - </programlisting> - <para> - This filter would restrict user searches to users - that have their shell set to /bin/tcsh. - </para> - </listitem> - </varlistentry> - - <varlistentry> - <term>ldap_group_search_filter (string)</term> - <listitem> - <para> - This option specifies an additional LDAP search - filter criteria that restrict group searches. - </para> - <para> - This option is <emphasis>deprecated</emphasis> in - favor of the syntax used by ldap_group_search_base. - </para> - <para> - Default: not set - </para> - </listitem> - </varlistentry> - <varlistentry condition="with_sudo"> <term>ldap_sudo_search_base (string)</term> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="include/ldap_search_bases.xml" /> diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c index b668a48e..d649e333 100644 --- a/src/providers/ldap/ldap_common.c +++ b/src/providers/ldap/ldap_common.c @@ -792,6 +792,18 @@ errno_t common_parse_search_base(TALLOC_CTX *mem_ctx, goto done; } + if (old_filter != NULL) { + /* Using a deprecated ldap_{user,group}_search_filter */ + DEBUG(SSSDBG_IMPORTANT_INFO, ("WARNING: Using a deprecated filter " + "option for %s. Please see the documentation on LDAP search " + "bases to see how the obsolete option can be migrated\n", + class_name)); + sss_log(SSS_LOG_NOTICE, "WARNING: Using a deprecated filter option" + "for %s. Please see the documentation on LDAP search bases " + "to see how the obsolete option can be migrated\n", + class_name); + } + ret = sdap_create_search_base(search_bases, unparsed_base, LDAP_SCOPE_SUBTREE, old_filter, &search_bases[0]); |