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