file_server: Use samba4 auth module for guest logins as well
[nivanova/samba-autobuild/.git] / nsswitch / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('winbind-client',
4         source='wb_common.c',
5         deps='replace',
6         cflags='-DSOCKET_WRAPPER_DISABLE=1 -DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
7         private_library=True
8         )
9
10
11 bld.SAMBA_BINARY('nsstest',
12         source='nsstest.c',
13         deps='replace dl'
14         )
15
16
17 bld.SAMBA_LIBRARY('nss_winbind',
18         source='winbind_nss_linux.c',
19         deps='winbind-client',
20         realname='libnss_winbind.so.2',
21         vnum='2')
22
23
24 if bld.CONFIG_SET('WITH_PAM_MODULES') and bld.CONFIG_SET('HAVE_PAM_START'):
25         bld.SAMBA_LIBRARY('pamwinbind',
26                 source='pam_winbind.c',
27                 deps='intl talloc wbclient winbind-client iniparser pam',
28                 cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
29                 realname='pam_winbind.so',
30                 install_path='${PAMMODULESDIR}'
31                 )
32
33 if bld.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'):
34         bld.SAMBA_LIBRARY('winbind_krb5_locator',
35                 source='winbind_krb5_locator.c',
36                 deps='wbclient krb5 com_err',
37                 realname='winbind_krb5_locator.so')
38
39 bld.SAMBA_SUBSYSTEM('WB_REQTRANS',
40         source='wb_reqtrans.c',
41         deps='talloc tevent LIBASYNC_REQ'
42         )
43
44 bld.SAMBA_BINARY('wbinfo',
45         source='wbinfo.c',
46         deps='samba-util LIBCLI_AUTH popt POPT_SAMBA wbclient LIBAFS_SETTOKEN'
47         )