#!/usr/bin/env python

bld.SAMBA_MODULE('auth4_sam_module',
	source='auth_sam.c',
	subsystem='auth4',
	init_function='auth4_sam_init',
	deps='samdb auth4_sam NTLMSSP_COMMON samba-hostconfig RPC_NDR_IRPC MESSAGING'
	)


bld.SAMBA_MODULE('auth4_anonymous',
	source='auth_anonymous.c',
	subsystem='auth4',
	init_function='auth4_anonymous_init',
	deps='talloc'
	)


bld.SAMBA_MODULE('auth4_winbind',
	source='auth_winbind.c',
	subsystem='auth4',
	init_function='auth4_winbind_init',
	deps='RPC_NDR_WINBIND MESSAGING wbclient'
	)


bld.SAMBA_MODULE('auth4_developer',
	source='auth_developer.c',
	subsystem='auth4',
	init_function='auth4_developer_init',
	deps='talloc'
	)


bld.SAMBA_MODULE('auth4_unix',
	source='auth_unix.c',
	subsystem='auth4',
	init_function='auth4_unix_init',
	deps='pam PAM_ERRORS LIBTSOCKET'
	)


bld.SAMBA_LIBRARY('auth4',
	source='auth.c auth_util.c auth_simple.c',
	autoproto='auth_proto.h',
	deps='samba-util security samdb samba-credentials tevent-util LIBWBCLIENT_OLD auth_unix_token samba-modules KERBEROS_UTIL',
	private_library=True
	)

bld.SAMBA_MODULE('service_auth',
	source='auth_server_service.c',
	subsystem='service',
	init_function='server_service_auth_init',
	deps='auth4',
	internal_module=True
	)