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

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