Wow! Thanks Demian!


As you say, I don’t know where the ldap_sasl_bind() is coming from – it’s nothing I’ve specifically added. I’ll definitely contact the openldap project.






From: Demian Katz []
Sent: 31 August 2010 14:01
To: Osullivan L.;;
Cc: Johnson J.P.; Brown A.T.
Subject: RE: Apache, LDAP, Ubuntu


Is VuFind actually calling ldap_sasl_bind()?  I don’t believe that function is used in the standard code, so unless you have made local customizations, it seems strange that it is coming into the picture at all.  Of course, I really don’t know what’s going on behind the scenes, so maybe this is normal.


In any case, the error message you describe doesn’t seem to be very common, though a bit of Google hunting revealed something similar in a Ruby library that was fixed by a later version…  so maybe it’s worth checking if you’re using the most current libraries.


With some further digging,  I found the sasl.c module mentioned in the error message.  I think this is the assertion that is failing, assuming the version of the code I found matches what is compiled on your server:


                /* create a message to send */

                if ( (ber = ldap_alloc_ber_with_options( ld )) == NULL ) {

                                ld->ld_errno = LDAP_NO_MEMORY;

                                return ld->ld_errno;



                assert( LBER_VALID( ber ) );


Based on this, it looks like some kind of memory allocation problem…  which would fit with the fact that it only happens after Apache has been running for a while and goes away on a restart.


I believe this code is part of libldap, which is managed by the OpenLDAP project.  Perhaps the best place to follow up with this would be one of their mailing lists:


Good luck!


- Demian


From: Osullivan L. []
Sent: Tuesday, August 31, 2010 5:23 AM
Cc: Johnson J.P.; Brown A.T.
Subject: [Vufind-admins] Apache, LDAP, Ubuntu


Dear All,


We are experiencing difficulties using an LDAP connection with our installation of VuFind. After an undetermined period of time, the Apache logs display the following error:


apache2: sasl.c:103: ldap_sasl_bind: Assertion `((ber)->ber_opts.lbo_valid==0x2)' failed.

[notice] child pid 6577 exit signal Aborted (6)


Normal Apache operations are unaffected and a restart of Apache resolves the problem.


Does anyone have any ideas what the problem could be or who I could contact to try and resolve the issue?


Kind Regards,


Luke O'Sullivan
Library Systems Officer - Virtual Academic Library
South West Wales Higher Education Partnership (SWWHEP)

Tel: 01792 602772

Ffn: 01792 602772

Check out the new SWWHEP Online GreenGuide at: