summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-08-07 16:14:51 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-08-14 12:31:27 +0200
commita2d44bee6630970be4a20ec2a3b3cbc94c0a44bd (patch)
tree71a209fd2a95485da636c6164fcbbe83441eceb0
parent42a40a983c7a79037988adcf689993a6c7853b6b (diff)
downloadsssd-a2d44bee6630970be4a20ec2a3b3cbc94c0a44bd.tar.gz
sssd-a2d44bee6630970be4a20ec2a3b3cbc94c0a44bd.tar.xz
sssd-a2d44bee6630970be4a20ec2a3b3cbc94c0a44bd.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> (cherry picked from commit d8b8995ef1c3f2a6c85dc141aaff7eef3faf05c1)
-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 84abfc1b9..6c34f0479 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");