CVE-2023-34968: mdssvc: introduce an allocating wrapper to sl_pack()
[Samba.git] / source4 / auth / wscript_build
blob57bb9f751c6a70ad74dc7443f805bf8f09f1b6e9
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 libpython = bld.pyembed_libname('LIBPYTHON')
90 bld.SAMBA_PYTHON('pyauth',
91 source='pyauth.c',
92 public_deps='auth_system_session',
93 deps=f'samdb {pytalloc_util} {pyparam_util} {pyldb_util} {pycredentials} {libpython} auth4',
94 realname='samba/auth.so'