src/server/daemon/webserver.c

changeset 461
9b20b8f3582b
parent 444
96d2ba2f28db
child 556
b036ccad4b49
--- a/src/server/daemon/webserver.c	Fri Mar 10 23:00:02 2023 +0100
+++ b/src/server/daemon/webserver.c	Sat Mar 11 11:56:55 2023 +0100
@@ -62,6 +62,7 @@
 #include "auth.h"
 #include "srvctrl.h"
 #include "resourcepool.h"
+#include "ldap_resource.h"
 
 extern struct FuncStruct webserver_funcs[];
 
@@ -96,6 +97,10 @@
         log_ereport(LOG_FAILURE, "resource pool init failed");
         return -1;
     }
+    if(resourcepool_register_type("ldap", ldap_get_resource_type())) {
+        log_ereport(LOG_FAILURE, "webserver-init: Cannot register ldap resourcepool type");
+        return -1;
+    }
     
     // load init.conf
     InitConfig *init_config = load_init_conf("config/init.conf");

mercurial