mirror of
https://github.com/samba-team/samba.git
synced 2025-12-03 04:23:50 +03:00
Small changes for guest authenticated pipes.
This commit is contained in:
@@ -273,8 +273,8 @@ static BOOL api_pipe_ntlmssp_verify(pipes_struct *p, RPC_AUTH_NTLMSSP_RESP *ntlm
|
|||||||
|
|
||||||
const uchar *smb_passwd_ptr = NULL;
|
const uchar *smb_passwd_ptr = NULL;
|
||||||
|
|
||||||
auth_usersupplied_info *user_info;
|
auth_usersupplied_info *user_info = NULL;
|
||||||
auth_serversupplied_info *server_info;
|
auth_serversupplied_info *server_info = NULL;
|
||||||
|
|
||||||
uid_t *puid;
|
uid_t *puid;
|
||||||
uid_t *pgid;
|
uid_t *pgid;
|
||||||
@@ -295,8 +295,6 @@ static BOOL api_pipe_ntlmssp_verify(pipes_struct *p, RPC_AUTH_NTLMSSP_RESP *ntlm
|
|||||||
* Setup an empty password for a guest user.
|
* Setup an empty password for a guest user.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
memset(null_smb_passwd,0,16);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We always negotiate UNICODE.
|
* We always negotiate UNICODE.
|
||||||
*/
|
*/
|
||||||
@@ -338,8 +336,6 @@ static BOOL api_pipe_ntlmssp_verify(pipes_struct *p, RPC_AUTH_NTLMSSP_RESP *ntlm
|
|||||||
fstrcpy(pipe_user_name, lp_guestaccount(-1));
|
fstrcpy(pipe_user_name, lp_guestaccount(-1));
|
||||||
DEBUG(100,("Null user in NTLMSSP verification. Using guest = %s\n", pipe_user_name));
|
DEBUG(100,("Null user in NTLMSSP verification. Using guest = %s\n", pipe_user_name));
|
||||||
|
|
||||||
smb_passwd_ptr = null_smb_passwd;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -382,6 +378,9 @@ failed authentication on named pipe %s.\n", domain, pipe_user_name, wks, p->name
|
|||||||
free_server_info(&server_info);
|
free_server_info(&server_info);
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
/* This includes a NULLed out first_8_lm_hash */
|
||||||
|
make_server_info_guest(&server_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user