You are here

function ldap_servers_update_7209 in Lightweight Directory Access Protocol (LDAP) 7.2

Change mcrypt to openssl.

File

ldap_servers/ldap_servers.install, line 894
Install, update and uninstall functions for the LDAP API module.

Code

function ldap_servers_update_7209() {
  if (variable_get('ldap_servers_encryption') != LDAP_SERVERS_ENC_TYPE_CLEARTEXT) {
    variable_set('ldap_servers_encryption', LDAP_SERVERS_ENC_TYPE_OPENSSL);
    if (!extension_loaded('openssl')) {
      watchdog('ldap', 'Warning: OpenSSL missing, no alternative for encryption.');
    }
    return t('Encryption backend has changed, please re-enter your service account credentials.');
  }
}