mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
r11183: add small helper function to return a PAC_LOGON_INFO.
Guenther
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
4e3ff41e1e
commit
a8d5d6b845
@ -924,4 +924,20 @@ out:
|
||||
return nt_status;
|
||||
}
|
||||
|
||||
PAC_LOGON_INFO *get_logon_info_from_pac(PAC_DATA *pac_data)
|
||||
{
|
||||
PAC_LOGON_INFO *logon_info = NULL;
|
||||
int i;
|
||||
|
||||
for (i=0; i < pac_data->num_buffers; i++) {
|
||||
|
||||
if (pac_data->pac_buffer[i].type != PAC_TYPE_LOGON_INFO)
|
||||
continue;
|
||||
|
||||
logon_info = pac_data->pac_buffer[i].ctr->pac.logon_info;
|
||||
break;
|
||||
}
|
||||
return logon_info;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -182,16 +182,7 @@ static int reply_spnego_kerberos(connection_struct *conn,
|
||||
}
|
||||
|
||||
if (pac_data) {
|
||||
|
||||
/* get the logon_info */
|
||||
for (i=0; i < pac_data->num_buffers; i++) {
|
||||
|
||||
if (pac_data->pac_buffer[i].type != PAC_TYPE_LOGON_INFO)
|
||||
continue;
|
||||
|
||||
logon_info = pac_data->pac_buffer[i].ctr->pac.logon_info;
|
||||
break;
|
||||
}
|
||||
logon_info = get_logon_info_from_pac(pac_data);
|
||||
}
|
||||
|
||||
DEBUG(3,("Ticket name is [%s]\n", client));
|
||||
|
Reference in New Issue
Block a user