Blame SOURCES/0001-Fix-for-dont-expire-password-option-and-join.patch

54f29a
From 0d8482d4ed83677424f6c9428672d225bfdfe4d9 Mon Sep 17 00:00:00 2001
54f29a
From: Sumit Bose <sbose@redhat.com>
54f29a
Date: Thu, 3 Jun 2021 15:03:20 +0200
54f29a
Subject: [PATCH] Fix for dont-expire-password option and join
54f29a
54f29a
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1769644
54f29a
---
54f29a
 library/adenroll.c | 3 ++-
54f29a
 1 file changed, 2 insertions(+), 1 deletion(-)
54f29a
54f29a
diff --git a/library/adenroll.c b/library/adenroll.c
54f29a
index 7653f89..f00d179 100644
54f29a
--- a/library/adenroll.c
54f29a
+++ b/library/adenroll.c
54f29a
@@ -859,7 +859,8 @@ create_computer_account (adcli_enroll *enroll,
54f29a
 		uac |= UAC_TRUSTED_FOR_DELEGATION;
54f29a
 	}
54f29a
 
54f29a
-	if (!adcli_enroll_get_dont_expire_password (enroll)) {
54f29a
+	if (enroll->dont_expire_password_explicit
54f29a
+		       && !adcli_enroll_get_dont_expire_password (enroll)) {
54f29a
 		uac &= ~(UAC_DONT_EXPIRE_PASSWORD);
54f29a
 	}
54f29a
 
54f29a
-- 
54f29a
2.31.1
54f29a