Skip to content

Commit

Permalink
Merge pull request #10 from pv2b/patch-1
Browse files Browse the repository at this point in the history
Enable IdP to manage group memberships after initial user creation
  • Loading branch information
pitbulk authored Oct 14, 2019
2 parents 84c314d + a1305d6 commit 6161c73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions authsaml/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function __construct()

// $this->cando['external'] = true;

$this->cando['modGroups'] = true;
$this->cando['external'] = true;
$this->cando['logoff'] = true;
$this->success = true;
Expand Down
4 changes: 2 additions & 2 deletions authsaml/saml.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ public function modifyUser($username, $changes) {
$userinfo[$field] = $value;
}

$groups = join(',', $userinfo['grps']);
$groups = array_map('urlencode', $groups);
$groups = array_map('urlencode', $userinfo['grps']);
$groups = join(',', $groups);

$userline = join(':', array($newuser, $userinfo['name'], $userinfo['mail'], $groups))."\n";

Expand Down

0 comments on commit 6161c73

Please sign in to comment.