add version migration of sabredav from 1.8.1 to 4.0.3 and updated files where it is used

This commit is contained in:
Ivymaster
2026-06-30 13:59:36 +02:00
parent ac5478f176
commit 5499c522cb
5 changed files with 83 additions and 50 deletions
+13
View File
@@ -25,12 +25,25 @@ require_once(dirname(__FILE__).'/../include/functions.inc.php');
class myauth extends \Sabre\DAV\Auth\Backend\AbstractBasic
{
protected $currentUser = null;
function validateUserPass($username, $password)
{
if(checkldapuser($username,$password))
{
$this->currentUser = $username;
return true;
}
else
{
$this->currentUser = null;
return false;
}
}
public function getCurrentUser()
{
return $this->currentUser;
}
}
?>