2010-09-26 21:43:43 +04:00
#!/usr/bin/env python
AUTH_BUILTIN_SRC = 'auth_builtin.c'
AUTH_DOMAIN_SRC = 'auth_domain.c'
2011-02-23 02:31:35 +03:00
AUTH_SAM_SRC = 'auth_sam.c'
2010-09-26 21:43:43 +04:00
AUTH_UNIX_SRC = 'auth_unix.c'
AUTH_WINBIND_SRC = 'auth_winbind.c'
AUTH_WBC_SRC = 'auth_wbc.c'
AUTH_SCRIPT_SRC = 'auth_script.c'
2011-02-23 02:31:35 +03:00
AUTH_SRC = '''auth.c
2010-09-26 21:43:43 +04:00
user_krb5.c
2012-02-03 11:03:10 +04:00
auth_ntlmssp.c auth_generic.c'''
2010-09-26 21:43:43 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_SUBSYSTEM('TOKEN_UTIL',
2010-11-30 18:16:22 +03:00
source='token_util.c',
2012-01-27 00:27:54 +04:00
deps='samba-util pdb',
2010-11-30 18:16:22 +03:00
vars=locals())
2011-05-25 08:55:08 +04:00
bld.SAMBA3_SUBSYSTEM('USER_UTIL',
source='user_util.c',
deps='TOKEN_UTIL')
2011-02-23 02:31:35 +03:00
bld.SAMBA3_SUBSYSTEM('AUTH_COMMON',
source='''auth_util.c
check_samsec.c
server_info.c
server_info_sam.c
2011-05-25 08:55:08 +04:00
user_info.c''',
deps='TOKEN_UTIL DCUTIL USER_UTIL',
2011-02-23 02:31:35 +03:00
vars=locals())
2011-07-03 11:20:02 +04:00
bld.SAMBA3_LIBRARY('auth',
2010-09-26 21:43:43 +04:00
source=AUTH_SRC,
2011-11-02 19:58:53 +04:00
deps='''PLAINTEXT_AUTH SLCACHE DCUTIL TOKEN_UTIL AUTH_COMMON libcli_netlogon3 samba-hostconfig''',
2011-07-03 11:20:02 +04:00
private_library=True)
2010-09-26 21:43:43 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('auth_sam',
2010-10-07 23:28:04 +04:00
subsystem='auth',
2010-09-26 21:43:43 +04:00
source=AUTH_SAM_SRC,
2011-06-20 14:36:46 +04:00
deps='samba-util',
2010-09-26 21:43:43 +04:00
init_function='',
2012-10-17 18:30:57 +04:00
internal_module=True)
2010-09-26 21:43:43 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('auth_unix',
2010-10-07 23:28:04 +04:00
subsystem='auth',
2010-09-26 21:43:43 +04:00
source=AUTH_UNIX_SRC,
2011-06-20 14:36:46 +04:00
deps='samba-util',
2010-09-26 21:43:43 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_unix'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_unix'))
2010-09-26 21:43:43 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('auth_winbind',
2010-10-07 23:28:04 +04:00
subsystem='auth',
2010-09-26 21:43:43 +04:00
source=AUTH_WINBIND_SRC,
2011-06-20 14:36:46 +04:00
deps='samba-util',
2010-09-26 21:43:43 +04:00
init_function='',
2012-10-17 18:30:57 +04:00
internal_module=True)
2010-09-26 21:43:43 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('auth_wbc',
2010-10-07 23:28:04 +04:00
subsystem='auth',
2010-09-26 21:43:43 +04:00
source=AUTH_WBC_SRC,
2011-06-20 14:36:46 +04:00
deps='samba-util',
2010-09-26 21:43:43 +04:00
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_wbc'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_wbc'))
2010-09-26 21:43:43 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('auth_domain',
2010-10-07 23:28:04 +04:00
subsystem='auth',
2010-09-26 21:43:43 +04:00
source=AUTH_DOMAIN_SRC,
2011-11-02 16:06:45 +04:00
deps='RPC_CLIENT_SCHANNEL trusts_util',
2010-09-26 21:43:43 +04:00
init_function='',
2012-10-17 18:30:57 +04:00
internal_module=True)
2010-09-26 21:43:43 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('auth_builtin',
2010-10-07 23:28:04 +04:00
subsystem='auth',
2010-09-26 21:43:43 +04:00
source=AUTH_BUILTIN_SRC,
2011-06-20 14:36:46 +04:00
deps='samba-util',
2010-09-26 21:43:43 +04:00
init_function='',
2012-10-17 18:30:57 +04:00
internal_module=True)
2010-09-26 21:43:43 +04:00
2011-02-09 07:56:20 +03:00
bld.SAMBA3_MODULE('auth_script',
2010-10-07 23:28:04 +04:00
subsystem='auth',
2010-09-28 22:00:47 +04:00
source=AUTH_SCRIPT_SRC,
init_function='',
2010-12-01 14:10:03 +03:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_script'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_script'))
2011-05-08 16:48:11 +04:00
bld.SAMBA3_MODULE('auth_samba4',
subsystem='auth',
source='auth_samba4.c',
init_function='',
2011-07-21 08:48:59 +04:00
deps='auth4 samba_server_gensec gensec',
2012-05-21 13:45:12 +04:00
internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_samba4') and bld.AD_DC_BUILD_IS_ENABLED(),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_samba4') and bld.AD_DC_BUILD_IS_ENABLED())