s3-passdb: Fix 'force user' with winbind default domain
commitbe7b660be30510ebaeb4dbb590ea9e33e4f985e5
authorAndreas Schneider <asn@samba.org>
Tue, 31 Mar 2015 16:15:51 +0000 (31 18:15 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 9 Apr 2015 00:06:13 +0000 (9 02:06 +0200)
tree80fe13acd702d32067c30f3fd3933979ab2877c6
parent57f54da9ed0d2fd3b2d0e1866e00d256cd739b3c
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)

Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-2-test): Thu Apr  9 02:06:13 CEST 2015 on sn-devel-104
source3/passdb/lookup_sid.c