diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-03-06 08:24:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:10:58 -0500 |
commit | 42031bc4be2516872ccf832b6b09d141cb13c76b (patch) | |
tree | 6075fee54b1619c21cf3722ed6b8937bdb21ea74 /source4/libcli/auth/smbencrypt.c | |
parent | 765832748b4ef6141802ff72e3dea99453bf23d8 (diff) | |
download | samba-42031bc4be2516872ccf832b6b09d141cb13c76b.tar.gz samba-42031bc4be2516872ccf832b6b09d141cb13c76b.tar.bz2 samba-42031bc4be2516872ccf832b6b09d141cb13c76b.zip |
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)
Diffstat (limited to 'source4/libcli/auth/smbencrypt.c')
-rw-r--r-- | source4/libcli/auth/smbencrypt.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |