s3-passdb: Fix 'force user' with winbind default domain
commitcd4442c7ac93e165862c9195a7c345472646aa59
authorAndreas Schneider <asn@samba.org>
Tue, 31 Mar 2015 16:15:51 +0000 (31 18:15 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 31 Mar 2015 19:17:23 +0000 (31 21:17 +0200)
tree5cc42d7e3cacecda7906fcc232735363a6afe987
parent5c166d5cdbc21b4e40f6a8f88f5d190763234f17
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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Mar 31 21:17:23 CEST 2015 on sn-devel-104
source3/passdb/lookup_sid.c