summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-09-21 03:51:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:55 -0500
commit0e71bf8148684bbdb2a89f7099b59edc157c2f52 (patch)
treeaf92342fa515877c8e7102d3be4923f66e8f9ea3 /source4/libnet
parentd78a1ac756631c168ecc0b73e8ba2dd35a428391 (diff)
downloadsamba-0e71bf8148684bbdb2a89f7099b59edc157c2f52.tar.gz
samba-0e71bf8148684bbdb2a89f7099b59edc157c2f52.tar.bz2
samba-0e71bf8148684bbdb2a89f7099b59edc157c2f52.zip
r2458: Rename policy handle parameters for the SAMR pipe. Parameters now
have the handle type implied by the parameter name. There are four types of handle: connect, domain, user and group handles. The various samr_Connect functions return a connect handle, and the samr_OpenFoo functions return a foo handle. There is one exception - the samr_{Get,Set}Security function can take any type of handle. Fix up all C callers. (This used to be commit 32f0f3154a8eb63de83145cbc8806b8906ccdc3e)
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_passwd.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source4/libnet/libnet_passwd.c b/source4/libnet/libnet_passwd.c
index 94f48a049d..96471df1dc 100644
--- a/source4/libnet/libnet_passwd.c
+++ b/source4/libnet/libnet_passwd.c
@@ -338,7 +338,7 @@ static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX *
ZERO_STRUCT(p_handle);
sc.in.system_name = NULL;
sc.in.access_mask = SEC_RIGHTS_MAXIMUM_ALLOWED;
- sc.out.handle = &p_handle;
+ sc.out.connect_handle = &p_handle;
/* 2. do a samr_Connect to get a policy handle */
status = dcerpc_samr_Connect(c.pdc.out.dcerpc_pipe, mem_ctx, &sc);
@@ -360,7 +360,7 @@ static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX *
/* prepare samr_LookupDomain */
d_name.name = r->samr.in.domain_name;
- ld.in.handle = &p_handle;
+ ld.in.connect_handle = &p_handle;
ld.in.domain = &d_name;
/* 3. do a samr_LookupDomain to get the domain sid */
@@ -383,7 +383,7 @@ static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX *
/* prepare samr_OpenDomain */
ZERO_STRUCT(d_handle);
- od.in.handle = &p_handle;
+ od.in.connect_handle = &p_handle;
od.in.access_mask = SEC_RIGHTS_MAXIMUM_ALLOWED;
od.in.sid = ld.out.sid;
od.out.domain_handle = &d_handle;
@@ -407,7 +407,7 @@ static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX *
}
/* prepare samr_LookupNames */
- ln.in.handle = &d_handle;
+ ln.in.domain_handle = &d_handle;
ln.in.num_names = 1;
ln.in.names = talloc_array_p(mem_ctx, struct samr_Name, 1);
if (!ln.in.names) {
@@ -445,10 +445,10 @@ static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX *
/* prepare samr_OpenUser */
ZERO_STRUCT(u_handle);
- ou.in.handle = &d_handle;
+ ou.in.domain_handle = &d_handle;
ou.in.access_mask = SEC_RIGHTS_MAXIMUM_ALLOWED;
ou.in.rid = ln.out.rids.ids[0];
- ou.out.acct_handle = &u_handle;
+ ou.out.user_handle = &u_handle;
/* 6. do a samr_OpenUser to get a user handle */
status = dcerpc_samr_OpenUser(c.pdc.out.dcerpc_pipe, mem_ctx, &ou);
@@ -491,7 +491,7 @@ static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX *
arcfour_crypt_blob(u_info.info26.password.data, 516, &confounded_session_key);
memcpy(&u_info.info26.password.data[516], confounder, 16);
- sui.in.handle = &u_handle;
+ sui.in.user_handle = &u_handle;
sui.in.info = &u_info;
sui.in.level = 26;
@@ -542,7 +542,7 @@ UserInfo25:
arcfour_crypt_blob(u_info.info25.password.data, 516, &confounded_session_key);
memcpy(&u_info.info25.password.data[516], confounder, 16);
- sui.in.handle = &u_handle;
+ sui.in.user_handle = &u_handle;
sui.in.info = &u_info;
sui.in.level = 25;
@@ -586,7 +586,7 @@ UserInfo24:
arcfour_crypt_blob(u_info.info24.password.data, 516, &session_key);
- sui.in.handle = &u_handle;
+ sui.in.user_handle = &u_handle;
sui.in.info = &u_info;
sui.in.level = 24;
@@ -629,7 +629,7 @@ UserInfo23:
arcfour_crypt_blob(u_info.info23.password.data, 516, &session_key);
- sui.in.handle = &u_handle;
+ sui.in.user_handle = &u_handle;
sui.in.info = &u_info;
sui.in.level = 23;