From ad93243f2399c2f349434dbbb33ed3766a817a8d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 19 Oct 2005 14:34:17 +0000 Subject: r11183: add small helper function to return a PAC_LOGON_INFO. Guenther (This used to be commit a8d5d6b845efb62e73e281549528376f3ee74211) --- source3/libads/authdata.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/libads') diff --git a/source3/libads/authdata.c b/source3/libads/authdata.c index 9fd30e9dfb..55e736ce6a 100644 --- a/source3/libads/authdata.c +++ b/source3/libads/authdata.c @@ -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 -- cgit