summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPetr Cech <pcech@redhat.com>2016-07-27 11:13:04 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-08-05 15:19:11 +0200
commite4ba22c165be4b0ccd0e1b9fc92f2f1e35f78a82 (patch)
treea1f6790863090a4f5a75dde194b954cee9288f4f /src
parent2427b40566cf63880f3650b26a2fee91cb28de24 (diff)
downloadsssd-e4ba22c165be4b0ccd0e1b9fc92f2f1e35f78a82.tar.gz
sssd-e4ba22c165be4b0ccd0e1b9fc92f2f1e35f78a82.tar.xz
sssd-e4ba22c165be4b0ccd0e1b9fc92f2f1e35f78a82.zip
Revert "LDAP: Lookup services by all protocols unless a protocol is specified"
This reverts commit aa58e216c1f794bd335151f19e79adbb3ddf4c73. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/ldap_id_services.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/providers/ldap/ldap_id_services.c b/src/providers/ldap/ldap_id_services.c
index 401228c20..77215127b 100644
--- a/src/providers/ldap/ldap_id_services.c
+++ b/src/providers/ldap/ldap_id_services.c
@@ -89,9 +89,6 @@ services_get_send(TALLOC_CTX *mem_ctx,
state->sysdb = sdom->dom->sysdb;
state->name = name;
state->protocol = protocol;
- if (state->protocol != NULL && state->protocol[0] == '\0') {
- state->protocol = NULL;
- }
state->filter_type = filter_type;
state->noexist_delete = noexist_delete;
@@ -117,8 +114,8 @@ services_get_send(TALLOC_CTX *mem_ctx,
ret = sss_filter_sanitize(state, name, &clean_name);
if (ret != EOK) goto error;
- if (state->protocol != NULL) {
- ret = sss_filter_sanitize(state, state->protocol, &clean_protocol);
+ if (protocol) {
+ ret = sss_filter_sanitize(state, protocol, &clean_protocol);
if (ret != EOK) goto error;
}