s4: torture: Add an async SMB2_OP_FLUSH + SMB2_OP_CLOSE test to smb2.compound_async.
[Samba.git] / source4 / auth / wscript_build
blob9b94143ba7c31b9e2a5116cfe8dfab57c883b736
1 #!/usr/bin/env python
3 bld.RECURSE('gensec')
4 bld.RECURSE('kerberos')
5 bld.RECURSE('ntlm')
7 bld.SAMBA_SUBSYSTEM('auth_session',
8 source='session.c',
9 autoproto='session_proto.h',
10 public_deps='samba-credentials',
11 public_headers='session.h',
12 header_path='samba',
13 deps='samdb auth4_sam'
16 bld.SAMBA_LIBRARY('auth_unix_token',
17 source='unix_token.c',
18 autoproto='unix_token_proto.h',
19 public_deps='LIBWBCLIENT_OLD',
20 private_library=True,
24 bld.SAMBA_SUBSYSTEM('samba_server_gensec',
25 source='samba_server_gensec.c',
26 public_deps='samba-credentials gensec auth4'
30 bld.SAMBA_SUBSYSTEM('auth_system_session',
31 source='system_session.c',
32 autoproto='system_session_proto.h',
33 public_deps='samba-credentials',
34 deps='auth_session',
38 bld.SAMBA_SUBSYSTEM('auth4_sam',
39 source='sam.c',
40 autoproto='auth_sam.h',
41 public_deps='samdb samba-security ldb tevent',
42 deps=''
45 bld.SAMBA_BINARY('test_kerberos',
46 source='tests/kerberos.c',
47 deps='cmocka authkrb5 krb5samba com_err CREDENTIALS_KRB5',
48 local_include=False,
49 for_selftest=True
52 bld.SAMBA_BINARY('test_auth_sam',
53 source='tests/sam.c',
54 deps='cmocka samdb samba-security ldb tevent',
55 local_include=False,
56 for_selftest=True,
57 ldflags='''
58 -Wl,--wrap,dsdb_search_dn
59 -Wl,--wrap,samdb_msg_add_int64
60 '''
63 bld.SAMBA_BINARY('test_heimdal_gensec_unwrap_des',
64 source='tests/heimdal_unwrap_des.c',
65 deps='cmocka talloc gssapi-subsystem',
66 local_include=False,
67 for_selftest=True,
68 enabled=(bld.CONFIG_SET('SAMBA4_USES_HEIMDAL') and
69 not bld.CONFIG_SET('USING_SYSTEM_GSSAPI')),
70 ldflags='''
71 -Wl,--wrap,ct_memcmp
72 -Wl,--wrap,der_get_length
73 -Wl,--wrap,krb5_auth_con_getlocalsubkey
74 -Wl,--wrap,krb5_crypto_destroy
75 -Wl,--wrap,krb5_crypto_init
76 -Wl,--wrap,krb5_decrypt
77 -Wl,--wrap,krb5_decrypt_ivec
78 -Wl,--wrap,krb5_free_keyblock
79 -Wl,--wrap,krb5_verify_checksum
80 -Wl,--wrap,malloc
81 '''
84 pytalloc_util = bld.pyembed_libname('pytalloc-util')
85 pyparam_util = bld.pyembed_libname('pyparam_util')
86 pyldb_util = bld.pyembed_libname('pyldb-util')
87 pycredentials = 'pycredentials'
88 bld.SAMBA_PYTHON('pyauth',
89 source='pyauth.c',
90 public_deps='auth_system_session',
91 deps='samdb %s %s %s %s auth4' % (pytalloc_util, pyparam_util, pyldb_util, pycredentials),
92 realname='samba/auth.so'