From c75df3adfbafcc35e408e3c036b4e40a5e6be0ae Mon Sep 17 00:00:00 2001 From: Evert Pot Date: Thu, 18 Feb 2016 22:23:30 -0500 Subject: [PATCH] The authentication realm was not correctly set. Fix #457 --- CHANGELOG.md | 6 ++++++ Core/Frameworks/Baikal/Core/Server.php | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a675c2f..73f6a55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ ChangeLog ========= +0.3.3 (2016-02-18) +----------------- + +* #457: The realm was not correctly set from configuration for Digest auth. + + 0.3.2 (2016-02-16) ------------------ diff --git a/Core/Frameworks/Baikal/Core/Server.php b/Core/Frameworks/Baikal/Core/Server.php index 7abe24b..2de1e14 100644 --- a/Core/Frameworks/Baikal/Core/Server.php +++ b/Core/Frameworks/Baikal/Core/Server.php @@ -133,7 +133,8 @@ class Server { if ($this->authType === 'Basic') { $authBackend = new \Baikal\Core\PDOBasicAuth($this->pdo, $this->authRealm); } else { - $authBackend = new \Sabre\DAV\Auth\Backend\PDO($this->pdo, $this->authRealm); + $authBackend = new \Sabre\DAV\Auth\Backend\PDO($this->pdo); + $authBackend->setRealm($this->authRealm); } $principalBackend = new \Sabre\DAVACL\PrincipalBackend\PDO($this->pdo);