summaryrefslogtreecommitdiffstats
path: root/apps/federation
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-06-09 13:53:32 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-06-09 13:53:32 +0200
commitcf06b17df15d6de83d2893cbe08880bbd9dd5c2c (patch)
tree66625ac7e1bc1e496f6615f4612ffe58ef02f00c /apps/federation
parent90c1ec1c49798232c0c1303ccbddacac536b5768 (diff)
downloadnextcloud-server-cf06b17df15d6de83d2893cbe08880bbd9dd5c2c.tar.gz
nextcloud-server-cf06b17df15d6de83d2893cbe08880bbd9dd5c2c.zip
Use the correct realm for basic authentication - fixes #23427
Diffstat (limited to 'apps/federation')
-rw-r--r--apps/federation/lib/DAV/FedAuth.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/federation/lib/DAV/FedAuth.php b/apps/federation/lib/DAV/FedAuth.php
index bb1041adcdf..21c0d61487c 100644
--- a/apps/federation/lib/DAV/FedAuth.php
+++ b/apps/federation/lib/DAV/FedAuth.php
@@ -36,6 +36,10 @@ class FedAuth extends AbstractBasic {
public function __construct(DbHandler $db) {
$this->db = $db;
$this->principalPrefix = 'principals/system/';
+
+ // setup realm
+ $defaults = new \OC_Defaults();
+ $this->realm = $defaults->getName();
}
/**