s3/winbindd: using default domain with user@domain.com format fails
authorNoel Power <noel.power@suse.com>
Tue, 20 Sep 2016 10:49:49 +0000 (11:49 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 3 Oct 2016 21:37:44 +0000 (23:37 +0200)
commit7c786f89820dc1f8e2a7e8da1b80042dd69b7188
tree5d63a238ccde0f3a0056f0cf92a01ba2b010bd67
parentebfe3c85d0bbdf5d5f7459ddd61e3b44c3ec2bd3
s3/winbindd: using default domain with user@domain.com format fails

For example for samba client joined to a windows AD DC the following
commands fail if 'winbind use default domain = yes'
   getent passwd user@domain.com
   ssh -o user=user@domain.com localhost

The same commands succeed if the setting above has the default 'no' value

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

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Oct  3 23:37:44 CEST 2016 on sn-devel-144
source3/winbindd/winbindd_util.c