Blame SOURCES/0046-ldap-fix-modifytimestamp-debugging-leftovers.patch
|
|
bac598 |
From fff02bbf7967d291ccb019fae741e6591ed8fd41 Mon Sep 17 00:00:00 2001
|
|
|
bac598 |
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
|
|
|
bac598 |
Date: Fri, 12 Feb 2021 15:30:59 +0100
|
|
|
bac598 |
Subject: [PATCH] ldap: fix modifytimestamp debugging leftovers
|
|
|
bac598 |
|
|
|
bac598 |
---
|
|
|
bac598 |
src/providers/ldap/sdap.c | 4 ++--
|
|
|
bac598 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
bac598 |
|
|
|
bac598 |
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
|
|
|
bac598 |
index c853e4dc1..32c0144b9 100644
|
|
|
bac598 |
--- a/src/providers/ldap/sdap.c
|
|
|
bac598 |
+++ b/src/providers/ldap/sdap.c
|
|
|
bac598 |
@@ -1391,7 +1391,7 @@ int sdap_get_server_opts_from_rootdse(TALLOC_CTX *memctx,
|
|
|
bac598 |
last_usn_name = opts->gen_map[SDAP_AT_LAST_USN].name;
|
|
|
bac598 |
entry_usn_name = opts->gen_map[SDAP_AT_ENTRY_USN].name;
|
|
|
bac598 |
if (rootdse) {
|
|
|
bac598 |
- if (false) {
|
|
|
bac598 |
+ if (last_usn_name) {
|
|
|
bac598 |
ret = sysdb_attrs_get_string(rootdse,
|
|
|
bac598 |
last_usn_name, &last_usn_value);
|
|
|
bac598 |
if (ret != EOK) {
|
|
|
bac598 |
@@ -1500,7 +1500,7 @@ int sdap_get_server_opts_from_rootdse(TALLOC_CTX *memctx,
|
|
|
bac598 |
}
|
|
|
bac598 |
}
|
|
|
bac598 |
|
|
|
bac598 |
- if (true) {
|
|
|
bac598 |
+ if (!last_usn_name) {
|
|
|
bac598 |
DEBUG(SSSDBG_FUNC_DATA,
|
|
|
bac598 |
"No known USN scheme is supported by this server!\n");
|
|
|
bac598 |
if (!entry_usn_name) {
|
|
|
bac598 |
--
|
|
|
bac598 |
2.21.3
|
|
|
bac598 |
|