Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.

Configure LDAPS authentication in Xerte 2.1

Plus d'informations
il y a 11 ans 3 semaines #2893 par tom
Réponse de tom sur le sujet Configure LDAPS authentication in Xerte 2.1
Hmm...

Ok, I added some debugging code to see what search filter is actually used, and I surrounded the filter with ().

Could you place the file in library/Xerte/Authentication, and see whether that improves things?

Fichier attaché :

Nom du fichier : Ldap_2015-07-14.zip
Taille du ficher :2 Ko
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 11 ans 3 semaines #2894 par rbrown
Réponse de rbrown sur le sujet Configure LDAPS authentication in Xerte 2.1
thanks again tom

Only difference I'm seeing in the log is the passowd is hashed

2015-07-14 11:17:34 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php71Valid login? mystaffnumber / *******

the rest remains unchanged
2015-07-14 11:17:34 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php90Running : SELECT * FROM ldap
2015-07-14 11:17:34 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php93Trying to authenticate against servername.uct.ac.za
2015-07-14 11:17:34 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php183Failed to query ldap serverBad search filter

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 11 ans 3 semaines #2895 par tom
Réponse de tom sur le sujet Configure LDAPS authentication in Xerte 2.1
I missed something there. The configuration changed after setting the server including the ldaps:

Did you choose a complete different server? It appears that the ldap_password is no longer set, so you're in a complete difefernt code branch then I thought.

There seems to be an inconsistency in the current code with respect to ldap_filter and ldap_filter_attr
Plase set filter to
Code:
cn=
and try again.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 11 ans 3 semaines #2896 par rbrown
Réponse de rbrown sur le sujet Configure LDAPS authentication in Xerte 2.1
sorry tom going back one post

I moved the debug line to line 183 (which is in the else statements)

the log now shows
2015-07-14 11:49:41 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php187Searched ou=uct,o=uct / 01378575

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 11 ans 3 semaines #2897 par tom
Réponse de tom sur le sujet Configure LDAPS authentication in Xerte 2.1
Now I lost you....

When the bind setting is not set, the ldap_filter is used, not ldap_filter_attr, and the filter should include the '=' caharacter.

You can also send me your version of Ldap.php, so that we are at least in synch again. (by pm to reijnders at to dot nl))

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.183 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo