mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
dc9f55dbec
This implements gensec for Samba's server side, and brings gensec up
to the standards of a full subsystem.
This means that use of the subsystem is by gensec_* functions, not
function pointers in structures (this is internal). This causes
changes in all the existing gensec users.
Our RPC server no longer contains it's own generalised security
scheme, and now calls gensec directly.
Gensec has also taken over the role of auth/auth_ntlmssp.c
An important part of gensec, is the output of the 'session_info'
struct. This is now reference counted, so that we can correctly free
it when a pipe is closed, no matter if it was inherited, or created by
per-pipe authentication.
The schannel code is reworked, to be in the same file for client and
server.
ntlm_auth is reworked to use gensec.
The major problem with this code is the way it relies on subsystem
auto-initialisation. The primary reason for this commit now.is to
allow these problems to be looked at, and fixed.
There are problems with the new code:
- I've tested it with smbtorture, but currently don't have VMware and
valgrind working (this I'll fix soon).
- The SPNEGO code is client-only at this point.
- We still do not do kerberos.
Andrew Bartlett
(This used to be commit 07fd885fd4
)
153 lines
3.9 KiB
Makefile
153 lines
3.9 KiB
Makefile
# DCERPC Server subsystem
|
|
|
|
################################################
|
|
# Start SUBSYSTEM DCERPC_COMMON
|
|
[SUBSYSTEM::DCERPC_COMMON]
|
|
ADD_OBJ_FILES = \
|
|
rpc_server/common/server_info.o \
|
|
rpc_server/common/share_info.o \
|
|
rpc_server/common/gendb.o
|
|
#
|
|
# End SUBSYSTEM DCERPC_COMMON
|
|
################################################
|
|
|
|
################################################
|
|
# Start SUBSYSTEM SAMDB
|
|
[SUBSYSTEM::SAMDB]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/samr/samdb.o
|
|
ADD_OBJ_FILES = \
|
|
rpc_server/samr/samr_utils.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
DCERPC_COMMON \
|
|
LIBLDB
|
|
#
|
|
# End SUBSYSTEM SAMDB
|
|
################################################
|
|
|
|
################################################
|
|
# Start SUBSYSTEM SCHANNELDB
|
|
[SUBSYSTEM::SCHANNELDB]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/netlogon/schannel_state.o
|
|
#
|
|
# End SUBSYSTEM SCHANNELDB
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_rpcecho
|
|
[MODULE::dcerpc_rpcecho]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/echo/rpc_echo.o
|
|
# End MODULE dcerpc_rpcecho
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_epmapper
|
|
[MODULE::dcerpc_epmapper]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/epmapper/rpc_epmapper.o
|
|
# End MODULE dcerpc_epmapper
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_remote
|
|
[MODULE::dcerpc_remote]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/remote/dcesrv_remote.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
LIBSMB
|
|
# End MODULE dcerpc_remote
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_srvsvc
|
|
[MODULE::dcerpc_srvsvc]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/srvsvc/dcesrv_srvsvc.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
DCERPC_COMMON
|
|
# End MODULE dcerpc_srvsvc
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_wkssvc
|
|
[MODULE::dcerpc_wkssvc]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/wkssvc/dcesrv_wkssvc.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
DCERPC_COMMON
|
|
# End MODULE dcerpc_wkssvc
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_samr
|
|
[MODULE::dcerpc_samr]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/samr/dcesrv_samr.o
|
|
ADD_OBJ_FILES = \
|
|
rpc_server/samr/samr_password.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
SAMDB \
|
|
DCERPC_COMMON
|
|
# End MODULE dcerpc_samr
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_winreg
|
|
[MODULE::dcerpc_winreg]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/winreg/rpc_winreg.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
REGISTRY
|
|
# End MODULE dcerpc_winreg
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_netlogon
|
|
[MODULE::dcerpc_netlogon]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/netlogon/dcerpc_netlogon.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
DCERPC_COMMON \
|
|
SCHANNELDB
|
|
# End MODULE dcerpc_netlogon
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_lsa
|
|
[MODULE::dcerpc_lsarpc]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/lsa/dcesrv_lsa.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
SAMDB \
|
|
DCERPC_COMMON
|
|
# End MODULE dcerpc_lsa
|
|
################################################
|
|
|
|
################################################
|
|
# Start MODULE dcerpc_spoolss
|
|
[MODULE::dcerpc_spoolss]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/spoolss/dcesrv_spoolss.o \
|
|
rpc_server/spoolss/spoolssdb.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
DCERPC_COMMON
|
|
# End MODULE dcerpc_lsa
|
|
################################################
|
|
|
|
################################################
|
|
# Start SUBSYSTEM DCERPC
|
|
[SUBSYSTEM::DCERPC]
|
|
INIT_OBJ_FILES = \
|
|
rpc_server/dcerpc_server.o
|
|
ADD_OBJ_FILES = \
|
|
rpc_server/dcerpc_tcp.o \
|
|
rpc_server/dcesrv_auth.o \
|
|
rpc_server/handles.o
|
|
REQUIRED_SUBSYSTEMS = \
|
|
LIBCLI_AUTH
|
|
#
|
|
# End SUBSYSTEM DCERPC
|
|
################################################
|