summaryrefslogtreecommitdiff
path: root/src/providers/ldap/ldap_common.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-09-16 13:52:54 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-20 20:13:09 +0200
commit9dc153a402a36eeb6edbbf23ef489d957b9a76d0 (patch)
treeacc476a7f145930a9d3091a003f6eb510c04413a /src/providers/ldap/ldap_common.c
parent7b58d637c20f87e1e49ffc1d49a4de8b25ef06bb (diff)
downloadsssd-9dc153a402a36eeb6edbbf23ef489d957b9a76d0.tar.gz
sssd-9dc153a402a36eeb6edbbf23ef489d957b9a76d0.tar.bz2
sssd-9dc153a402a36eeb6edbbf23ef489d957b9a76d0.zip
LDAP: Deprecate ldap_{user,group}_search_filter
Diffstat (limited to 'src/providers/ldap/ldap_common.c')
-rw-r--r--src/providers/ldap/ldap_common.c12
1 files changed, 12 insertions, 0 deletions
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]);