1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

build: moved libcli/auth/ntlmssp*.c into a common libcliauth.so library

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Tridgell 2011-02-24 10:28:43 +11:00
parent 29f850ac43
commit d37a55548b
6 changed files with 19 additions and 20 deletions

View File

@ -1,9 +1,14 @@
#!/usr/bin/env python
bld.SAMBA_SUBSYSTEM('ntlm_check',
source='ntlm_check.c',
deps='samba-util'
)
bld.SAMBA_LIBRARY('cliauth',
source='',
deps='NTLMSSP_COMMON MSRPC_PARSE LIBCLI_AUTH COMMON_SCHANNELDB PAM_ERRORS',
private_library=True,
grouping_library=True)
bld.SAMBA_SUBSYSTEM('NTLMSSP_COMMON',
source='ntlmssp.c ntlmssp_ndr.c ntlmssp_server.c ntlmssp_sign.c ntlm_check.c',
deps='samba-util NDR_NTLMSSP MSRPC_PARSE')
bld.SAMBA_SUBSYSTEM('MSRPC_PARSE',
@ -21,7 +26,7 @@ bld.SAMBA_SUBSYSTEM('LIBCLI_AUTH',
bld.SAMBA_SUBSYSTEM('COMMON_SCHANNELDB',
source='schannel_state_tdb.c',
deps='tdb-wrap'
deps='tdb-wrap UTIL_TDB'
)

View File

@ -129,11 +129,7 @@ LIBSMB_ERR_SRC = '''${DCE_RPC_ERR_SRC}'''
LIBNTLMSSP_SRC = '''
libsmb/ntlmssp.c
libsmb/ntlmssp_wrap.c
../libcli/auth/ntlmssp.c
../libcli/auth/ntlmssp_sign.c
../libcli/auth/ntlmssp_ndr.c
../libcli/auth/ntlmssp_server.c'''
libsmb/ntlmssp_wrap.c'''
TLDAP_SRC = '''lib/tldap.c lib/tldap_util.c lib/util_tsock.c'''
@ -719,7 +715,7 @@ bld.SAMBA3_SUBSYSTEM('TLDAP',
bld.SAMBA3_LIBRARY('passdb',
source=PASSDB_SRC,
deps='SECRETS3 SMBLDAP GROUPDB pdb wbclient',
deps='SECRETS3 SMBLDAP GROUPDB pdb wbclient LIBCLI_AUTH',
private_library=True,
vars=locals())
@ -787,7 +783,7 @@ bld.SAMBA3_SUBSYSTEM('LIBSMB_ERR',
bld.SAMBA3_SUBSYSTEM('LIBNTLMSSP',
source=LIBNTLMSSP_SRC,
deps='LIBSMB_ERR NDR_NTLMSSP ntlm_check',
deps='LIBSMB_ERR NDR_NTLMSSP NTLMSSP_COMMON',
vars=locals())
bld.SAMBA3_SUBSYSTEM('LIBSMB',

View File

@ -4,7 +4,7 @@ bld.SAMBA_MODULE('auth4_sam_module',
source='auth_sam.c',
subsystem='auth4',
init_function='auth_sam_init',
deps='samdb auth4_sam ntlm_check samba-hostconfig'
deps='samdb auth4_sam NTLMSSP_COMMON samba-hostconfig'
)

View File

@ -28,6 +28,7 @@
#include "auth/credentials/credentials.h"
#include "auth/gensec/gensec.h"
#include "param/param.h"
#include "libcli/auth/ntlmssp_private.h"
/*********************************************************************
Client side NTLMSSP

View File

@ -2,15 +2,11 @@
bld.SAMBA_MODULE('gensec_ntlmssp',
source='''ntlmssp.c ntlmssp_sign.c
ntlmssp_client.c ntlmssp_server.c
../../../libcli/auth/ntlmssp_sign.c
../../../libcli/auth/ntlmssp_ndr.c
../../../libcli/auth/ntlmssp.c
../../../libcli/auth/ntlmssp_server.c''',
ntlmssp_client.c ntlmssp_server.c''',
autoproto='proto.h',
subsystem='gensec',
init_function='gensec_ntlmssp_init',
deps='MSRPC_PARSE credentials NDR_NTLMSSP',
deps='credentials NTLMSSP_COMMON',
internal_module=True
)

View File

@ -3,7 +3,8 @@
bld.SAMBA_BINARY('ntlm_auth',
source='ntlm_auth.c',
manpages='man/ntlm_auth.1',
deps='samba-hostconfig samba-util popt POPT_SAMBA POPT_CREDENTIALS gensec LIBCLI_RESOLVE auth4 ntlm_check MESSAGING events service',
deps='''samba-hostconfig samba-util popt POPT_SAMBA POPT_CREDENTIALS gensec LIBCLI_RESOLVE
auth4 NTLMSSP_COMMON MESSAGING events service''',
pyembed=True
)