summaryrefslogtreecommitdiff
path: root/source3/auth/auth_winbind.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-25 10:16:20 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-25 10:16:20 +0000
commit24dc27b4b97806f5e23326f34ff54f85d3074b45 (patch)
tree754625efa892497b7a6d714e593105a730ad0884 /source3/auth/auth_winbind.c
parent2836f3fbddb96397d6910ef5099213b5012d0e3e (diff)
downloadsamba-24dc27b4b97806f5e23326f34ff54f85d3074b45.tar.gz
samba-24dc27b4b97806f5e23326f34ff54f85d3074b45.tar.bz2
samba-24dc27b4b97806f5e23326f34ff54f85d3074b45.zip
Bring auth_winbind into line with the protocol changes
Andrew Bartlett (This used to be commit c796799afd69fe627b1c8e51fb47957d30da9fae)
Diffstat (limited to 'source3/auth/auth_winbind.c')
-rw-r--r--source3/auth/auth_winbind.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c
index 175e14a9d6..2d8e5066a2 100644
--- a/source3/auth/auth_winbind.c
+++ b/source3/auth/auth_winbind.c
@@ -63,6 +63,9 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
snprintf(request.data.auth_crap.user, sizeof(request.data.auth_crap.user),
"%s\\%s", user_info->domain.str, user_info->smb_name.str);
+ fstrcpy(request.data.auth_crap.user, user_info->smb_name.str);
+ fstrcpy(request.data.auth_crap.domain, user_info->domain.str);
+
memcpy(request.data.auth_crap.chal, auth_context->challenge.data, sizeof(request.data.auth_crap.chal));
request.data.auth_crap.lm_resp_len = MIN(user_info->lm_resp.length,