From 42031bc4be2516872ccf832b6b09d141cb13c76b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 6 Mar 2005 08:24:34 +0000 Subject: r5668: Add tests to RPC-SAMLOGON to test for user@REALM style logins. These need a NULL domain (or a "" domain, except this breaks NTLMv2, and I need to look into it a bit more). Add support to the Samba4 server for these logins. This will need extension when we handle trusted domains as a DC, as it is a principal name, not just another format for the username. Andrew Bartlett (This used to be commit de02c7c222a32d2b3fb8ee8b715749b96cb647f9) --- source4/libcli/auth/smbencrypt.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/libcli') diff --git a/source4/libcli/auth/smbencrypt.c b/source4/libcli/auth/smbencrypt.c index 00a28a1ad9..f2b6eb00d7 100644 --- a/source4/libcli/auth/smbencrypt.c +++ b/source4/libcli/auth/smbencrypt.c @@ -121,6 +121,14 @@ BOOL ntv2_owf_gen(const uint8_t owf[16], return False; } + if (!user_in) { + user_in = ""; + } + + if (!domain_in) { + domain_in = ""; + } + user_in = strupper_talloc(mem_ctx, user_in); if (user_in == NULL) { talloc_free(mem_ctx); -- cgit