diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-06 16:54:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:48:25 +0100 |
commit | 2f5ca872a80ad872ab864061f0c6982d8605393f (patch) | |
tree | 061592e4ae1e79adc57cd5d99ff2fd6f3b8c2549 /source4/ldap_server | |
parent | fb29325f1d4feba6c3f52b690d3da5d492618c4f (diff) | |
download | samba-2f5ca872a80ad872ab864061f0c6982d8605393f.tar.gz samba-2f5ca872a80ad872ab864061f0c6982d8605393f.tar.bz2 samba-2f5ca872a80ad872ab864061f0c6982d8605393f.zip |
r26313: Fix more uses of static loadparm.
(This used to be commit 6fd0d9d3b75546d08c24c513e05b1843d5777608)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_server.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index 2898d131c9..81988b60f6 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -454,7 +454,9 @@ static NTSTATUS add_socket(struct event_context *event_context, int options; status = stream_setup_socket(event_context, model_ops, &ldap_stream_ops, - "ipv4", address, &port, ldap_service); + "ipv4", address, &port, + lp_socket_options(lp_ctx), + ldap_service); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("ldapsrv failed to bind to %s:%u - %s\n", address, port, nt_errstr(status))); @@ -464,7 +466,9 @@ static NTSTATUS add_socket(struct event_context *event_context, /* add ldaps server */ port = 636; status = stream_setup_socket(event_context, model_ops, &ldap_stream_ops, - "ipv4", address, &port, ldap_service); + "ipv4", address, &port, + lp_socket_options(lp_ctx), + ldap_service); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("ldapsrv failed to bind to %s:%u - %s\n", address, port, nt_errstr(status))); @@ -495,7 +499,9 @@ static NTSTATUS add_socket(struct event_context *event_context, if (options & 0x000000001) { port = 3268; status = stream_setup_socket(event_context, model_ops, &ldap_stream_ops, - "ipv4", address, &port, ldap_service); + "ipv4", address, &port, + lp_socket_options(lp_ctx), + ldap_service); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("ldapsrv failed to bind to %s:%u - %s\n", address, port, nt_errstr(status))); @@ -564,7 +570,9 @@ static void ldapsrv_task_init(struct task_server *task) } status = stream_setup_socket(task->event_ctx, model_ops, &ldap_stream_ops, - "unix", ldapi_path, NULL, ldap_service); + "unix", ldapi_path, NULL, + lp_socket_options(task->lp_ctx), + ldap_service); talloc_free(ldapi_path); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("ldapsrv failed to bind to %s - %s\n", |