Community Documentation

Common Use Cases, Issues, Error Messages, and Solutions

Last updated February 26, 2013. Created by johnbarclay on February 18, 2011.
Edited by nerdcore. Log in to edit this page.

As this page grows, it can be broken into multiple pages. For now just keep adding use cases and how you confligured ldap to accomplish them; bugs/problems you've had to resolve, etc.

No LDAP Extension is loaded for PHP

Signifies the php ldap extension is not enabled. Use the same steps you would to install any php extension. If it is available with the PHP version you installed, it is simply a matter of oncommenting the ldap link in the php.ini file. e.g. extension=php_ldap.dll for windows.

Need to use LDAPS

Some ldap servers require ldaps. Make sure to do the following:

Need to use Start TLS

Error Messages and Warnings

  • "Possible invalid format for ... 'The format may be correct for your ldap, but please double check.". This warning is given when an ldap attribute name (cn, dn, mail, etc.) is checked to be within ldap standards. Active Directory and other LDAP implementations commonly break these standards, so your attribute name may be correct and still get this error.
  • Could Not start TLS errors. Could not start TLS. (Error -11: Connect error).
    Warning: ldap_start_tls() [function.ldap-start-tls]: Unable to start TLS: Connect error in ...
    These are commonly certificate or open ldap configuration problems. Here are some debugging steps:

Page status

About this page

Drupal version
Drupal 7.x
Audience
Programmers, Site administrators
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here