1a1a3b679SAndreas Boehler<?php 2a1a3b679SAndreas Boehler 3cb71a62aSAndreas Boehler/** 4cb71a62aSAndreas Boehler * DokuWiki SabreDAV Auth Backend 5cb71a62aSAndreas Boehler * 6cb71a62aSAndreas Boehler * Check a user ID / password combo against DokuWiki's auth system 7cb71a62aSAndreas Boehler */ 8cb71a62aSAndreas Boehler 9a1a3b679SAndreas Boehlerclass DokuWikiSabreAuthBackend extends Sabre\DAV\Auth\Backend\AbstractBasic 10a1a3b679SAndreas Boehler{ 11a1a3b679SAndreas Boehler protected function validateUserPass($username, $password) 12a1a3b679SAndreas Boehler { 13a1a3b679SAndreas Boehler global $auth; 14*21d04f73SAndreas Boehler global $conf; 15*21d04f73SAndreas Boehler $ret = $auth->checkPass($username, $password); 16*21d04f73SAndreas Boehler if($conf['allowdebug']) 17*21d04f73SAndreas Boehler { 18*21d04f73SAndreas Boehler dbglog('---- DAVCAL authBackendDokuwiki.php init'); 19*21d04f73SAndreas Boehler dbglog('checkPass called for username '.$username.' with result '.$ret); 20*21d04f73SAndreas Boehler } 21*21d04f73SAndreas Boehler return $ret; 22a1a3b679SAndreas Boehler } 23a1a3b679SAndreas Boehler} 24