summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-27 12:04:22 +0100
committerGünther Deschner <gd@samba.org>2008-03-27 13:06:43 +0100
commitd470243c7498d5a12790b334f05a6e5588fc01d8 (patch)
treee2b9ad8a5d76469f3c3cf752f31b8b83ac78db9d
parentcba8dcf759a2a0ed10060a19e9676bd1872ded67 (diff)
downloadsamba-d470243c7498d5a12790b334f05a6e5588fc01d8.tar.gz
samba-d470243c7498d5a12790b334f05a6e5588fc01d8.tar.bz2
samba-d470243c7498d5a12790b334f05a6e5588fc01d8.zip
Move DSGETDC_VALID_FLAGS to IDL.
Guenther (This used to be commit a14b00ee19c6dc23ff687e57e8e6340702056317)
-rw-r--r--source3/include/rpc_netlogon.h19
-rw-r--r--source3/librpc/idl/netlogon.idl18
2 files changed, 18 insertions, 19 deletions
diff --git a/source3/include/rpc_netlogon.h b/source3/include/rpc_netlogon.h
index f0cff0d40a..1ad468308d 100644
--- a/source3/include/rpc_netlogon.h
+++ b/source3/include/rpc_netlogon.h
@@ -45,25 +45,6 @@ typedef struct hdr_account_lockout_string {
uint32 buffer;
} HDR_LOCKOUT_STRING;
-#define DSGETDC_VALID_FLAGS ( \
- DS_FORCE_REDISCOVERY | \
- DS_DIRECTORY_SERVICE_REQUIRED | \
- DS_DIRECTORY_SERVICE_PREFERRED | \
- DS_GC_SERVER_REQUIRED | \
- DS_PDC_REQUIRED | \
- DS_BACKGROUND_ONLY | \
- DS_IP_REQUIRED | \
- DS_KDC_REQUIRED | \
- DS_TIMESERV_REQUIRED | \
- DS_WRITABLE_REQUIRED | \
- DS_GOOD_TIMESERV_PREFERRED | \
- DS_AVOID_SELF | \
- DS_ONLY_LDAP_NEEDED | \
- DS_IS_FLAT_NAME | \
- DS_IS_DNS_NAME | \
- DS_RETURN_FLAT_NAME | \
- DS_RETURN_DNS_NAME )
-
struct DS_DOMAIN_CONTROLLER_INFO {
const char *domain_controller_name;
const char *domain_controller_address;
diff --git a/source3/librpc/idl/netlogon.idl b/source3/librpc/idl/netlogon.idl
index d701b1e1c9..6a7f4207e2 100644
--- a/source3/librpc/idl/netlogon.idl
+++ b/source3/librpc/idl/netlogon.idl
@@ -940,6 +940,24 @@ interface netlogon
/* one unkown bit still: DS_IP_VERSION_AGNOSTIC - gd*/
+ const int DSGETDC_VALID_FLAGS = (DS_FORCE_REDISCOVERY |
+ DS_DIRECTORY_SERVICE_REQUIRED |
+ DS_DIRECTORY_SERVICE_PREFERRED |
+ DS_GC_SERVER_REQUIRED |
+ DS_PDC_REQUIRED |
+ DS_BACKGROUND_ONLY |
+ DS_IP_REQUIRED |
+ DS_KDC_REQUIRED |
+ DS_TIMESERV_REQUIRED |
+ DS_WRITABLE_REQUIRED |
+ DS_GOOD_TIMESERV_PREFERRED |
+ DS_AVOID_SELF |
+ DS_ONLY_LDAP_NEEDED |
+ DS_IS_FLAT_NAME |
+ DS_IS_DNS_NAME |
+ DS_RETURN_FLAT_NAME |
+ DS_RETURN_DNS_NAME);
+
typedef [bitmap32bit] bitmap {
DS_FORCE_REDISCOVERY = 0x00000001,
DS_DIRECTORY_SERVICE_REQUIRED = 0x00000010,