]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/backend.c
Import Ben Collins <bcollins@debian.org> Back-TCL for SLAPD.
[openldap] / servers / slapd / backend.c
index 8001fc4b121b4e78d4765b83cfac7259fc11780b..b59e4c1d5890e805bc0897202c511e875fd54230 100644 (file)
@@ -27,6 +27,9 @@
 #ifdef SLAPD_SHELL
 #include "back-shell/external.h"
 #endif
+#ifdef SLAPD_TCL
+#include "back-tcl/external.h"
+#endif
 
 static BackendInfo binfo[] = {
 #ifdef SLAPD_LDBM
@@ -43,6 +46,9 @@ static BackendInfo binfo[] = {
 #endif
 #ifdef SLAPD_SHELL
        {"shell",       shell_back_initialize},
+#endif
+#ifdef SLAPD_TCL
+       {"tcl",         tcl_back_initialize},
 #endif
        {NULL}
 };
@@ -179,20 +185,6 @@ int backend_startup(int n)
 
        /* open each backend database */
        for( i = 0; i < nBackendDB; i++ ) {
-               BackendInfo  *bi;
-
-               /* open the backend type, if not done already */
-               bi =  backendDB[i].bd_info;
-
-               if( bi->bi_nDB == 0) {
-                       /* no database of this type, don't open */
-                       Debug(LDAP_DEBUG_ANY, 
-                               "backend_startup: there should be no database (%d) of %s type.!\n",
-                               i, bi->bi_type, 0 );
-
-                       return -1;
-               }
-
                if ( backendDB[i].bd_info->bi_db_open ) {
                        rc = backendDB[i].bd_info->bi_db_open(
                                &backendDB[i] );