summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-20 10:53:08 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-20 10:53:08 +0000
commitfe6fd991ee42aee36a5141f11295f7936091447f (patch)
treec2f92943d9c260e64b6efdf2bfd16d3e7cce6412 /source4/librpc/ndr
parentd4dfcda78eeca4206965667a45f4f00f4e10457a (diff)
downloadsamba-fe6fd991ee42aee36a5141f11295f7936091447f.tar.gz
samba-fe6fd991ee42aee36a5141f11295f7936091447f.tar.bz2
samba-fe6fd991ee42aee36a5141f11295f7936091447f.zip
extensive samr_SetUserInfo/samr_QueryUserInfo testing, with
cross-checking of all settable fields (This used to be commit 3337906d52e95c127d64f81f9fc99aeb8a8d1ce6)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/ndr_samr.c30
-rw-r--r--source4/librpc/ndr/ndr_samr.h10
2 files changed, 20 insertions, 20 deletions
diff --git a/source4/librpc/ndr/ndr_samr.c b/source4/librpc/ndr/ndr_samr.c
index f2dcfb9124..7d8bebeab4 100644
--- a/source4/librpc/ndr/ndr_samr.c
+++ b/source4/librpc/ndr/ndr_samr.c
@@ -327,7 +327,7 @@ NTSTATUS ndr_push_samr_UserInfo1(struct ndr_push *ndr, int ndr_flags, struct sam
NDR_CHECK(ndr_push_align(ndr, 4));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->username));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->full_name));
- NDR_CHECK(ndr_push_uint32(ndr, r->primary_group_rid));
+ NDR_CHECK(ndr_push_uint32(ndr, r->primary_gid));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->description));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->comment));
ndr_push_struct_end(ndr);
@@ -367,7 +367,7 @@ NTSTATUS ndr_push_samr_UserInfo3(struct ndr_push *ndr, int ndr_flags, struct sam
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->username));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->full_name));
NDR_CHECK(ndr_push_uint32(ndr, r->Rid));
- NDR_CHECK(ndr_push_uint32(ndr, r->primary_group_rid));
+ NDR_CHECK(ndr_push_uint32(ndr, r->primary_gid));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->home_directory));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->home_drive));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->logon_script));
@@ -431,7 +431,7 @@ NTSTATUS ndr_push_samr_UserInfo5(struct ndr_push *ndr, int ndr_flags, struct sam
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->username));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->full_name));
NDR_CHECK(ndr_push_uint32(ndr, r->rid));
- NDR_CHECK(ndr_push_uint32(ndr, r->primary_group_rid));
+ NDR_CHECK(ndr_push_uint32(ndr, r->primary_gid));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->home_directory));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->home_drive));
NDR_CHECK(ndr_push_samr_Name(ndr, NDR_SCALARS, &r->logon_script));
@@ -517,7 +517,7 @@ NTSTATUS ndr_push_samr_UserInfo9(struct ndr_push *ndr, int ndr_flags, struct sam
if (!(ndr_flags & NDR_SCALARS)) goto buffers;
NDR_CHECK(ndr_push_struct_start(ndr));
NDR_CHECK(ndr_push_align(ndr, 4));
- NDR_CHECK(ndr_push_uint32(ndr, r->PrimaryGroupRid));
+ NDR_CHECK(ndr_push_uint32(ndr, r->primary_gid));
ndr_push_struct_end(ndr);
buffers:
if (!(ndr_flags & NDR_BUFFERS)) goto done;
@@ -664,7 +664,7 @@ NTSTATUS ndr_push_samr_UserInfo21(struct ndr_push *ndr, int ndr_flags, struct sa
NDR_CHECK(ndr_push_uint32(ndr, r->buf_count));
NDR_CHECK(ndr_push_ptr(ndr, r->buffer));
NDR_CHECK(ndr_push_uint32(ndr, r->rid));
- NDR_CHECK(ndr_push_uint32(ndr, r->primary_group_rid));
+ NDR_CHECK(ndr_push_uint32(ndr, r->primary_gid));
NDR_CHECK(ndr_push_uint32(ndr, r->acct_flags));
NDR_CHECK(ndr_push_uint32(ndr, r->fields_present));
NDR_CHECK(ndr_push_uint32(ndr, r->units_per_week));
@@ -2141,7 +2141,7 @@ NTSTATUS ndr_pull_samr_UserInfo1(struct ndr_pull *ndr, int ndr_flags, struct sam
NDR_CHECK(ndr_pull_align(ndr, 4));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->username));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->full_name));
- NDR_CHECK(ndr_pull_uint32(ndr, &r->primary_group_rid));
+ NDR_CHECK(ndr_pull_uint32(ndr, &r->primary_gid));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->description));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->comment));
ndr_pull_struct_end(ndr);
@@ -2182,7 +2182,7 @@ NTSTATUS ndr_pull_samr_UserInfo3(struct ndr_pull *ndr, int ndr_flags, struct sam
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->username));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->full_name));
NDR_CHECK(ndr_pull_uint32(ndr, &r->Rid));
- NDR_CHECK(ndr_pull_uint32(ndr, &r->primary_group_rid));
+ NDR_CHECK(ndr_pull_uint32(ndr, &r->primary_gid));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->home_directory));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->home_drive));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->logon_script));
@@ -2284,7 +2284,7 @@ NTSTATUS ndr_pull_samr_UserInfo5(struct ndr_pull *ndr, int ndr_flags, struct sam
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->username));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->full_name));
NDR_CHECK(ndr_pull_uint32(ndr, &r->rid));
- NDR_CHECK(ndr_pull_uint32(ndr, &r->primary_group_rid));
+ NDR_CHECK(ndr_pull_uint32(ndr, &r->primary_gid));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->home_directory));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->home_drive));
NDR_CHECK(ndr_pull_samr_Name(ndr, NDR_SCALARS, &r->logon_script));
@@ -2388,7 +2388,7 @@ NTSTATUS ndr_pull_samr_UserInfo9(struct ndr_pull *ndr, int ndr_flags, struct sam
NDR_CHECK(ndr_pull_struct_start(ndr));
if (!(ndr_flags & NDR_SCALARS)) goto buffers;
NDR_CHECK(ndr_pull_align(ndr, 4));
- NDR_CHECK(ndr_pull_uint32(ndr, &r->PrimaryGroupRid));
+ NDR_CHECK(ndr_pull_uint32(ndr, &r->primary_gid));
ndr_pull_struct_end(ndr);
buffers:
if (!(ndr_flags & NDR_BUFFERS)) goto done;
@@ -2542,7 +2542,7 @@ NTSTATUS ndr_pull_samr_UserInfo21(struct ndr_pull *ndr, int ndr_flags, struct sa
r->buffer = NULL;
}
NDR_CHECK(ndr_pull_uint32(ndr, &r->rid));
- NDR_CHECK(ndr_pull_uint32(ndr, &r->primary_group_rid));
+ NDR_CHECK(ndr_pull_uint32(ndr, &r->primary_gid));
NDR_CHECK(ndr_pull_uint32(ndr, &r->acct_flags));
NDR_CHECK(ndr_pull_uint32(ndr, &r->fields_present));
NDR_CHECK(ndr_pull_uint32(ndr, &r->units_per_week));
@@ -4323,7 +4323,7 @@ void ndr_print_samr_UserInfo1(struct ndr_print *ndr, const char *name, struct sa
ndr->depth++;
ndr_print_samr_Name(ndr, "username", &r->username);
ndr_print_samr_Name(ndr, "full_name", &r->full_name);
- ndr_print_uint32(ndr, "primary_group_rid", r->primary_group_rid);
+ ndr_print_uint32(ndr, "primary_gid", r->primary_gid);
ndr_print_samr_Name(ndr, "description", &r->description);
ndr_print_samr_Name(ndr, "comment", &r->comment);
ndr->depth--;
@@ -4347,7 +4347,7 @@ void ndr_print_samr_UserInfo3(struct ndr_print *ndr, const char *name, struct sa
ndr_print_samr_Name(ndr, "username", &r->username);
ndr_print_samr_Name(ndr, "full_name", &r->full_name);
ndr_print_uint32(ndr, "Rid", r->Rid);
- ndr_print_uint32(ndr, "primary_group_rid", r->primary_group_rid);
+ ndr_print_uint32(ndr, "primary_gid", r->primary_gid);
ndr_print_samr_Name(ndr, "home_directory", &r->home_directory);
ndr_print_samr_Name(ndr, "home_drive", &r->home_drive);
ndr_print_samr_Name(ndr, "logon_script", &r->logon_script);
@@ -4392,7 +4392,7 @@ void ndr_print_samr_UserInfo5(struct ndr_print *ndr, const char *name, struct sa
ndr_print_samr_Name(ndr, "username", &r->username);
ndr_print_samr_Name(ndr, "full_name", &r->full_name);
ndr_print_uint32(ndr, "rid", r->rid);
- ndr_print_uint32(ndr, "primary_group_rid", r->primary_group_rid);
+ ndr_print_uint32(ndr, "primary_gid", r->primary_gid);
ndr_print_samr_Name(ndr, "home_directory", &r->home_directory);
ndr_print_samr_Name(ndr, "home_drive", &r->home_drive);
ndr_print_samr_Name(ndr, "logon_script", &r->logon_script);
@@ -4445,7 +4445,7 @@ void ndr_print_samr_UserInfo9(struct ndr_print *ndr, const char *name, struct sa
{
ndr_print_struct(ndr, name, "samr_UserInfo9");
ndr->depth++;
- ndr_print_uint32(ndr, "PrimaryGroupRid", r->PrimaryGroupRid);
+ ndr_print_uint32(ndr, "primary_gid", r->primary_gid);
ndr->depth--;
}
@@ -4545,7 +4545,7 @@ void ndr_print_samr_UserInfo21(struct ndr_print *ndr, const char *name, struct s
}
ndr->depth--;
ndr_print_uint32(ndr, "rid", r->rid);
- ndr_print_uint32(ndr, "primary_group_rid", r->primary_group_rid);
+ ndr_print_uint32(ndr, "primary_gid", r->primary_gid);
ndr_print_uint32(ndr, "acct_flags", r->acct_flags);
ndr_print_uint32(ndr, "fields_present", r->fields_present);
ndr_print_uint32(ndr, "units_per_week", r->units_per_week);
diff --git a/source4/librpc/ndr/ndr_samr.h b/source4/librpc/ndr/ndr_samr.h
index e148c9b90d..75e7b10401 100644
--- a/source4/librpc/ndr/ndr_samr.h
+++ b/source4/librpc/ndr/ndr_samr.h
@@ -696,7 +696,7 @@ struct samr_DeleteUser {
struct samr_UserInfo1 {
struct samr_Name username;
struct samr_Name full_name;
- uint32 primary_group_rid;
+ uint32 primary_gid;
struct samr_Name description;
struct samr_Name comment;
};
@@ -712,7 +712,7 @@ struct samr_UserInfo3 {
struct samr_Name username;
struct samr_Name full_name;
uint32 Rid;
- uint32 primary_group_rid;
+ uint32 primary_gid;
struct samr_Name home_directory;
struct samr_Name home_drive;
struct samr_Name logon_script;
@@ -739,7 +739,7 @@ struct samr_UserInfo5 {
struct samr_Name username;
struct samr_Name full_name;
uint32 rid;
- uint32 primary_group_rid;
+ uint32 primary_gid;
struct samr_Name home_directory;
struct samr_Name home_drive;
struct samr_Name logon_script;
@@ -771,7 +771,7 @@ struct samr_UserInfo8 {
};
struct samr_UserInfo9 {
- uint32 PrimaryGroupRid;
+ uint32 primary_gid;
};
struct samr_UserInfo10 {
@@ -830,7 +830,7 @@ struct samr_UserInfo21 {
uint32 buf_count;
uint8 *buffer;
uint32 rid;
- uint32 primary_group_rid;
+ uint32 primary_gid;
uint32 acct_flags;
uint32 fields_present;
uint32 units_per_week;