LDAP: Remove duplicate definition of extldap_get_admin() - refs #4662

pull/4739/head
Yannick Warnier 2 years ago
parent 8c01738f83
commit e0751a7b70
  1. 10
      app/config/auth.conf.dist.php

@ -117,7 +117,7 @@ $extldap_user_correspondance = array(
'password' => 'userPassword', 'password' => 'userPassword',
'status' => '!5', // Forcing status to 5; To change this set 'status' => 'func' and implement an extldap_get_status($ldap_array) function 'status' => '!5', // Forcing status to 5; To change this set 'status' => 'func' and implement an extldap_get_status($ldap_array) function
'active' => '!1', // Forcing active to 1; To change this set 'status' => 'func' and implement an extldap_get_active($ldap_array) function 'active' => '!1', // Forcing active to 1; To change this set 'status' => 'func' and implement an extldap_get_active($ldap_array) function
'admin' => 'func' // Using the extldap_get_admin() function to check if user is an administrator based on some ldap user record value 'admin' => 'func' // Using the extldap_get_admin() function (defined in main/auth/external_login/ldap.inc.php) to check if user is an administrator based on some ldap user record value
/* Extras example /* Extras example
'extra' => array( 'extra' => array(
'title' => 'title', 'title' => 'title',
@ -134,14 +134,6 @@ if (!empty($ldapUserCorrespondance)) {
$extldap_user_correspondance = $ldapUserCorrespondance; $extldap_user_correspondance = $ldapUserCorrespondance;
} }
/**
* Example method to get whether the user is an admin or not. Please implement your logic inside.
*/
function extldap_get_admin($ldap_array)
{
return 0; // By default users comming from ldap are not Administrators
}
/** /**
* OpenID * OpenID
*/ */

Loading…
Cancel
Save