2010-03-28 09:48:49 +11:00
#!/usr/bin/env python
2011-08-18 20:43:00 +02:00
bld.SAMBA_LIBRARY('samba-credentials',
2010-11-07 02:05:51 +01:00
source='credentials.c',
public_headers='credentials.h',
2011-08-20 02:32:58 +02:00
pc_files='samba-credentials.pc',
2023-12-21 14:06:26 +13:00
deps='LIBCRYPTO samba-errors events LIBCLI_AUTH samba-security CREDENTIALS_SECRETS CREDENTIALS_KRB5 CREDENTIALS_GMSA',
2020-08-20 09:40:41 +02:00
vnum='1.0.0'
2010-11-07 02:05:51 +01:00
)
2010-03-17 22:07:42 +11:00
2010-10-11 02:05:03 +02:00
bld.SAMBA_SUBSYSTEM('CREDENTIALS_KRB5',
source='credentials_krb5.c',
2012-03-30 19:33:53 -04:00
deps='KERBEROS_SRV_KEYTAB KERBEROS_UTIL gssapi samba-credentials',
2010-10-30 11:44:07 +11:00
public_deps='com_err authkrb5',
2010-10-11 02:05:03 +02:00
)
2023-12-21 14:06:26 +13:00
bld.SAMBA_SUBSYSTEM('CREDENTIALS_GMSA',
source='credentials_gmsa.c',
2024-02-02 14:40:24 +13:00
deps='samba-credentials CREDENTIALS_NTLM NDR_GMSA ldb gkdi',
2023-12-21 14:06:26 +13:00
)
2010-10-11 02:05:03 +02:00
bld.SAMBA_SUBSYSTEM('CREDENTIALS_SECRETS',
source='credentials_secrets.c',
2012-07-14 22:23:41 +10:00
deps='CREDENTIALS_KRB5 CREDENTIALS_NTLM ldb SECRETS samdb-common dbwrap',
2010-10-11 02:05:03 +02:00
)
bld.SAMBA_SUBSYSTEM('CREDENTIALS_NTLM',
source='credentials_ntlm.c',
2019-06-26 16:41:05 +12:00
deps='samba-credentials GNUTLS_HELPERS')
2010-03-17 22:07:42 +11:00
2019-08-07 11:36:28 +02:00
bld.SAMBA_SUBSYSTEM('CREDENTIALS_CMDLINE',
source='credentials_cmdline.c',
deps='samba-credentials')
2023-12-07 15:50:43 +13:00
pyrpc_util = bld.pyembed_libname('pyrpc_util')
2019-02-15 16:37:48 +13:00
pytalloc_util = bld.pyembed_libname('pytalloc-util')
pyparam_util = bld.pyembed_libname('pyparam_util')
2018-04-04 09:53:14 +01:00
2019-02-15 16:37:48 +13:00
bld.SAMBA_PYTHON('pycredentials',
source='pycredentials.c',
2023-12-07 15:50:43 +13:00
public_deps='samba-credentials %s %s %s CREDENTIALS_CMDLINE CREDENTIALS_KRB5 CREDENTIALS_SECRETS' % (pyrpc_util, pytalloc_util, pyparam_util),
2019-02-15 16:37:48 +13:00
realname='samba/credentials.so'
)
2020-09-01 12:32:28 +02:00
bld.SAMBA_BINARY('test_creds',
source='tests/test_creds.c',
deps='cmocka samba-credentials',
local_include=False,
for_selftest=True)