You are here

function ldap_sso_update_8002 in LDAP Single Sign On 8

Same name and namespace in other branches
  1. 8.4 ldap_sso.install \ldap_sso_update_8002()

Sets server variable to REMOTE_USER as new default.

File

./ldap_sso.install, line 36
Update calls for ldap_sso.

Code

function ldap_sso_update_8002() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('ldap_sso.settings');
  $config
    ->set('ssoVariable', 'REMOTE_USER');
  $config
    ->save(TRUE);
}