s4-auth: allow to pass original_user_name=NULL to auth_session_info_fill_unix()
authorBjörn Baumbach <bb@sernet.de>
Tue, 25 Sep 2018 11:16:15 +0000 (13:16 +0200)
committerBjörn Baumbach <bb@sernet.de>
Thu, 11 Oct 2018 08:28:18 +0000 (10:28 +0200)
commit6f08cb6693b744bfd8cbf66415957baabd07ec3a
treecc117b93a1d68aac9857b0b7f4da46640d077dfa
parentf3b7ba1746a33d058901dd8274953e6c5379e2b1
s4-auth: allow to pass original_user_name=NULL to auth_session_info_fill_unix()

With this patch the auth_session_info_fill_unix() uses the "unix_name"
from the session_info->unix_info if no original_user_name was specified.

This is used to process a system session info where no original_user_name
is given.

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/auth/unix_token.c