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

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