summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_samr.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-15 08:06:39 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-15 08:06:39 +0000
commit497e01e93e642ce8dd9ef77d0c3f0e61e19a765d (patch)
treeb753e3697e15832543a8b14e719952b3b3efcf74 /source4/librpc/ndr/ndr_samr.h
parentbcfbaa312a8493aa2b6ef76a7ebeee55625e5a9c (diff)
downloadsamba-497e01e93e642ce8dd9ef77d0c3f0e61e19a765d.tar.gz
samba-497e01e93e642ce8dd9ef77d0c3f0e61e19a765d.tar.bz2
samba-497e01e93e642ce8dd9ef77d0c3f0e61e19a765d.zip
added samr_OpenDomain() and samr_QueryDomainInfo() level 1
(This used to be commit 2d9c055c1be7187ae890e46edba74bf4fedbc9db)
Diffstat (limited to 'source4/librpc/ndr/ndr_samr.h')
-rw-r--r--source4/librpc/ndr/ndr_samr.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/source4/librpc/ndr/ndr_samr.h b/source4/librpc/ndr/ndr_samr.h
index f24dde1ec5..9bf4682563 100644
--- a/source4/librpc/ndr/ndr_samr.h
+++ b/source4/librpc/ndr/ndr_samr.h
@@ -98,21 +98,40 @@ struct samr_EnumDomains {
};
-struct samr_OPEN_DOMAIN {
+struct samr_OpenDomain {
struct {
+ struct policy_handle *handle;
+ uint32 access_mask;
+ struct dom_sid2 *sid;
} in;
struct {
+ struct policy_handle *domain_handle;
NTSTATUS result;
} out;
};
-struct samr_QUERY_DOMAIN_INFO {
+struct samr_DomInfo1 {
+ uint16 min_length_password;
+ uint16 password_history;
+ uint32 flag;
+ NTTIME expire;
+ NTTIME min_passwordage;
+};
+
+union samr_DomainInfo {
+/* [case(1)] */ struct samr_DomInfo1 info1;
+};
+
+struct samr_QueryDomainInfo {
struct {
+ struct policy_handle *handle;
+ uint16 level;
} in;
struct {
+ union samr_DomainInfo *info;
NTSTATUS result;
} out;
@@ -719,8 +738,8 @@ struct samr_VALIDATE_PASSWORD {
#define DCERPC_SAMR_SHUTDOWN 4
#define DCERPC_SAMR_LOOKUPDOMAIN 5
#define DCERPC_SAMR_ENUMDOMAINS 6
-#define DCERPC_SAMR_OPEN_DOMAIN 7
-#define DCERPC_SAMR_QUERY_DOMAIN_INFO 8
+#define DCERPC_SAMR_OPENDOMAIN 7
+#define DCERPC_SAMR_QUERYDOMAININFO 8
#define DCERPC_SAMR_SET_DOMAIN_INFO 9
#define DCERPC_SAMR_CREATE_DOM_GROUP 10
#define DCERPC_SAMR_ENUM_DOM_GROUPS 11