Skip to content

Commit

Permalink
Admin: add config "extldap_config" that overwrites the auth.conf.php …
Browse files Browse the repository at this point in the history
…settings

BT#19295
  • Loading branch information
jmontoyaa committed Oct 20, 2021
1 parent e7be21c commit 578de0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/config/auth.conf.dist.php
Expand Up @@ -70,7 +70,10 @@
'user_search_import_all_users' => 'uid=*'
);


$ldapConfig = api_get_configuration_value('extldap_config');
if (!empty($ldapConfig)) {
$extldap_config = $ldapConfig;
}

/**
* Correspondance array between chamilo user info and ldap user info
Expand Down
3 changes: 3 additions & 0 deletions main/install/configuration.dist.php
Expand Up @@ -2003,6 +2003,9 @@
// Ckeditor settings.
//$_configuration['editor_settings'] = ['config' => ['youtube_responsive' => true]];

// Overwrites the app/config/auth.conf.php settings
//$_configuration['extldap_config'] = ['host' => '', 'port' => ''];

// KEEP THIS AT THE END
// -------- Custom DB changes
// Add user activation by confirmation email
Expand Down

0 comments on commit 578de0e

Please sign in to comment.