1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

r5364: Rename string fields called 'domain' and 'name' to be 'domain_name'.

(This used to be commit 6749b9404d4e9876ecd964e038c608f05d2c0b69)
This commit is contained in:
Tim Potter 2005-02-13 00:26:43 +00:00 committed by Gerald (Jerry) Carter
parent 2f8478b27d
commit abc28d66e9
9 changed files with 27 additions and 27 deletions

View File

@ -111,7 +111,7 @@ static NTSTATUS libnet_JoinDomain_samr(struct libnet_context *ctx,
/* prepare samr_LookupDomain */
d_name.string = r->samr.in.domain_name;
ld.in.connect_handle = &p_handle;
ld.in.domain = &d_name;
ld.in.domain_name = &d_name;
/* 3. do a samr_LookupDomain to get the domain sid */
status = dcerpc_samr_LookupDomain(c.pdc.out.dcerpc_pipe, mem_ctx, &ld);

View File

@ -548,7 +548,7 @@ static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX *
/* prepare samr_LookupDomain */
d_name.string = r->samr.in.domain_name;
ld.in.connect_handle = &p_handle;
ld.in.domain = &d_name;
ld.in.domain_name = &d_name;
/* 3. do a samr_LookupDomain to get the domain sid */
status = dcerpc_samr_LookupDomain(c.pdc.out.dcerpc_pipe, mem_ctx, &ld);

View File

@ -84,7 +84,7 @@
NTSTATUS samr_LookupDomain (
[in,ref] policy_handle *connect_handle,
[in,ref] samr_String *domain,
[in,ref] samr_String *domain_name,
[out] dom_sid2 *sid
);
@ -142,7 +142,7 @@
typedef struct {
NTTIME force_logoff_time;
samr_String comment;
samr_String domain; /* domain name */
samr_String domain_name;
samr_String primary; /* PDC name if this is a BDC */
udlong sequence_num;
uint32 unknown2;
@ -1087,7 +1087,7 @@
/************************/
/* Function 0x38 */
NTSTATUS samr_GetDomPwInfo(
[in] samr_String *name,
[in] samr_String *domain_name,
[out] samr_PwInfo info
);

View File

@ -169,14 +169,14 @@ static NTSTATUS samr_LookupDomain(struct dcesrv_call_state *dce_call, TALLOC_CTX
c_state = h->data;
if (r->in.domain->string == NULL) {
if (r->in.domain_name->string == NULL) {
return NT_STATUS_INVALID_PARAMETER;
}
sidstr = samdb_search_string(c_state->sam_ctx,
mem_ctx, NULL, "objectSid",
"(&(name=%s)(objectclass=domain))",
r->in.domain->string);
r->in.domain_name->string);
if (sidstr == NULL) {
return NT_STATUS_NO_SUCH_DOMAIN;
}
@ -184,7 +184,7 @@ static NTSTATUS samr_LookupDomain(struct dcesrv_call_state *dce_call, TALLOC_CTX
sid = dom_sid_parse_talloc(mem_ctx, sidstr);
if (sid == NULL) {
DEBUG(0,("samdb: Invalid sid '%s' for domain %s\n",
sidstr, r->in.domain->string));
sidstr, r->in.domain_name->string));
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
@ -383,7 +383,7 @@ static NTSTATUS samr_info_DomInfo2(struct samr_domain_state *state, TALLOC_CTX *
info->force_logoff_time = 0x8000000000000000LL;
info->comment.string = samdb_result_string(res[0], "comment", NULL);
info->domain.string = samdb_result_string(res[0], "name", NULL);
info->domain_name.string = samdb_result_string(res[0], "name", NULL);
info->primary.string = lp_netbios_name();
info->sequence_num = 0;

View File

@ -685,8 +685,8 @@ static BOOL test_GetDomPwInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct samr_GetDomPwInfo r;
BOOL ret = True;
r.in.name = domain_name;
printf("Testing GetDomPwInfo with name %s\n", r.in.name->string);
r.in.domain_name = domain_name;
printf("Testing GetDomPwInfo with name %s\n", r.in.domain_name->string);
status = dcerpc_samr_GetDomPwInfo(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
@ -694,8 +694,8 @@ static BOOL test_GetDomPwInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
ret = False;
}
r.in.name->string = talloc_asprintf(mem_ctx, "\\\\%s", dcerpc_server_name(p));
printf("Testing GetDomPwInfo with name %s\n", r.in.name->string);
r.in.domain_name->string = talloc_asprintf(mem_ctx, "\\\\%s", dcerpc_server_name(p));
printf("Testing GetDomPwInfo with name %s\n", r.in.domain_name->string);
status = dcerpc_samr_GetDomPwInfo(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
@ -703,8 +703,8 @@ static BOOL test_GetDomPwInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
ret = False;
}
r.in.name->string = "\\\\__NONAME__";
printf("Testing GetDomPwInfo with name %s\n", r.in.name->string);
r.in.domain_name->string = "\\\\__NONAME__";
printf("Testing GetDomPwInfo with name %s\n", r.in.domain_name->string);
status = dcerpc_samr_GetDomPwInfo(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
@ -712,8 +712,8 @@ static BOOL test_GetDomPwInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
ret = False;
}
r.in.name->string = "\\\\Builtin";
printf("Testing GetDomPwInfo with name %s\n", r.in.name->string);
r.in.domain_name->string = "\\\\Builtin";
printf("Testing GetDomPwInfo with name %s\n", r.in.domain_name->string);
status = dcerpc_samr_GetDomPwInfo(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
@ -958,7 +958,7 @@ static BOOL test_OemChangePasswordUser2(struct dcerpc_pipe *p, TALLOC_CTX *mem_c
struct samr_String domain_name;
domain_name.string = "";
dom_pw_info.in.name = &domain_name;
dom_pw_info.in.domain_name = &domain_name;
printf("Testing OemChangePasswordUser2\n");
@ -1015,7 +1015,7 @@ static BOOL test_ChangePasswordUser2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct samr_String domain_name;
domain_name.string = "";
dom_pw_info.in.name = &domain_name;
dom_pw_info.in.domain_name = &domain_name;
printf("Testing ChangePasswordUser2\n");
@ -2966,7 +2966,7 @@ static BOOL test_LookupDomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
/* check for correct error codes */
r.in.connect_handle = handle;
r.in.domain = &n2;
r.in.domain_name = &n2;
n2.string = NULL;
status = dcerpc_samr_LookupDomain(p, mem_ctx, &r);
@ -2984,7 +2984,7 @@ static BOOL test_LookupDomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
}
r.in.connect_handle = handle;
r.in.domain = domain;
r.in.domain_name = domain;
status = dcerpc_samr_LookupDomain(p, mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {

View File

@ -143,7 +143,7 @@ static struct policy_handle *samsync_open_domain(TALLOC_CTX *mem_ctx,
name.string = domain;
l.in.connect_handle = samsync_state->connect_handle;
l.in.domain = &name;
l.in.domain_name = &name;
nt_status = dcerpc_samr_LookupDomain(samsync_state->p_samr, mem_ctx, &l);
if (!NT_STATUS_IS_OK(nt_status)) {

View File

@ -37,9 +37,9 @@ static BOOL test_samr_ops(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
struct samr_String name;
name.string = lp_workgroup();
r.in.name = &name;
r.in.domain_name = &name;
printf("Testing GetDomPwInfo with name %s\n", r.in.name->string);
printf("Testing GetDomPwInfo with name %s\n", r.in.domain_name->string);
/* do several ops to test credential chaining */
for (i=0;i<5;i++) {

View File

@ -142,7 +142,7 @@ struct test_join *torture_join_domain(const char *machine_name,
name.string = domain;
l.in.connect_handle = &handle;
l.in.domain = &name;
l.in.domain_name = &name;
status = dcerpc_samr_LookupDomain(join->p, join, &l);
if (!NT_STATUS_IS_OK(status)) {

View File

@ -659,7 +659,7 @@ static NTSTATUS test_getgroups(struct smbcli_transport *transport,
continue;
l.in.connect_handle = &connect_handle;
l.in.domain = &e.out.sam->entries[i].name;
l.in.domain_name = &e.out.sam->entries[i].name;
status = dcerpc_samr_LookupDomain(p, mem_ctx, &l);
@ -823,7 +823,7 @@ static NTSTATUS test_getallsids(struct smbcli_transport *transport,
continue;
l.in.connect_handle = &connect_handle;
l.in.domain = &e.out.sam->entries[i].name;
l.in.domain_name = &e.out.sam->entries[i].name;
status = dcerpc_samr_LookupDomain(p, mem_ctx, &l);