From dc9f30b8b0ace8d6e2c8c0cbed537fde68d1556a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 6 May 2006 19:24:35 +0000 Subject: r15475: Ugly and disgusting patch to fix the username map problem I created by changing the token generation. I *hate* this code! Jerry, you have been looking at this as well, can you double-check that I did not screw it up? Thanks, Volker (This used to be commit 2765c4ff8d44c970db3e075b0a2412662f1936c6) --- source3/auth/auth_winbind.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/auth/auth_winbind.c') diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c index 2c584f54c2..d8ac348d04 100644 --- a/source3/auth/auth_winbind.c +++ b/source3/auth/auth_winbind.c @@ -132,6 +132,9 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context, server_info, &info3); } + if (NT_STATUS_IS_OK(nt_status)) { + (*server_info)->was_mapped |= user_info->was_mapped; + } } } else if (NT_STATUS_IS_OK(nt_status)) { nt_status = NT_STATUS_NO_LOGON_SERVERS; -- cgit