View Issue Details

IDProjectCategoryView StatusLast Update
12879User patchesAdmin Toolspublic2017-11-09 12:57
ReporterboojtAssigned To 
PrioritynoneSeveritymajor 
Status newResolutionopen 
Product Version2.0 
Target VersionFixed in Version 
Summary12879: Core: LDAP authentication, Multiple bases ND
Description

separated by a semicolon (;) doesn't seem to work $usersearchbase doesn't take the string with separator (;)

\application\core\plugins\AuthLDAP\AuthLDAP.php ligne 499
We have to split the string and declare multiple connection

Steps To Reproduce

Field "Base DN for the user search operation. Multiple bases may be separated by a semicolon (;)" in AuthLDAP plugin :
OU=ADC,DC=dc,DC=fr;OU=EFG,DC=dc,DC=fr;

Additional Information

In AuthLDAP.php I replace from 499 to 501 by 499 to 519 :

        $dn = explode(";",$usersearchbase);

        // Match connection elements to count of dn elements
        for($x=0; $x < count($dn); $x++)
        {
            $conn[] = $ldapconn;
        }

        $dnsearchres = ldap_search($conn, $dn, $usersearchfilter, array($searchuserattribute));

        for($x=0; $x < count($dn); $x++)
        {
            $rescount[$x]=ldap_count_entries($ldapconn,$dnsearchres[$x]);
            if ($rescount[$x] == 1)
            {
                $userentry=ldap_get_entries($ldapconn, $dnsearchres[$x]);
                $userdn = $userentry[0]["dn"];
            }
        }

        if(!isset($userdn))
TagsNo tags attached.
Complete LimeSurvey version number (& build)170728

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2017-11-09 12:57 boojt New Issue