httpRequest->getRawServerValue('REMOTE_USER'); if (is_null($remoteUser)) { throw new Sabre_DAV_Exception('We did not receive the $_SERVER[REMOTE_USER] property. This means that apache might have been misconfigured'); } $this->remoteUser = $remoteUser; return true; } /** * Returns information about the currently logged in user. * * If nobody is currently logged in, this method should return null. * * @return array|null */ public function getCurrentUser() { return array( 'uri' => 'principals/' . $this->remoteUser, ); } /** * Returns the full list of users. * * This method must at least return a uri for each user. * * It is optional to implement this. * * @return array */ public function getUsers() { return array($this->getCurrentUser()); } }