[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#5164) slapi plugins prevent slapd starting.
Full_Name: Martin Evans
Version: 2.4.5beta
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (138.37.8.140)
This is mentioned in #4611 but marked as fixed there.
If you compile and load in the plugin from 4611 slapd does not start and you get
the following errors from -d-1:
...
2.5.13.0 (objectIdentifierMatch): matchingRuleUse: ( 2.5.13.0 NAME
'objectIdentifierMatch' APPLIES ( supportedControl $ supportedExtension $
supportedFeatures $ supportedApplicationContext ) )
slapd startup: initiated.
backend_startup: bi_db_open(frontend) failed! (1)
slapd shutdown: initiated
====> bdb_cache_release_all
backend_startup: bi_db_close(frontend) failed! (1)
slapd destroy: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.
This is the plugin from 4611:
#include "slapi-plugin.h"
#include <stdio.h>
int auth(Slapi_PBlock *pb) {
slapi_send_ldap_result( pb, 0, NULL, NULL, 0, NULL );
return (0);
}
int auth_plugin_init(Slapi_PBlock *pb) {
if (slapi_pblock_set( pb, SLAPI_PLUGIN_PRE_BIND_FN, (void*) auth) != 0) {
slapi_log_error(SLAPI_LOG_PLUGIN, "auth", "Error registering
function.\n" );
return (-1);
}
slapi_log_error( SLAPI_LOG_PLUGIN, "auth_plugin_init", "Plug-ins
successfully registered.\n" );
return (0);
}