[PATCH] Fix authentication with an empty string domain

[PATCH] Fix authentication with an empty string domain

Hi,

I noticed a a little while back (as it appeared to be required for the
auto-configure tool in the Windows Protocol test-suites) that we no
longer allow '' as our domain, which used to be allowed in Samba 4.6.
Attached is a fix which solved the immediate issue, and appears to
restore the 4.6 behaviour. Both tests I wrote, one using SamLogonEx
against the NETLOGON server and another binding against LDAP failed on
master, but pass on Windows 2012 R2 and with this patch. I also ran the
NETLOGON test against 4.6 to confirm that this indeed did not used to fail.

Re: [PATCH] Fix authentication with an empty string domain

> Hi,
>
> I noticed a a little while back (as it appeared to be required for the
> auto-configure tool in the Windows Protocol test-suites) that we no
> longer allow '' as our domain, which used to be allowed in Samba 4.6.
> Attached is a fix which solved the immediate issue, and appears to
> restore the 4.6 behaviour. Both tests I wrote, one using SamLogonEx
> against the NETLOGON server and another binding against LDAP failed on
> master, but pass on Windows 2012 R2 and with this patch. I also ran the
> NETLOGON test against 4.6 to confirm that this indeed did not used to fail.
>
>
> A bit more discussion on the bug:
>
> https://bugzilla.samba.org/show_bug.cgi?id=13206