summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/wscript_build15
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/wscript_build b/source3/wscript_build
index 90d7f58e4b..35e4142275 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -535,7 +535,7 @@ RPCCLIENT_SRC1 = '''rpcclient/rpcclient.c rpcclient/cmd_lsarpc.c
RPCCLIENT_SRC = '''${RPCCLIENT_SRC1}'''
-PAM_WINBIND_SRC = '../nsswitch/pam_winbind.c ${WBCOMMON_SRC} ${LIBREPLACE_SRC}'
+PAM_WINBIND_SRC = '../nsswitch/pam_winbind.c'
LIBSMBCLIENT_THREAD_SRC = '''libsmb/libsmb_thread_impl.c
libsmb/libsmb_thread_posix.c'''
@@ -788,6 +788,19 @@ bld.SAMBA_LIBRARY('smbsharemodes',
private_library=True,
vars=locals())
+bld.SAMBA_LIBRARY('nss_winbind',
+ source='../nsswitch/winbind_nss_linux.c',
+ deps='WBCOMMON',
+ realname='libnss_winbind.so.2',
+ vnum='2')
+
+if bld.CONFIG_SET('WITH_PAM_MODULES'):
+ bld.SAMBA_LIBRARY('pamwinbind',
+ source=PAM_WINBIND_SRC,
+ deps='intl talloc wbclient WBCOMMON LIBINIPARSER pam',
+ cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
+ realname='pam_winbind.so')
+
bld.SAMBA_SUBSYSTEM('LIBMSRPC',
source='${LIBMSRPC_SRC}',
deps='''ndr NDR_SECURITY NDR_DCERPC NDR_SCHANNEL