You are here

function ldap_user_provision_to_drupal in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_user/ldap_user.module \ldap_user_provision_to_drupal()

api function for ldap associated user provisioning note: does no checking if synching is enabled or configured for a given context

File

ldap_user/ldap_user.module, line 729
Module for the LDAP User Entity

Code

function ldap_user_provision_to_drupal($ldap_user, $user_edit = array()) {
  $sid = $ldap_user['sid'];
  $ldap_user_conf = ldap_user_conf();
  $account = NULL;
  $ldap_user_conf
    ->provisionDrupalAccount($account, $user_edit, $ldap_user, TRUE);
}