1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-24 10:50:22 +03:00

s3:auth_server: use cli->is_guestlogin instead of parsing cli->inbuf.

cli->inbuf is not the valid response buffer of the session setup response.

metze
This commit is contained in:
Stefan Metzmacher 2011-07-08 12:59:32 +02:00
parent ce751946dd
commit a7b9c628af

View File

@ -350,7 +350,7 @@ static NTSTATUS check_smbserver_security(const struct auth_context *auth_context
*/
tested_password_server = True;
if ((SVAL(cli->inbuf,smb_vwv2) & 1) == 0) {
if (!cli->is_guestlogin) {
DEBUG(0,("server_validate: password server %s allows users as non-guest \
with a bad password.\n", cli->desthost));
DEBUG(0,("server_validate: This is broken (and insecure) behaviour. Please do not \