1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-08 16:23:49 +03:00

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 commit is contained in:
Stefan Metzmacher
2008-02-28 13:29:47 +01:00
committed by Günther Deschner
parent 53121e62ea
commit 1b8ed6c0ff
4 changed files with 9 additions and 17 deletions

View File

@@ -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;