s3:libsmb: don't rely on gensec_session_key() to work on an unfinished authentication
authorStefan Metzmacher <metze@samba.org>
Wed, 10 May 2017 14:17:48 +0000 (16:17 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 21 May 2017 19:05:08 +0000 (21:05 +0200)
commitf4424579a0b4305751b308588c40cb7c005bd9e9
treecdaca12d812e23aeecffb6e3847a979d7d19a366
parent76693c197adff1cebdd30837310a89c95f3ce4ee
s3:libsmb: don't rely on gensec_session_key() to work on an unfinished authentication

If smbXcli_session_is_guest() returns true, we should handle the authentication
as anonymous and don't touch the gensec context anymore.

Note that smbXcli_session_is_guest() always returns false, if signing is
required!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libsmb/cliconnect.c