1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-02 08:58:33 +03:00

fixed some compilation errors in cli_netlogon.c - tim, you need to rerun configure to get the new NTSTATUS stuff right

This commit is contained in:
Andrew Tridgell -
parent c04c67fec8
commit 9bae57cfe3
2 changed files with 12 additions and 12 deletions

View File

@ -72,7 +72,7 @@ NTSTATUS new_cli_net_req_chal(struct cli_state *cli, DOM_CHAL *clnt_chal,
/* Return result */
if (result == NT_STATUS_OK) {
if (NT_STATUS_IS_OK(result)) {
memcpy(srv_chal, r.srv_chal.data, sizeof(srv_chal->data));
}
@ -129,7 +129,7 @@ NTSTATUS new_cli_net_auth2(struct cli_state *cli, uint16 sec_chan,
result = r.status;
if (result == NT_STATUS_OK) {
if (NT_STATUS_IS_OK(result)) {
UTIME zerotime;
/*
@ -175,7 +175,7 @@ NTSTATUS new_cli_nt_setup_creds(struct cli_state *cli,
/* send a client challenge; receive a server challenge */
result = new_cli_net_req_chal(cli, &clnt_chal, &srv_chal);
if (result != NT_STATUS_OK) {
if (!NT_STATUS_IS_OK(result)) {
DEBUG(0,("cli_nt_setup_creds: request challenge failed\n"));
return result;
}
@ -199,14 +199,15 @@ NTSTATUS new_cli_nt_setup_creds(struct cli_state *cli,
* Receive an auth-2 challenge response and check it.
*/
if (!new_cli_net_auth2(cli, (lp_server_role() == ROLE_DOMAIN_MEMBER) ?
SEC_CHAN_WKSTA : SEC_CHAN_BDC, 0x000001ff,
&srv_chal)) {
DEBUG(0,("cli_nt_setup_creds: auth2 challenge failed\n"));
return False;
result = new_cli_net_auth2(cli, (lp_server_role() == ROLE_DOMAIN_MEMBER) ?
SEC_CHAN_WKSTA : SEC_CHAN_BDC, 0x000001ff,
&srv_chal);
if (!NT_STATUS_IS_OK(result)) {
DEBUG(0,("cli_nt_setup_creds: auth2 challenge failed %s\n",
get_nt_error_msg(result)));
}
return True;
return result;
}
/* Logon Control 2 */

View File

@ -42,15 +42,14 @@ static void* pdb_handle = NULL;
***************************************************************/
BOOL initialize_password_db(BOOL reload)
{
char* modulename = lp_passdb_module_path();
/* This function is unfinished right now, so just
ignore the details and always return True. It is here
only as a placeholder --jerry */
return True;
#if _NOT_YET_
char* modulename = lp_passdb_module_path();
/* load another module? */
if (reload && pdb_handle)
{