Report any technical problems you discover and discuss solutions.

multiple authentication methods

  • bogaerbr
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
12 jaren 4 maanden geleden #1340 door bogaerbr
multiple authentication methods werd gestart door 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.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 4 maanden geleden #1367 door julten
Beantwoord door julten in topic 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.
De volgende gebruiker (s) zei dank u: bogaerbr

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • bogaerbr
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
12 jaren 4 maanden geleden #1368 door bogaerbr
Beantwoord door bogaerbr in topic 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 4 maanden geleden #1369 door julten
Beantwoord door julten in topic multiple authentication methods
I've jsut dug up the old mail when this was discussed: try logging in at static.php.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • bogaerbr
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
12 jaren 4 maanden geleden #1370 door bogaerbr
Beantwoord door bogaerbr in topic multiple authentication methods
But there is no
static.php
under the root of xerte
??

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 4 maanden geleden #1371 door julten
Beantwoord door julten in topic multiple authentication methods
You need to move it to the root folder

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.228 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo