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:
committed by
Günther Deschner
parent
53121e62ea
commit
1b8ed6c0ff
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user