s3-passdb: Fix 'force user' with winbind default domain
authorAndreas Schneider <asn@samba.org>
Tue, 31 Mar 2015 16:15:51 +0000 (18:15 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 9 Mar 2018 11:54:30 +0000 (12:54 +0100)
commitaac13ea10c88955e988ae1880475c61cea5f8ce3
tree72746d47685fd8c58c3531e2901aa2e74660565a
parent8aa5f42b0642adcf19ad8573c8d4b32e8e94aa05
s3-passdb: Fix 'force user' with winbind default domain

If we set 'winbind use default domain' and specify 'force user = user'
without a domain name we fail to log in. In this case we need to try a
lookup with the domain name.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11185

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit cd4442c7ac93e165862c9195a7c345472646aa59)
source3/passdb/lookup_sid.c