Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-10-12 10:50:13 +0300
committerJulius Härtl <jus@bitgrid.net>2021-10-21 14:13:01 +0300
commit763fa83e193ef40e912a6e144ef16fd62bbccea3 (patch)
tree0bb15eaf3f96c42c06ede0341384fe18f2ef56ea /lib
parentbd772aea44e0bf5f6cef5e878794e8b98e8206c1 (diff)
Use effective uid for autoprovisioning new users
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/SAMLController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php
index 02823acc..33be675f 100644
--- a/lib/Controller/SAMLController.php
+++ b/lib/Controller/SAMLController.php
@@ -148,8 +148,8 @@ class SAMLController extends Controller {
}
return;
}
-
$uid = $this->userData->getOriginalUid();
+ $uid = $this->userData->testEncodedObjectGUID($uid);
if(!$userExists && !$autoProvisioningAllowed) {
throw new NoUserFoundException('Auto provisioning not allowed and user ' . $uid . ' does not exist');
} elseif(!$userExists && $autoProvisioningAllowed) {