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

Configure LDAPS authentication in Xerte 2.1

More
11 years 2 weeks ago #2893 by tom
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?

File Attachment:

File Name: Ldap_2015-07-14.zip
File Size:2 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
11 years 2 weeks ago #2894 by rbrown
Replied by rbrown on topic 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

Please Log in or Create an account to join the conversation.

More
11 years 2 weeks ago #2895 by tom
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.

Please Log in or Create an account to join the conversation.

More
11 years 2 weeks ago #2896 by rbrown
Replied by rbrown on topic 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

Please Log in or Create an account to join the conversation.

More
11 years 2 weeks ago #2897 by tom
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))

Please Log in or Create an account to join the conversation.

Time to create page: 0.163 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo