示例#1
0
 /**
  * Fetches all existing TYPO3 users related to the given LDAP/AD users.
  *
  * @param array $ldapUsers List of LDAP/AD users
  * @return array
  */
 public function fetchTypo3Users($ldapUsers)
 {
     // Populate an array of TYPO3 users records corresponding to the LDAP users
     // If a given LDAP user has no associated user in TYPO3, a fresh record
     // will be created so that $ldapUsers[i] <=> $typo3Users[i]
     $typo3UserPid = Configuration::getPid($this->configuration['users']['mapping']);
     $typo3Users = Authentication::getTypo3Users($ldapUsers, $this->configuration['users']['mapping'], $this->userTable, $typo3UserPid);
     return $typo3Users;
 }