You are here

function ldapdata_user in LDAP integration 6

Same name and namespace in other branches
  1. 5.2 ldapdata.module \ldapdata_user()
  2. 5 ldapdata.module \ldapdata_user()

Implements hook_user().

File

./ldapdata.module, line 93
ldapdata provides data maping against ldap server.

Code

function ldapdata_user($op, &$edit, &$account, $category = NULL) {

  // Only care about ldap authenticated users.
  if ($op != 'categories' && !isset($account->ldap_authentified)) {
    return;
  }
  switch ($op) {
    case 'categories':
      return _ldapdata_user_categories();
    case 'form':
      return _ldapdata_user_form($account, $category);
    case 'load':
      _ldapdata_user_load($account);
      break;
    case 'login':
      _ldapdata_user_login($account);
      break;
    case 'submit':
      _ldapdata_user_submit($edit, $account, $category);
      break;
    case 'view':
      return _ldapdata_user_view($account);
  }
}