2011-06-10 16:56:50 +04:00
/*
Unix SMB / CIFS implementation .
Convert a server info struct into the form for PAC and NETLOGON replies
Copyright ( C ) Andrew Bartlett < abartlet @ samba . org > 2004
Copyright ( C ) Stefan Metzmacher < metze @ samba . org > 2005
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
2011-02-09 08:05:54 +03:00
# ifndef __AUTH_AUTH_SAM_REPLY_H__
# define __AUTH_AUTH_SAM_REPLY_H__
# undef _PRINTF_ATTRIBUTE
# define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
/* this file contains prototypes for functions that are private
* to this subsystem or library . These functions should not be
* used outside this particular subsystem ! */
/* The following definitions come from auth/auth_sam_reply.c */
2011-07-18 07:55:20 +04:00
NTSTATUS make_user_info_SamBaseInfo ( TALLOC_CTX * mem_ctx ,
2016-09-09 17:31:55 +03:00
const char * account_name ,
2016-01-07 16:50:27 +03:00
const struct netr_SamBaseInfo * base ,
2011-07-18 07:55:20 +04:00
bool authenticated ,
struct auth_user_info * * _user_info ) ;
2016-01-07 17:15:14 +03:00
NTSTATUS auth_convert_user_info_dc_saminfo6 ( TALLOC_CTX * mem_ctx ,
const struct auth_user_info_dc * user_info_dc ,
struct netr_SamInfo6 * * _sam6 ) ;
2016-01-07 17:23:56 +03:00
NTSTATUS auth_convert_user_info_dc_saminfo2 ( TALLOC_CTX * mem_ctx ,
const struct auth_user_info_dc * user_info_dc ,
struct netr_SamInfo2 * * _sam2 ) ;
2011-02-09 08:05:54 +03:00
NTSTATUS auth_convert_user_info_dc_saminfo3 ( TALLOC_CTX * mem_ctx ,
2016-01-07 16:50:27 +03:00
const struct auth_user_info_dc * user_info_dc ,
2011-02-09 08:05:54 +03:00
struct netr_SamInfo3 * * _sam3 ) ;
/**
* Make a user_info_dc struct from the info3 returned by a domain logon
*/
NTSTATUS make_user_info_dc_netlogon_validation ( TALLOC_CTX * mem_ctx ,
const char * account_name ,
uint16_t validation_level ,
2016-01-07 16:50:27 +03:00
const union netr_Validation * validation ,
bool authenticated ,
2011-02-09 08:05:54 +03:00
struct auth_user_info_dc * * _user_info_dc ) ;
/**
* Make a user_info_dc struct from the PAC_LOGON_INFO supplied in the krb5 logon
*/
NTSTATUS make_user_info_dc_pac ( TALLOC_CTX * mem_ctx ,
2016-01-07 16:50:27 +03:00
const struct PAC_LOGON_INFO * pac_logon_info ,
2016-01-07 16:55:07 +03:00
const struct PAC_UPN_DNS_INFO * pac_upn_dns_info ,
2011-02-09 08:05:54 +03:00
struct auth_user_info_dc * * _user_info_dc ) ;
2014-05-10 05:03:13 +04:00
/* The following definitions come from auth/wbc_auth_util.c */
struct wbcAuthUserInfo ;
2016-01-07 17:10:26 +03:00
struct netr_SamInfo6 * wbcAuthUserInfo_to_netr_SamInfo6 ( TALLOC_CTX * mem_ctx ,
2014-05-10 05:03:13 +04:00
const struct wbcAuthUserInfo * info ) ;
2011-02-09 08:05:54 +03:00
# undef _PRINTF_ATTRIBUTE
# define _PRINTF_ATTRIBUTE(a1, a2)
# endif /* __AUTH_AUTH_SAM_REPLY_H__ */