Report any technical problems you discover and discuss solutions.

multiple authentication methods

Plus d'informations
il y a 12 ans 4 mois #1340 par bogaerbr
multiple authentication methods a été créé par bogaerbr
Is there a way to ask Xerte to authenticate using e.g. Static if the user could not be authenticated using LDAP?
I can authenticate students and staff with LDAP, but no guests staff at the university.
And since I can not add entries at the LDAP directory, I wish I could ask Xerte to authenticate using a second method if the first one failed.

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

Plus d'informations
il y a 12 ans 4 mois #1367 par julten
Réponse de julten sur le sujet multiple authentication methods
Yes, you can do this. In auth_config.php change the first bit of coe to look like this:

if ($static == true){
$xerte_toolkits_site->authentication_method = 'Static';
}else{
//$xerte_toolkits_site->authentication_method = 'Guest';
$xerte_toolkits_site->authentication_method = 'Ldap';
//$xerte_toolkits_site->authentication_method = 'Db';
//$xerte_toolkits_site->authentication_method = 'Static';
//$xerte_toolkits_site->authentication_method = "Moodle";
}

Then in library/Xerte/Authentication/Static.php, create a username ./ password in this bit:

/** Edit this list to your hearts content ... */
private $_users = array(

'osls_admin' => array("username" => "USERNAME", "password" => "PASSWORD", "firstname" => "OSLS", "surname" => "Admin"),

);

And then those uses can log in via management.php. We do it here. I think that's all you need to do. THe only slight drawback is having to get those users to login via management.php, rather than the normal /xertetoolkits index page.
Les utilisateur(s) suivant ont remercié: bogaerbr

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

Plus d'informations
il y a 12 ans 4 mois #1368 par bogaerbr
Réponse de bogaerbr sur le sujet multiple authentication methods
I tried your solution,

if ($static==true){
$xerte_toolkits_site->authentication_method = 'Static';
}else{
//$xerte_toolkits_site->authentication_method = 'Guest';
$xerte_toolkits_site->authentication_method = 'Ldap';
//$xerte_toolkits_site->authentication_method = 'Db';
//$xerte_toolkits_site->authentication_method = 'Static';
//$xerte_toolkits_site->authentication_method = "Moodle";
}

and added a 'static' user to the Static.php file as suggested,
But I could not log in as 'static' user through the management.php page.
Not even through the 'normal' login page.

Thanks for the suggestion,

Bruno Van Bogaert

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

Plus d'informations
il y a 12 ans 4 mois #1369 par julten
Réponse de julten sur le sujet multiple authentication methods
I've jsut dug up the old mail when this was discussed: try logging in at static.php.

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

Plus d'informations
il y a 12 ans 4 mois #1370 par bogaerbr
Réponse de bogaerbr sur le sujet multiple authentication methods
But there is no
static.php
under the root of xerte
??

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

Plus d'informations
il y a 12 ans 4 mois #1371 par julten
Réponse de julten sur le sujet multiple authentication methods
You need to move it to the root folder

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

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