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.

 

Thanks,

 

Luke

 

From: Demian Katz [mailto:demian.katz@villanova.edu]
Sent: 31 August 2010 14:01
To: Osullivan L.; vufind-tech@lists.sourceforge.net; vufind-admins@lists.sourceforge.net
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:

 

http://www.openldap.org/lists/

 

Good luck!

 

- Demian

 

From: Osullivan L. [mailto:L.Osullivan@swansea.ac.uk]
Sent: Tuesday, August 31, 2010 5:23 AM
To: vufind-tech@lists.sourceforge.net; vufind-admins@lists.sourceforge.net
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
Website: www.swwhep.ac.uk

Ffn: 01792 602772
Gwefan:
www.swwhep.ac.uk

Check out the new SWWHEP Online GreenGuide at:
www.swwhep.ac.uk/en/projects/sustainability