diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-03-21 18:42:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:08 -0500 |
commit | 34cde065139fdc76f6aa529426cfc1f68a394d54 (patch) | |
tree | 97d8ce9783f8a0e3d263095eed2a9fbeee294423 /source4/libnet | |
parent | 02075be0bbc2095073f8898350fded64a7c97c79 (diff) | |
download | samba-34cde065139fdc76f6aa529426cfc1f68a394d54.tar.gz samba-34cde065139fdc76f6aa529426cfc1f68a394d54.tar.bz2 samba-34cde065139fdc76f6aa529426cfc1f68a394d54.zip |
r5924: Use cli_credentials in libnet/.
(This used to be commit e5bc6f4f1716568ae7022d61b5b35ee047b58414)
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet.h | 6 | ||||
-rw-r--r-- | source4/libnet/libnet_rpc.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h index 0e91853bf1..5fb825df4d 100644 --- a/source4/libnet/libnet.h +++ b/source4/libnet/libnet.h @@ -25,11 +25,7 @@ struct libnet_context { * a client env context * a user env context */ - struct { - const char *account_name; - const char *domain_name; - const char *password; - } user; + struct cli_credentials *credentials; }; #include "libnet/libnet_passwd.h" diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c index 97660f4eb5..221ccf77ea 100644 --- a/source4/libnet/libnet_rpc.c +++ b/source4/libnet/libnet_rpc.c @@ -102,9 +102,9 @@ static NTSTATUS libnet_rpc_connect_standard(struct libnet_context *ctx, TALLOC_C r->standard.in.dcerpc_iface_uuid, r->standard.in.dcerpc_iface_version, lp_netbios_name(), - ctx->user.domain_name, - ctx->user.account_name, - ctx->user.password); + cli_credentials_get_domain(ctx->credentials), + cli_credentials_get_username(ctx->credentials), + cli_credentials_get_password(ctx->credentials)); if (!NT_STATUS_IS_OK(status)) { r->standard.out.error_string = talloc_asprintf(mem_ctx, "dcerpc_pipe_connect to pipe %s failed with %s\n", |