You are here

function ldap_authentication_update_7100 in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_authentication/ldap_authentication.install \ldap_authentication_update_7100()
  2. 7.2 ldap_authentication/ldap_authentication.install \ldap_authentication_update_7100()

ldap_authentication and ldap_sso. enable ldap_sso if sso was enabled in ldap_authentication previously

File

ldap_authentication/ldap_authentication.install, line 55
Install, update and uninstall functions for the LDAP authentication module.

Code

function ldap_authentication_update_7100() {

  // if sso is enabled in ldap authentication, enable module ldap_sso
  module_load_include('inc', 'ldap_servers', 'ldap_servers.functions');
  ldap_server_module_load_include('php', 'ldap_authentication', 'LdapAuthenticationConfAdmin.class');
  $sso_enabled = LdapAuthenticationConfAdmin::getSaveableProperty('ssoEnabled');
  if ($sso_enabled) {
    module_enable(array(
      'ldap_sso',
    ));
    return t('Enabled new LDAP SSO module if Single Sign on was previously enabled.  Code for LDAP Single Sign On was moved to new "LDAP SSO" included module.');
  }
}