diff options
author | Jeremy Allison <jra@samba.org> | 2009-03-13 17:49:24 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-03-13 17:49:24 -0700 |
commit | f48a345e4a215173ad9e7d2777bacc0decb2bcc7 (patch) | |
tree | 411aabcb24f39c0e9c908cac0aef264920564810 /source3/rpc_client | |
parent | 5df46fa35bd7c7aa083d4db1331b6f056ef70c77 (diff) | |
download | samba-f48a345e4a215173ad9e7d2777bacc0decb2bcc7.tar.gz samba-f48a345e4a215173ad9e7d2777bacc0decb2bcc7.tar.bz2 samba-f48a345e4a215173ad9e7d2777bacc0decb2bcc7.zip |
Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
password talloc'ed strings within the cli_struct.
Jeremy.
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 24dbcb0193..ef10c123f3 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2974,7 +2974,7 @@ bool rpccli_get_pwd_hash(struct rpc_pipe_client *rpc_cli, uint8_t nt_hash[16]) if (cli == NULL) { return false; } - E_md4hash(cli->pwd.password, nt_hash); + E_md4hash(cli->password ? cli->password : "", nt_hash); return true; } @@ -3699,7 +3699,7 @@ static NTSTATUS cli_rpc_pipe_open_ntlmssp_internal(struct cli_state *cli, status = rpccli_ntlmssp_bind_data( result, auth_type, auth_level, domain, username, - cli->pwd.null_pwd ? NULL : password, &auth); + password, &auth); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("rpccli_ntlmssp_bind_data returned %s\n", nt_errstr(status))); |