You are here

function ldap_sso_update_8006 in LDAP Single Sign On 8

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

Remove unnecessary mod_auth declaration.

File

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

Code

function ldap_sso_update_8006() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('ldap_sso.settings');
  if ($config
    ->get('ldapImplementation') == 'mod_auth_kerb') {
    $config
      ->set('ssoSplitUserRealm', TRUE);
  }
  else {
    $config
      ->set('ssoSplitUserRealm', FALSE);
  }
  $config
    ->clear('ldapImplementation');
  $config
    ->save(TRUE);
}