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