[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4611) slapi-plugin kill slapd



Full_Name: Steffen Hofmann
Version: 2.3.24
OS: (Debian) Linux Kernel 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (160.45.11.55)


I'm playing with slapi-plugin. With the second connection the slapd dies with
the following message:

slapd: connection.c:668: connection_init: Assertion `c->c_sasl_bindop == ((void
*)0)' failed.

The preoperation slapi-plugin is very simple:

#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);
}

Trying the 2.4.2alpha version of OpenLDAP I coudn´t start slapd:
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.
ldap_unbind