summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-02-28 13:29:47 +0100
committerGünther Deschner <gd@samba.org>2008-02-28 23:00:42 +0100
commit76de025c724d68bef1b81c8ec6081db5e0f19c4a (patch)
tree4db329d4ee1d2409130557969aae78d67a59d972 /source3/utils
parent37bca2ea57e2f2f13a9ab59d6fcd8f27052f65ef (diff)
downloadsamba-76de025c724d68bef1b81c8ec6081db5e0f19c4a.tar.gz
samba-76de025c724d68bef1b81c8ec6081db5e0f19c4a.tar.bz2
samba-76de025c724d68bef1b81c8ec6081db5e0f19c4a.zip
winbind: use a struct element for WBFLAG_PAM_UNIX_NAME
To not conflict with WBFLAG_PAM_INFO3_TEXT. This should fix pam_winbind. metze (This used to be commit 1b8ed6c0ffb2548442bb7e9d848117ce9b1c65c0)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/ntlm_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index 9e9da2a66f..df2bf9753b 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -418,7 +418,7 @@ NTSTATUS contact_winbind_auth_crap(const char *username,
}
if (flags & WBFLAG_PAM_UNIX_NAME) {
- *unix_name = SMB_STRDUP((char *)response.extra_data.data);
+ *unix_name = SMB_STRDUP(response.data.auth.unix_username);
if (!*unix_name) {
winbindd_free_response(&response);
return NT_STATUS_NO_MEMORY;