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 #2868

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Ok, again:

1. Get the patch from this post: www.xerte.org.uk/index.php?option=com_ku...n&limitstart=30#2816
2. Install it in [xerte]/website_code/php/management

To enable debugging:

3. Install the patch found in www.xerte.org.uk/index.php?option=com_ku...n&limitstart=18#2804
4. Install it in libraries/Xerte/Authentication

DO NOT USE special.php. That file is only intended for the original poster!

Please Inloggen or Create an account to join the conversation.

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

  • casglur
  • casglur's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
Hi

Sorry for the delay in replying I've had to take care of another project, but am back on Xerte config again :)

Thanks for clarifying the steps again. I have completed the following steps:

I have installed the updated site_details_management.php into [xerte]/website_code/php/management

I have installed the updated Ldap.php into [xerte]/library/Xerte/Authentication

I have authentication set to LDAP in auth_config.php

I have restarted Apache

I have Tried and failed to login to Xerte with no error message displayed on the home page

What should I do next, please?

thanks

Please Inloggen or Create an account to join the conversation.

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

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Did you also fill in the ldap details in the management.php page?

Please Inloggen or Create an account to join the conversation.

Last edit: by tom.

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

  • rbrown
  • rbrown's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 0
Hi Tom

I've also
1) added site_details_management.php to /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/website_code/php
2) replaced the Ldap.php in /xertetoolkits/library/Xerte/Authentication with the one from the zip.

Now in my debug.log I see an array of the details of the Ldap setting (as they are in the db)

ie
2015-07-13 14:59:25 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php65LDAP config: Array
(
[0] => Array
(
[ldap_id] => 1
[ldap_knownname] => test
[ldap_host] => servername.xx.uct.ac.za
[ldap_port] => 636
[ldap_username] => CN=XXXXX,OU=Staff,OU=UCT,DC=wf,DC=uct,DC=ac,DC=za
[ldap_password] => passwordhere
[ldap_basedn] => OU=Staff,OU=UCT,DC=wf,DC=uct,DC=ac,DC=za
[ldap_filter] =>
[ldap_filter_attr] => cn
)

and then the failed to bind error
2015-07-13 14:59:25 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php140Failed to bind to ldap server- perhaps the dn(ldap_username) or password are incorrect? [to make anonymous this post I've replaced the specific ldap_username with the descriptor]

Please Inloggen or Create an account to join the conversation.

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

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
The patches are implemented in all versions, so no need to get the files from here, but just use an installer package from the community website or one of the update packages.

The error suggests that the bind username and bind password do not match.

However, since you are using ldaps (port 636) youmicht want to try setting the host to:
ldaps://servername.xx.uct.ac.za

If that doesn't help, please see some more suggestions here: php.net/manual/en/function.ldap-bind.php

Please Inloggen or Create an account to join the conversation.

Last edit: by tom.

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

  • rbrown
  • rbrown's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 0
Thanks Tom

I've change the auth server that I'm pointing at and the bind now seems to work however I still get

2015-07-14 09:30:18 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php71Valid login? myloginstaffnumber / myloginpasswd
2015-07-14 09:30:18 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php90Running : SELECT * FROM ldap
2015-07-14 09:30:18 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php93Trying to authenticate against servername.uct.ac.za
2015-07-14 09:30:18 /srv/www/vhosts/xerte.uct.ac.za/xertetoolkits/library/Xerte/Authentication/Ldap.php146Failed to query ldap serverBad search filter

I'm tried cn in [ldap_filter] but same result

which is odd because when I run
ldapsearch -x -H ldap://samesevername.uct.ac.za cn=mystaffnumber I get all my details

Please Inloggen or Create an account to join the conversation.

Last edit: by rbrown.
Time to create page: 0.053 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search