mirror of
https://github.com/samba-team/samba.git
synced 2025-11-30 20:23:49 +03:00
r5928: Use cli_credentials in:
- gtk+ (returned by GtkHostBindingDialog as well now) - torture/ - librpc/ - lib/com/dcom/
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e5bc6f4f17
commit
ccefd78233
@@ -143,10 +143,7 @@ done:
|
||||
*/
|
||||
NTSTATUS dcerpc_bind_auth_password(struct dcerpc_pipe *p,
|
||||
const char *uuid, uint_t version,
|
||||
const char *workstation,
|
||||
const char *domain,
|
||||
const char *username,
|
||||
const char *password,
|
||||
struct cli_credentials *credentials,
|
||||
uint8_t auth_type,
|
||||
const char *service)
|
||||
{
|
||||
@@ -162,28 +159,32 @@ NTSTATUS dcerpc_bind_auth_password(struct dcerpc_pipe *p,
|
||||
return status;
|
||||
}
|
||||
|
||||
status = gensec_set_workstation(p->conn->security_state.generic_state, workstation);
|
||||
status = gensec_set_workstation(p->conn->security_state.generic_state,
|
||||
cli_credentials_get_workstation(credentials));
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(1, ("Failed to start set GENSEC client workstation name to %s: %s\n",
|
||||
workstation, nt_errstr(status)));
|
||||
cli_credentials_get_workstation(credentials), nt_errstr(status)));
|
||||
return status;
|
||||
}
|
||||
|
||||
status = gensec_set_domain(p->conn->security_state.generic_state, domain);
|
||||
status = gensec_set_domain(p->conn->security_state.generic_state,
|
||||
cli_credentials_get_domain(credentials));
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(1, ("Failed to start set GENSEC client domain to %s: %s\n",
|
||||
domain, nt_errstr(status)));
|
||||
cli_credentials_get_domain(credentials), nt_errstr(status)));
|
||||
return status;
|
||||
}
|
||||
|
||||
status = gensec_set_username(p->conn->security_state.generic_state, username);
|
||||
status = gensec_set_username(p->conn->security_state.generic_state,
|
||||
cli_credentials_get_username(credentials));
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(1, ("Failed to start set GENSEC client username to %s: %s\n",
|
||||
username, nt_errstr(status)));
|
||||
cli_credentials_get_username(credentials), nt_errstr(status)));
|
||||
return status;
|
||||
}
|
||||
|
||||
status = gensec_set_password(p->conn->security_state.generic_state, password);
|
||||
status = gensec_set_password(p->conn->security_state.generic_state,
|
||||
cli_credentials_get_password(credentials));
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(1, ("Failed to start set GENSEC client password: %s\n",
|
||||
nt_errstr(status)));
|
||||
|
||||
Reference in New Issue
Block a user