summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-09-13 10:36:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:43 -0500
commita560d554bdfade75b81780e427e51cc436d9488a (patch)
tree1826e5cea2eca411d746433199a913a21ed13e76 /source4/smbd
parent17bdcc9056c77bcecd8078863ca7a7bd7f7e478e (diff)
downloadsamba-a560d554bdfade75b81780e427e51cc436d9488a.tar.gz
samba-a560d554bdfade75b81780e427e51cc436d9488a.tar.bz2
samba-a560d554bdfade75b81780e427e51cc436d9488a.zip
r2321: add complately untested LDAP server start
based on volker's patch this is compiled by default but not started by default metze (This used to be commit 5387bc423d4dc669cbac6626f8dd3a5498a6519d)
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/config.m41
-rw-r--r--source4/smbd/config.mk8
-rw-r--r--source4/smbd/service.c3
3 files changed, 12 insertions, 0 deletions
diff --git a/source4/smbd/config.m4 b/source4/smbd/config.m4
index 52ccb68aa8..5142e81f84 100644
--- a/source4/smbd/config.m4
+++ b/source4/smbd/config.m4
@@ -3,6 +3,7 @@ dnl # server subsystem
SMB_MODULE_MK(server_service_auth,SERVER_SERVICE,STATIC,smbd/config.mk)
SMB_MODULE_MK(server_service_smb,SERVER_SERVICE,STATIC,smbd/config.mk)
SMB_MODULE_MK(server_service_rpc,SERVER_SERVICE,STATIC,smbd/config.mk)
+SMB_MODULE_MK(server_service_ldap,SERVER_SERVICE,STATIC,smbd/config.mk)
SMB_SUBSYSTEM_MK(SERVER_SERVICE,smbd/config.mk)
SMB_SUBSYSTEM_MK(SERVER,smbd/config.mk)
diff --git a/source4/smbd/config.mk b/source4/smbd/config.mk
index f002341a26..5aa04725b4 100644
--- a/source4/smbd/config.mk
+++ b/source4/smbd/config.mk
@@ -24,6 +24,14 @@ REQUIRED_SUBSYSTEMS = \
# End MODULE server_rpc
################################################
+################################################
+# Start MODULE server_service_ldap
+[MODULE::server_service_ldap]
+REQUIRED_SUBSYSTEMS = \
+ LDAP
+# End MODULE server_ldap
+################################################
+
#######################
# Start SUBSYSTEM SERVICE
[SUBSYSTEM::SERVER_SERVICE]
diff --git a/source4/smbd/service.c b/source4/smbd/service.c
index 270eeb4f22..2f4be5151d 100644
--- a/source4/smbd/service.c
+++ b/source4/smbd/service.c
@@ -292,6 +292,9 @@ const struct server_service_ops *server_service_byname(const char *name)
if (strcmp("rpc",name)==0) {
return dcesrv_get_ops();
}
+ if (strcmp("ldap",name)==0) {
+ return ldapsrv_get_ops();
+ }
return NULL;
}