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 1 mois #2868 par tom
Réponse de tom sur le sujet Configure LDAPS authentication in Xerte 2.1
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!

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

Plus d'informations
il y a 11 ans 4 semaines #2885 par casglur
Réponse de casglur sur le sujet Configure LDAPS authentication in Xerte 2.1
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

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

Plus d'informations
il y a 11 ans 3 semaines - il y a 11 ans 3 semaines #2888 par tom
Réponse de tom sur le sujet Configure LDAPS authentication in Xerte 2.1
Did you also fill in the ldap details in the management.php page?
Dernière édition: il y a 11 ans 3 semaines par tom.

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

Plus d'informations
il y a 11 ans 3 semaines #2890 par rbrown
Réponse de rbrown sur le sujet Configure LDAPS authentication in Xerte 2.1
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]

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

Plus d'informations
il y a 11 ans 3 semaines - il y a 11 ans 3 semaines #2891 par tom
Réponse de tom sur le sujet Configure LDAPS authentication in Xerte 2.1
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:
Code:
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
Dernière édition: il y a 11 ans 3 semaines par tom.

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

Plus d'informations
il y a 11 ans 3 semaines - il y a 11 ans 3 semaines #2892 par rbrown
Réponse de rbrown sur le sujet Configure LDAPS authentication in Xerte 2.1
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
Dernière édition: il y a 11 ans 3 semaines par rbrown.

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

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