summaryrefslogtreecommitdiffstats
path: root/src/responder
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-08-07 16:14:51 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-08-11 15:22:29 +0200
commitd8b8995ef1c3f2a6c85dc141aaff7eef3faf05c1 (patch)
treee534b9cca0771d8132700622d7ed0c414fd21d7d /src/responder
parent4b9c236008b35d2155b94635a236ce7770db4728 (diff)
downloadsssd-d8b8995ef1c3f2a6c85dc141aaff7eef3faf05c1.tar.gz
sssd-d8b8995ef1c3f2a6c85dc141aaff7eef3faf05c1.tar.xz
sssd-d8b8995ef1c3f2a6c85dc141aaff7eef3faf05c1.zip
IFP: Fix lookups with fully-qualified names
The Data Provider lookup code user the original input string as the lookup key instead of the parsed name component. For example, for an input joe@mydomain, the backend would have searched for: (&(cn=joe@mydomain)(objectclass=user)) This patch fixes the lookup to use the parsed name. https://fedorahosted.org/sssd/ticket/2402 Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/ifp/ifpsrv_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/ifp/ifpsrv_cmd.c b/src/responder/ifp/ifpsrv_cmd.c
index 504839331..93fc9a8cf 100644
--- a/src/responder/ifp/ifpsrv_cmd.c
+++ b/src/responder/ifp/ifpsrv_cmd.c
@@ -643,7 +643,7 @@ int ifp_cache_check(struct ifp_user_get_attr_state *state,
DEBUG(SSSDBG_TRACE_FUNC, "Performing midpoint cache update\n");
req = sss_dp_get_account_send(state, state->rctx, state->dom, true,
- search_type, state->inp, 0,
+ search_type, state->name, 0,
NULL);
if (req == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE,
@@ -667,7 +667,7 @@ int ifp_cache_check(struct ifp_user_get_attr_state *state,
state->check_provider = false;
req = sss_dp_get_account_send(state, state->rctx, state->dom, true,
- search_type, state->inp, 0, NULL);
+ search_type, state->name, 0, NULL);
if (req == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE,
"Out of memory sending data provider request\n");