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

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