Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into wip
  • Loading branch information
bochoven committed Feb 13, 2020
2 parents 00cd9e1 + b0a76e8 commit 6a12713
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/lib/munkireport/AuthSaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ private function mapSamlAttrs($attrs)
}
}

// Make group names compliant
$this->_dirify($out['groups']);

// Check if we have a user
if( $this->debug() && ! $out['user'] )
{
Expand All @@ -259,6 +262,14 @@ private function mapSamlAttrs($attrs)
return $out;
}

// Replace comma with _
private function _dirify(Array &$array)
{
array_walk($array, function(&$value, $key){
$value = str_replace(',', '_', $value);
});
}

private function debug()
{
return isset($this->config['debug']) && $this->config['debug'] == true;
Expand Down

0 comments on commit 6a12713

Please sign in to comment.