LDAP Start TLS causes blank pages to be returned upon login. When ever I enable the option, users are unable to login and greet a blank page.

Comments

miglius’s picture

Status: Active » Postponed (maintainer needs more info)

Could you inspect web server's log for a concrete error which is causing the white screen?

thekevinday’s picture

Version: 6.x-1.0-alpha2 » 6.x-1.0-beta1

This happens with the beta1 as well.

I do not expect the ldap server I am using to have start-tls support enabled, so I suspect this will happen when start-tls is not supported on the ldap-server end and authentication fails.

Heres my log messages:

ldap_start_tls() [<a href='function.ldap-start-tls'>function.ldap-start-tls</a>]: Unable to start TLS: Connect error in /var/www/html/sites/all/modules/ldap_integration/includes/LDAPInterface.inc on line 154

Could not start TLS. (Error -11: Connect error).

ldap_errno(): supplied argument is not a valid ldap link resource in /var/www/html/sites/all/modules/ldap_integration/includes/LDAPInterface.inc on line 167

ldap_error(): supplied argument is not a valid ldap link resource in /var/www/html/sites/all/modules/ldap_integration/includes/LDAPInterface.inc on line 167

LDAP Bind failure for user . Error 

Those messages are from a single failed login with start-tls enabled for an ldap-server that probably does not have start-tls enabled.

miglius’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Of course LDAP server should be configured to use TLS if you have enabled it on drupal end.

thekevinday’s picture

The problem is that, the messages are not logged and the user gets a blank page.

In other words, the failure is not graceful.
They should be returned to the page they were logging in from and presented with an error message instead of effectively sending the user to /dev/null

benyami’s picture

Running on Ubuntu I experienced this and I installed the php5-ldap package.

apt-get install php5-ldap