summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-12-30 22:27:33 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-12-30 22:27:33 +0000
commitbcd0e51e280b45e489b1111d730097816dbcaa23 (patch)
tree17d0c065db5e0250f3f3964c8c55df5a5cc12fab /source3/utils
parent318190580d4248385f4d03a8d1408a9162c588f0 (diff)
downloadsamba-bcd0e51e280b45e489b1111d730097816dbcaa23.tar.gz
samba-bcd0e51e280b45e489b1111d730097816dbcaa23.tar.bz2
samba-bcd0e51e280b45e489b1111d730097816dbcaa23.zip
Get the DOMAIN\username around the right way (I had username\domain...)
Push the unix username into utf8 for it's trip across the socket. Andrew Bartlett (This used to be commit 3225f262b18bdcf326d3bfd031dac169bd9347c9)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/ntlm_auth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index bef10b52b3..96e52964b4 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -305,7 +305,9 @@ static NTSTATUS contact_winbind_auth_crap(const char *username,
}
if (flags & WBFLAG_PAM_UNIX_NAME) {
- *unix_name = response.extra_data;
+ if (pull_utf8_allocate(unix_name, (char *)response.extra_data) == -1) {
+ return NT_STATUS_NO_MEMORY;
+ }
}
return nt_status;