summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-08 12:59:32 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-08 14:09:07 +0200
commita7b9c628af3155f0ad406830a975c84845d34b3b (patch)
treea6ed3a0c82b0d1a06c1642365b8a06d51cfd93bc /source3
parentce751946dda9f4b99c03cb060bc6a2be6f5750e7 (diff)
downloadsamba-a7b9c628af3155f0ad406830a975c84845d34b3b.tar.gz
samba-a7b9c628af3155f0ad406830a975c84845d34b3b.tar.bz2
samba-a7b9c628af3155f0ad406830a975c84845d34b3b.zip
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
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/auth_server.c b/source3/auth/auth_server.c
index da380db01a..d50ed7a024 100644
--- a/source3/auth/auth_server.c
+++ b/source3/auth/auth_server.c
@@ -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 \