Blame SOURCES/0064-ldap-fix-modifytimestamp-debugging-leftovers.patch
|
|
44f86b |
From b816fa19ec6be3c5eb183d1caa03f0153538e2ac Mon Sep 17 00:00:00 2001
|
|
|
44f86b |
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
|
|
|
44f86b |
Date: Fri, 12 Feb 2021 15:30:59 +0100
|
|
|
44f86b |
Subject: [PATCH] ldap: fix modifytimestamp debugging leftovers
|
|
|
44f86b |
|
|
|
44f86b |
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
|
|
|
44f86b |
(cherry picked from commit 75343ff575f05a69750a6482de9abc29d85100bf)
|
|
|
44f86b |
---
|
|
|
44f86b |
src/providers/ldap/sdap.c | 4 ++--
|
|
|
44f86b |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
44f86b |
|
|
|
44f86b |
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
|
|
|
44f86b |
index 0413930bc..a1a00df56 100644
|
|
|
44f86b |
--- a/src/providers/ldap/sdap.c
|
|
|
44f86b |
+++ b/src/providers/ldap/sdap.c
|
|
|
44f86b |
@@ -1322,7 +1322,7 @@ int sdap_get_server_opts_from_rootdse(TALLOC_CTX *memctx,
|
|
|
44f86b |
last_usn_name = opts->gen_map[SDAP_AT_LAST_USN].name;
|
|
|
44f86b |
entry_usn_name = opts->gen_map[SDAP_AT_ENTRY_USN].name;
|
|
|
44f86b |
if (rootdse) {
|
|
|
44f86b |
- if (false) {
|
|
|
44f86b |
+ if (last_usn_name) {
|
|
|
44f86b |
ret = sysdb_attrs_get_string(rootdse,
|
|
|
44f86b |
last_usn_name, &last_usn_value);
|
|
|
44f86b |
if (ret != EOK) {
|
|
|
44f86b |
@@ -1431,7 +1431,7 @@ int sdap_get_server_opts_from_rootdse(TALLOC_CTX *memctx,
|
|
|
44f86b |
}
|
|
|
44f86b |
}
|
|
|
44f86b |
|
|
|
44f86b |
- if (true) {
|
|
|
44f86b |
+ if (!last_usn_name) {
|
|
|
44f86b |
DEBUG(SSSDBG_FUNC_DATA,
|
|
|
44f86b |
"No known USN scheme is supported by this server!\n");
|
|
|
44f86b |
if (!entry_usn_name) {
|
|
|
44f86b |
--
|
|
|
44f86b |
2.26.3
|
|
|
44f86b |
|