forked from jengelh/sssd
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
|
From 0ea7661eeb7783c45d7f0ec9d19d99ce9fe407cf Mon Sep 17 00:00:00 2001
|
||
|
From: David Mulder <dmulder@suse.com>
|
||
|
Date: Fri, 10 Jan 2020 18:21:05 +0000
|
||
|
Subject: [PATCH] Resolve computer lookup failure when sam!=cn
|
||
|
References: jsc#SLE-9298
|
||
|
Upstream: submitted
|
||
|
|
||
|
---
|
||
|
src/providers/ad/ad_gpo.c | 11 ++---------
|
||
|
1 file changed, 2 insertions(+), 9 deletions(-)
|
||
|
|
||
|
diff --git a/src/providers/ad/ad_gpo.c b/src/providers/ad/ad_gpo.c
|
||
|
index 90e1909f8..6dd850cc9 100644
|
||
|
--- a/src/providers/ad/ad_gpo.c
|
||
|
+++ b/src/providers/ad/ad_gpo.c
|
||
|
@@ -1947,7 +1947,6 @@ ad_gpo_target_dn_retrieval_done(struct tevent_req *subreq)
|
||
|
struct sysdb_attrs **reply;
|
||
|
const char *target_dn = NULL;
|
||
|
uint32_t uac;
|
||
|
- char *filter = NULL;
|
||
|
char *domain_dn;
|
||
|
const char *attrs[] = {AD_AT_SID, NULL};
|
||
|
struct ldb_message *msg;
|
||
|
@@ -2050,16 +2049,10 @@ ad_gpo_target_dn_retrieval_done(struct tevent_req *subreq)
|
||
|
goto done;
|
||
|
}
|
||
|
|
||
|
- filter = talloc_asprintf(subreq, SYSDB_COMP_FILTER, state->ad_hostname);
|
||
|
- if (!filter) {
|
||
|
- ret = ENOMEM;
|
||
|
- goto done;
|
||
|
- }
|
||
|
-
|
||
|
subreq = sdap_get_generic_send(state, state->ev, state->opts,
|
||
|
sdap_id_op_handle(state->sdap_op),
|
||
|
- domain_dn, LDAP_SCOPE_SUBTREE,
|
||
|
- filter, attrs, NULL, 0,
|
||
|
+ state->target_dn, LDAP_SCOPE_BASE,
|
||
|
+ "(&)", attrs, NULL, 0,
|
||
|
state->timeout,
|
||
|
false);
|
||
|
|
||
|
--
|
||
|
2.24.0
|
||
|
|