You are here

function ldap_authentication_requirements in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 ldap_authentication/ldap_authentication.install \ldap_authentication_requirements()
  2. 8.2 ldap_authentication/ldap_authentication.install \ldap_authentication_requirements()
  3. 7.2 ldap_authentication/ldap_authentication.install \ldap_authentication_requirements()
  4. 7 ldap_authentication/ldap_authentication.install \ldap_authentication_requirements()

Implements hook_requirements().

File

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

Code

function ldap_authentication_requirements($phase) {
  $requirements = [];
  if ($phase != "install" && db_table_exists('ldapauth')) {
    $requirements['ldap_authentication_ldap_integration'] = [
      'title' => t('LDAP Integration LDAP Auth Upgrade Concern'),
      'severity' => REQUIREMENT_WARNING,
      'value' => NULL,
      'description' => t('Upgrade from Drupal 6 LDAP Auth to Drupal 7
      LDAP Authentication is not automatic.  LDAP Authentication will need to be configured by hand.
      Some harmless data will remain in the user.data field in the user table.  Records in
      the authmap table will cause conflicts and should be removed or changed to ldap_authentication
      as the module (see http://drupal.org/node/1183192).
      See http://drupal.org/node/1023016, http://drupal.org/node/1183192.
      This message will go away when the ldapauth database table is removed.'),
    ];
  }
  return $requirements;
}