Download & Extend

LDAP Start TLS causes blank pages to be returned upon login

Project:LDAP integration
Version:6.x-1.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)

Issue Summary

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

#1

Status:active» postponed (maintainer needs more info)

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

#2

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.

#3

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.

#4

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

#5

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

apt-get install php5-ldap

nobody click here