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

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