Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Questions on getting Xerte Toolkits installed on your server and questions about authentication and user logins.

TOPIC:

Configure LDAPS authentication in Xerte 2.1 9 years 4 months ago #2893

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
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 Inloggen or Create an account to join the conversation.

Configure LDAPS authentication in Xerte 2.1 9 years 4 months ago #2894

  • rbrown
  • rbrown's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 0
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 Inloggen or Create an account to join the conversation.

Configure LDAPS authentication in Xerte 2.1 9 years 4 months ago #2895

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
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
cn=
and try again.

Please Inloggen or Create an account to join the conversation.

Configure LDAPS authentication in Xerte 2.1 9 years 4 months ago #2896

  • rbrown
  • rbrown's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 0
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 Inloggen or Create an account to join the conversation.

Configure LDAPS authentication in Xerte 2.1 9 years 4 months ago #2897

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
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 Inloggen or Create an account to join the conversation.

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

Search