- Posts: 4
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
 :
: Please Log in to join the conversation.
 
                                 
        Please Log in to join the conversation.
 
                                 
        Please Log in to join the conversation.
I check php ldap module is enbable on the docker.PHP warning
ldap_search(): Search: No such object
/var/www/html/application/core/plugins/AuthLDAP/AuthLDAP.php(524)
512 ldap_close($ldapconn); // all done? close connection
513 return;
514 }
515 // Now prepare the search fitler
516 if ($extrauserfilter != "") {
517 $usersearchfilter = "(&$searchuserattribute=$username)$extrauserfilter)";
518 } else {
519 $usersearchfilter = "($searchuserattribute=$username)";
520 }
521 // Search for the user
522 $userentry = false;
523 foreach (explode(";", $usersearchbase) as $usb) {
524 $dnsearchres = ldap_search($ldapconn, $usb, $usersearchfilter, array($searchuserattribute));
525 $rescount = ldap_count_entries($ldapconn, $dnsearchres);
526 if ($rescount == 1) {
527 $userentry = ldap_get_entries($ldapconn, $dnsearchres);
528 $userdn = $userentry[0]["dn"];
529 }
530 }
531 if (!$userentry) {
532 // if no entry or more than one entry returned
533 // then deny authentication
534 $this->setAuthFailure(self::ERROR_USERNAME_INVALID);
535 ldap_close($ldapconn); // all done? close connection
536 return;
Stack Trace
#0
– /var/www/html/application/core/plugins/AuthLDAP/AuthLDAP.php(524): ldap_search(LDAP\Connection, "CN=LIMESURVEY,CN=APPLICATIONS,CN=GROUPES,CN=SUBLOCAL,DC=DOMAINE,DC=fr", "(sAMAccountName=formation01)", array("sAMAccountName"))
519 $usersearchfilter = "($searchuserattribute=$username)";
520 }
521 // Search for the user
522 $userentry = false;
523 foreach (explode(";", $usersearchbase) as $usb) {
524 $dnsearchres = ldap_search($ldapconn, $usb, $usersearchfilter, array($searchuserattribute));
525 $rescount = ldap_count_entries($ldapconn, $dnsearchres);
526 if ($rescount == 1) {
527 $userentry = ldap_get_entries($ldapconn, $dnsearchres);
528 $userdn = $userentry[0]["dn"];
529 }
#1
unknown(0): AuthLDAP->newUserSession()
#2
– /var/www/html/application/libraries/PluginManager/PluginManager.php(269): call_user_func(array(AuthLDAP, "newUserSession"))
264 if (
265 !$event->isStopped()
266 && (empty($target) || in_array(get_class($subscription[0]), $target))
267 ) {
268 $subscription[0]->setEvent($event);
269 call_user_func($subscription);
270 }
271 }
272 }
273
274 return $event;
#3
– /var/www/html/application/core/LSUserIdentity.php(72): LimeSurvey\PluginManager\PluginManager->dispatchEvent(LimeSurvey\PluginManager\PluginEvent)
67 $result->setError(self::ERROR_UNKNOWN_HANDLER);
68 } else {
69 // Delegate actual authentication to plugin
70 $authEvent = new PluginEvent('newUserSession', $this); // TODO: rename the plugin function authenticate()
71 $authEvent->set('identity', $this);
72 App()->getPluginManager()->dispatchEvent($authEvent);
73 $pluginResult = $authEvent->get('result');
74 if ($pluginResult instanceof LSAuthResult) {
75 $result = $pluginResult;
76 } else {
77 $result->setError(self::ERROR_UNKNOWN_IDENTITY);
Please Log in to join the conversation.
 
                                 
        Please Log in to join the conversation.
Please Log in to join the conversation.
 
                                 
         
    Please Log in to join the conversation.