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

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