Blame SOURCES/0038-gssapi-default-pam_gssapi_services-to-NULL-in-domain.patch

b833e0
From cc173629f30fbc885ee90e52a205554b118e0ee6 Mon Sep 17 00:00:00 2001
b833e0
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
b833e0
Date: Mon, 11 Jan 2021 13:11:39 +0100
b833e0
Subject: [PATCH 38/39] gssapi: default pam_gssapi_services to NULL in domain
b833e0
 section
b833e0
b833e0
We need to distinguish when the option is not set in domain section and when
b833e0
it is is explicitly disabled. Now if it is not set, domain->gssapi_services
b833e0
is NULL and we'll use value from the pam section.
b833e0
b833e0
Without this change, the value in the pam section is ignored.
b833e0
b833e0
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
b833e0
Reviewed-by: Sumit Bose <sbose@redhat.com>
b833e0
---
b833e0
 src/confdb/confdb.c | 2 +-
b833e0
 1 file changed, 1 insertion(+), 1 deletion(-)
b833e0
b833e0
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c
b833e0
index 2881ce5da..befcfff2d 100644
b833e0
--- a/src/confdb/confdb.c
b833e0
+++ b/src/confdb/confdb.c
b833e0
@@ -1582,7 +1582,7 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb,
b833e0
     }
b833e0
 
b833e0
     tmp = ldb_msg_find_attr_as_string(res->msgs[0], CONFDB_PAM_GSSAPI_SERVICES,
b833e0
-                                      "-");
b833e0
+                                      NULL);
b833e0
     if (tmp != NULL) {
b833e0
         ret = split_on_separator(domain, tmp, ',', true, true,
b833e0
                                  &domain->gssapi_services, NULL);
b833e0
-- 
b833e0
2.21.3
b833e0