s3-smbd: Split make_serverinfo_from_username guest parameters into two parts
commit6f14d3be50c0f45fa8f2afc2d42f229a05a6056d
authorAndrew Bartlett <abartlet@samba.org>
Wed, 3 Apr 2013 22:53:34 +0000 (4 09:53 +1100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 8 May 2013 08:09:03 +0000 (8 10:09 +0200)
treebe4b3ad85f757f4a707ad75341f879bedf8db5e8
parentabe0feca8a4b107294f4e21bb78a311b215d01a3
s3-smbd: Split make_serverinfo_from_username guest parameters into two parts

This handles differently the case where we are the guest (from security=share) and
when we are forced to be a different user with force user.  We want to maintain
only the is_guest flag if were forced to become any other user, we need the rest
of the token to change.

Andrew Bartlett

Fix bug #9746 - guest ok + force user + force group doesn't work.
(cherry picked from commit 24d68d799553b0806e580a47aed70a4eaac09191)
source3/auth/auth_util.c
source3/auth/proto.h
source3/smbd/service.c