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