s3:auth: fill in info3 domain name in passwd_to_SamInfo3()
authorRalph Boehme <slow@samba.org>
Fri, 13 Dec 2019 11:14:04 +0000 (12:14 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 30 May 2020 01:17:36 +0000 (01:17 +0000)
commitb7e77ce32dbb5bbbc5605fe6cbe557378bbbe966
treecf60fa6e54a1f7a968232553ef053683948e1435
parent792c82d6dbba0dd58106cc0ff38c4d86a49cee25
s3:auth: fill in info3 domain name in passwd_to_SamInfo3()

This is needed for make_session_info_from_username() to fill in the domain
name. The callchain goes like this:

make_session_info_from_username()
-> make_server_info_pw()
-> passwd_to_SamInfo3()

Other callers of passwd_to_SamInfo3() are also affected. A subsequent change
will let set_conn_force_user_group() user the domainname from the session_info
returned from make_session_info_from_username() to create substitution
context. Without this fix domain name would be NULL.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/auth/server_info.c