.send_handler = ldapsrv_send,
};
+/* The feature removed behind an #ifdef until we can do it properly
+ * with an EXTERNAL bind. */
+
+#ifdef WITH_LDAPI_PRIV_SOCKET
static void ldapsrv_accept_priv(struct stream_connection *c)
{
struct ldapsrv_service *ldapsrv_service = talloc_get_type_abort(
.send_handler = ldapsrv_send,
};
+#endif
/*
add a socket address to the list of events, one event per port
*/
*/
static void ldapsrv_task_init(struct task_server *task)
{
- char *ldapi_path, *priv_dir;
+ char *ldapi_path;
+#ifdef WITH_LDAPI_PRIV_SOCKET
+ char *priv_dir;
+#endif
struct ldapsrv_service *ldap_service;
NTSTATUS status;
const struct model_ops *model_ops;
ldapi_path, nt_errstr(status)));
}
+#ifdef WITH_LDAPI_PRIV_SOCKET
priv_dir = private_path(ldap_service, task->lp_ctx, "ldap_priv");
if (priv_dir == NULL) {
goto failed;
ldapi_path, nt_errstr(status)));
}
+#endif
return;
failed: