After installing LDAP Integration module version 4.6.0 (I belive the June 28th 2005 build, which is the latest one currently available) into drupal 4.6.3, the drupal admin 'modules' page comes up blank. Obviously you will see this right away when you try to go and enable your newly installed ldap integration module. When I remove the LDAP Integration module files/folder from the modules directory and refresh the admin modules page it works properly again. There must be something in the .module files that is causing this to happen but I'm not sure what. No error messages are logged in the drupal error logging system either. The only other modules I've installed outside of the default modules packaged with drupal are:

- TinyMCE editor module
- Subscriptions module

Comments

juanfondu’s picture

Assigned: juanfondu » Unassigned
pablobm’s picture

Such thing isn't happening to me. Are you using PHP5 by any chance?.

juanfondu’s picture

Actually I am using PHP5, sorry I didn't point that out as I know that causes problems for a lot of things. Do you know if the LDAP integration module has been tested with 5 or not?

pablobm’s picture

I haven't received any notice of that. Sorry.

quickcel’s picture

Just a little FYI - I am having the same problems (blank module page) when installing LDAP module. I am also using PHP5

tracstarr’s picture

I am also running 4.6.3 and php 5. I have reviewed my logs and it's showing :

PHP Fatal error: Using $this when not in object context in /home/web/production/modules/ldap_integration/ldap_integration/LDAPInterface.php on line 21, referer: http://simon/production/?q=admin

> i noticed that the code used ===, i replaced that with == and still the same problem.

pablobm’s picture

Title: LDAP Integration module causes 'modules' section of admin area to render as blank page » PHP5 incompatibility
Status: Active » Needs review
StatusFileSize
new8.51 KB

After reading your problem descriptions, I think I may have the key of this problem. I'm attaching a patched version of this module that may solve it, God willing.

Good luck. (I can't test it since I'm not a PHP5 user).

tracstarr’s picture

just tested the patched code and everything seems to be ok so far. I've managed to be able to login with LDAP auth. don't have AD so i can't check that.

tracstarr’s picture

Status: Needs review » Needs work

hmmmm, found a few errors when i clicked on a new authenticated users info. It doesn't seem to want to pull the information from the LDAP server? My LDAP is a standard install with nothing out of the ordinary.

warning: ldap_read() [function.ldap-read]: Search: No such object in /modules/ldap_integration/LDAPInterface.php on line 140.

warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in /modules/ldap_integration/LDAPInterface.php on line 141.

warning: Invalid argument supplied for foreach() in /modules/ldap_integration.module on line 455.

quickcel’s picture

That patch fixed the previous problem of the modules page being blank. I can now view and change LDAP settings, but am using AD and haven't been able to get that to work. After log in I click on my account and it returns a blank page. Is anyone else having this problem?

tracstarr’s picture

looking into it a bit more it appears that I only receive those LDAP errors for accounts that are strictly drupal accounts and are not LDAP ones. Perhaps a check for this?

pablobm’s picture

Status: Needs work » Active

Finally I've been able to setup a PHP5 and test this module on it. But I haven't been able to reproduce the errors commented above.

So I'd need somebody having this problem and basic knowledge of PHP to try some basic debugging around the involved lines (140 and 141 at ldap_integration/LDAPInterface.php, it seems), as I feel helpless here.

quickcel’s picture

In reference to my earlier post about a blank page. It turns out that I didn't have the php_ldap.dll extension enabled in my php.ini file.

Here is my next problem. I have just downloaded the newest module version (Sept. 12) and am getting the following error messages in the log:

ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid credentials in C:\website\modules\ldap_integration\LDAPInterface.php on line 135.

LDAP Bind failure for user cn=STD,dc=apexspring,dc=local. Error 49: Invalid credentials

User load: user Object id #1's data could not be read in the LDAP directory

Considering that I'm not too sure what I'm doing I don't know if this is a bug or a possible misconfiguration on my part. Is there anyone who has this module working with PHP5 and AD or knows how I can fix this error?

Thanks everyone for the code and help so far.

juanfondu’s picture

Just tried the version posted on Oct. 5, and it has gotten rid of the blank page problem and I was able to successfully connect it to our active directory server for logins/account creation. Thanks Pablo (and anyone else who helped troubleshoot this)!

pablobm’s picture

Status: Active » Closed (fixed)

I think this can be closed if nobody says otherwise.