You are here

function ldap_authentication_requirements in Lightweight Directory Access Protocol (LDAP) 7

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. 8.3 ldap_authentication/ldap_authentication.install \ldap_authentication_requirements()
  4. 7.2 ldap_authentication/ldap_authentication.install \ldap_authentication_requirements()

Implements hook_requirements().

File

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

Code

function ldap_authentication_requirements($phase) {
  $requirements = array();
  if ($phase != "install" && db_table_exists('ldapauth')) {
    $requirements['ldap_authentication_ldap_integration']['title'] = t('LDAP Integration LDAP Auth Upgrade Concern');
    $requirements['ldap_authentication_ldap_integration']['severity'] = REQUIREMENT_WARNING;
    $requirements['ldap_authentication_ldap_integration']['value'] = NULL;
    $requirements['ldap_authentication_ldap_integration']['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.');
  }

  // check that ldapauth not installed.
  return $requirements;
}