Exemple #1
0
 /**
  * check if the backend supports changing display names
  *
  * @return bool
  */
 public function canChangeDisplayName()
 {
     if ($this->config->getSystemValue('allow_user_to_change_display_name') === false) {
         return false;
     }
     return $this->backend->implementsActions(\OC\User\Backend::SET_DISPLAYNAME);
 }
 /**
  * checks whether a user is still existing in LDAP
  * @param string[] $user
  */
 private function checkUser($user)
 {
     if ($this->userBackend->userExistsOnLDAP($user['name'])) {
         //still available, all good
         return;
     }
     // TODO FIXME consolidate next line in DeletedUsersIndex
     // (impractical now, because of class dependencies)
     $this->ocConfig->setUserValue($user['name'], 'user_ldap', 'isDeleted', '1');
 }
Exemple #3
0
 protected function createUser($name, $password)
 {
     $this->userBackend->createUser($name, $password);
 }