Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Who has a working LDAP plugin working?

+1 vote
asked Mar 3, 2013 in Plugins by rayray519
Could really use some help getting the LDAP plugin working.

Please help.


2 Answers

+1 vote
answered Mar 6, 2013 by mbentley
edited Mar 13, 2013 by mbentley

I got it working on a local set up.  It turned out that my biggest issue was figuring out my proper LDAP login and the LDAP search strings.  I had to get the search string information from our IT department.  Once I told it the correct login, it worked well.  


My ldap-config.php looks something like:


// original  $ldap_search_strings = array( 'uid=USERNAME,ou=lala,ou=www,dc=example,dc=com', 'uid=USERNAME,ou=lala2,ou=www,dc=example,dc=com' );
$ldap_search_strings = array('CN=USERNAME,OU=Users,OU=Department1,OU=CompanyName,DC=intranet,DC=CompanyName,DC=com',
$ldap_hostname = 'ldap://SERVER_IP'; // use ldap:// for non ssl encrypted servers
$ldap_port = 389; // use 389 for non ssl encrypted servers


commented Apr 27, 2013 by rayray519
Also with the first part of the config, you leave the search_strings alone, correct?
commented Apr 29, 2013 by mbentley
No, the search_strings define your company LDAP.  For example, the one that I entered above will only work if you are logging in at "example.com".. You have to change this to work with your company settings.
0 votes
answered Apr 29, 2013 by mbentley
WARNING: The current LDAP settup only works with LDAP logins under 20 characters (including spaces).  When I set this up, I found that my account worked, but we had a lot of staff with longer LDAP logins.

At this point, I haven't had the time to track down how to enable longer logins, so I re-enabled the register button.