Blame SOURCES/0001-library-move-UAC-flags-to-a-more-common-header-file.patch

2d8b37
From a7a40ce4f47fe40305624b6d86c135b7d27c387d Mon Sep 17 00:00:00 2001
2d8b37
From: Sumit Bose <sbose@redhat.com>
2d8b37
Date: Fri, 11 Jun 2021 12:44:36 +0200
2d8b37
Subject: [PATCH 1/3] library: move UAC flags to a more common header file
2d8b37
2d8b37
---
2d8b37
 library/adenroll.c  | 8 --------
2d8b37
 library/adprivate.h | 8 ++++++++
2d8b37
 2 files changed, 8 insertions(+), 8 deletions(-)
2d8b37
2d8b37
diff --git a/library/adenroll.c b/library/adenroll.c
2d8b37
index f00d179..0b1c066 100644
2d8b37
--- a/library/adenroll.c
2d8b37
+++ b/library/adenroll.c
2d8b37
@@ -93,13 +93,6 @@ static char *default_ad_ldap_attrs[] =  {
2d8b37
 	NULL,
2d8b37
 };
2d8b37
 
2d8b37
-/* Some constants for the userAccountControl AD LDAP attribute, see e.g.
2d8b37
- * https://support.microsoft.com/en-us/help/305144/how-to-use-the-useraccountcontrol-flags-to-manipulate-user-account-pro
2d8b37
- * for details. */
2d8b37
-#define UAC_WORKSTATION_TRUST_ACCOUNT  0x1000
2d8b37
-#define UAC_DONT_EXPIRE_PASSWORD      0x10000
2d8b37
-#define UAC_TRUSTED_FOR_DELEGATION    0x80000
2d8b37
-
2d8b37
 struct _adcli_enroll {
2d8b37
 	int refs;
2d8b37
 	adcli_conn *conn;
2d8b37
diff --git a/library/adprivate.h b/library/adprivate.h
2d8b37
index 55e6234..822f919 100644
2d8b37
--- a/library/adprivate.h
2d8b37
+++ b/library/adprivate.h
2d8b37
@@ -39,6 +39,14 @@
2d8b37
 #define HOST_NAME_MAX 255
2d8b37
 #endif
2d8b37
 
2d8b37
+/* Some constants for the userAccountControl AD LDAP attribute, see e.g.
2d8b37
+ * https://support.microsoft.com/en-us/help/305144/how-to-use-the-useraccountcontrol-flags-to-manipulate-user-account-pro
2d8b37
+ * for details. */
2d8b37
+#define UAC_ACCOUNTDISABLE             0x0002
2d8b37
+#define UAC_WORKSTATION_TRUST_ACCOUNT  0x1000
2d8b37
+#define UAC_DONT_EXPIRE_PASSWORD      0x10000
2d8b37
+#define UAC_TRUSTED_FOR_DELEGATION    0x80000
2d8b37
+
2d8b37
 /* Utilities */
2d8b37
 
2d8b37
 #if !defined(__cplusplus) && (__GNUC__ > 2)
2d8b37
-- 
2d8b37
2.31.1
2d8b37