upgrade
This commit is contained in:
22
main/auth/external_login/ldap_import_all_users.php
Normal file
22
main/auth/external_login/ldap_import_all_users.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/* For licensing terms, see /license.txt */
|
||||
/**
|
||||
* This script executes the importation of all users in the LDAP repository
|
||||
* into Chamilo.
|
||||
*
|
||||
* @package chamilo.auth.ldap
|
||||
*/
|
||||
/**
|
||||
* Init.
|
||||
*/
|
||||
if (PHP_SAPI != 'cli') {
|
||||
exit('For security reasons, this script can only be launched from cron or from the command line');
|
||||
}
|
||||
|
||||
require __DIR__.'/../../inc/global.inc.php';
|
||||
require __DIR__.'/ldap.inc.php';
|
||||
require __DIR__.'/../../../app/config/auth.conf.php';
|
||||
/**
|
||||
* Code execution.
|
||||
*/
|
||||
extldap_import_all_users();
|
||||
Reference in New Issue
Block a user