s3: Use the correct guest_login field in auth_server
authorVolker Lendecke <vl@samba.org>
Sun, 29 May 2011 08:58:46 +0000 (10:58 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 7 Jun 2011 18:01:52 +0000 (20:01 +0200)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun May 29 13:57:21 CEST 2011 on sn-devel-104
(cherry picked from commit 0969c3398e73e66c9e004740127da7c29e951050)

The last 3 patches address bug #8185 (security=server does not obey guest login
field).
(cherry picked from commit 91447e8b49e27b9e2d76cf8f99efdc1faca49fc4)

source3/auth/auth_server.c

index 94530ab143e49c0c7618debe9b58b6d93219b543..1dfa64682696caff43b1bcace64a05c028b99e19 100644 (file)
@@ -427,7 +427,7 @@ use this machine as the password server.\n"));
        }
 
        /* if logged in as guest then reject */
-       if ((SVAL(cli->inbuf,smb_vwv2) & 1) != 0) {
+       if (cli->is_guestlogin) {
                DEBUG(1,("password server %s gave us guest only\n", cli->desthost));
                nt_status = NT_STATUS_LOGON_FAILURE;
        }