summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_passwd.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-19 13:32:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:11 -0500
commit9d62046b0e09fa7a4a660859dd8651e6d60c8dc8 (patch)
tree50e7036ab1e464575d967882bc98cadb47dc8b5a /source4/libnet/libnet_passwd.c
parentc3ec4582ba8d840be0ccfd18e6704f5583b6469f (diff)
downloadsamba-9d62046b0e09fa7a4a660859dd8651e6d60c8dc8.tar.gz
samba-9d62046b0e09fa7a4a660859dd8651e6d60c8dc8.tar.bz2
samba-9d62046b0e09fa7a4a660859dd8651e6d60c8dc8.zip
r1919: paasword change basicly works now:-)
but we need to find the real pdc for the users domain and fallback to other levels metze (This used to be commit f1b9c1f3dd0fb927c065541da900ae43e0018a62)
Diffstat (limited to 'source4/libnet/libnet_passwd.c')
-rw-r--r--source4/libnet/libnet_passwd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/libnet/libnet_passwd.c b/source4/libnet/libnet_passwd.c
index ea61a457ba..cdb5160a92 100644
--- a/source4/libnet/libnet_passwd.c
+++ b/source4/libnet/libnet_passwd.c
@@ -109,11 +109,11 @@ static NTSTATUS libnet_ChangePassword_generic(struct libnet_context *ctx, TALLOC
NTSTATUS status;
union libnet_ChangePassword r2;
- r2.generic.level = LIBNET_CHANGE_PASSWORD_RPC;
- r2.rpc.in.account_name = NULL;
- r2.rpc.in.domain_name = NULL;
- r2.rpc.in.oldpassword = NULL;
- r2.rpc.in.newpassword = NULL;
+ r2.rpc.level = LIBNET_CHANGE_PASSWORD_RPC;
+ r2.rpc.in.account_name = r->generic.in.account_name;
+ r2.rpc.in.domain_name = r->generic.in.domain_name;
+ r2.rpc.in.oldpassword = r->generic.in.oldpassword;
+ r2.rpc.in.newpassword = r->generic.in.newpassword;
status = libnet_ChangePassword(ctx, mem_ctx, &r2);