1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

r6219: This change allows us to fall back to authenticating without

DCERPC_SCHANNEL_128 if we fail. Thus, it allows us to work with Windows
NT DCs ...
This commit is contained in:
Richard Sharpe 2005-04-05 19:53:07 +00:00 committed by Gerald (Jerry) Carter
parent e3a69a7322
commit 3034b22670
2 changed files with 16 additions and 2 deletions

View File

@ -162,7 +162,21 @@ NTSTATUS dcerpc_bind_auth_schannel(TALLOC_CTX *tmp_ctx,
DEBUG(1, ("Failed to setup credentials for account %s: %s\n",
cli_credentials_get_username(credentials),
nt_errstr(status)));
return status;
/*
* If we get back NT_STATUS_ACCESS_DENIED and we asked for
* DCERPC_SCHANNEL_128, then try again without
*/
if (NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED) &&
p->conn->flags & DCERPC_SCHANNEL_128) {
DEBUG(1, ("Retrying to setup credentials without DCERPC_SCHANNEL_128\n"));
p->conn->flags &= ~DCERPC_SCHANNEL_128;
status = dcerpc_schannel_key(tmp_ctx,
p, credentials,
chan_type);
}
if (!NT_STATUS_IS_OK(status)) {
return status;
}
}
return dcerpc_bind_auth_password(p, uuid, version,

View File

@ -266,7 +266,7 @@ static NTSTATUS pvfs_search_fill(struct pvfs_state *pvfs, TALLOC_CTX *mem_ctx,
talloc_free(file);
}
pvfs_list_hibernate(dir);
/*pvfs_list_hibernate(dir);*/
return NT_STATUS_OK;
}