Loading...
 
Skip to main content

LDAP / Active directory


You are viewing a reply to LDAP and Binddn empty

Re: LDAP and Binddn empty

I fought my way through this last week, but I've been getting errors when I tried to post here.

No matter my preference settings, my Base DN was being blanked out. I am now running 4.1 with a patch to line 110 of lib/auth/ldap.php:

< if(isset($options$n) && !empty($options$n) && preg_match('#\s#',$options$n)==0) {


> if(isset($options$n) && !empty($options$n) ) {

That preg_match test causes any of the strings in the array to be dropped if they have an embedded space. I dropped that test because in our LDAP directory (really Active Directory) there are legitimate embedded spaces in our OU names.

I'm new here so I need to look before I leap, but I intend to submit this as a bug.