I have a successful installation of Drupal 4.6.5. I also installed the LDAP module.

After the LDAP installation, when I login, the first attempt is always unsuccessful. I click the [Back] button and click Login a second time and it always works.

The error message I get on the first attempts is:
warning: sprintf(): Too few arguments in /home/imsgroup/public_html/web/includes/database.inc on line 154.
user error: Query was empty
query: in /home/imsgroup/public_html/web/includes/database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent by (output started at /home/imsgroup/public_html/web/includes/common.inc:384) in /home/imsgroup/public_html/web/includes/common.inc on line 192.

I then disabled LDAP and ZCallbacks, and now the login works every singe time, so it appears there is a problem with LDAP.

When I first installed the LDAP, I was only beginning to configure it to work with Active Directory, but was not able to successfully connect yet. Is there a possibility that the LDAP configuration is causing the error messages?

Thank you.

Comments

pablobm’s picture

Mmm... just found and fixed a related bug. Try now, please.

imsgroup’s picture

Okay. Was I supposed to apply some patch, or reupload some file?

Re-enabling LDAP and Zcallbacks still results in the error. I re-downloaded the LDAP 4.6 archive, but it is no different than the one I installed a few days ago.

Thank you.

pablobm’s picture

Assigned: Unassigned » pablobm
Status: Active » Reviewed & tested by the community

Are you using PHP4?. I suspect this may be a behavior change between PHP4's and PHP5's libraries.

I think I found the problem this time. I'll release a now version later today. Stay tuned.

pablobm’s picture

Title: LDAP module added to Drupal 4.6.5 causes Login to Fail Every Other Time » sprintf() error on database query

New version uploaded now. Please redownload and tell me if it works now.

pablobm’s picture

Status: Reviewed & tested by the community » Fixed

I take it this is solved

Anonymous’s picture

Status: Fixed » Closed (fixed)