Backtrace: 0 /srv/www/vhosts/box/www/module.php:180 (N/A) Caused by: Exception: 'replacement' must be set if '%replace' is not set Backtrace: 7 /srv/www/vhosts/box/modules/core/lib/Auth/Process/AttributeAlter.php:108 (sspmod_core_Auth_Process_AttributeAlter::process) 6 /srv/www/vhosts/box/lib/SimpleSAML/Auth/ProcessingChain.php:195 (SimpleSAML_Auth_ProcessingChain::processState) 5 /srv/www/vhosts/box/lib/SimpleSAML/IdP.php:310 (SimpleSAML_IdP::postAuth) 4 /srv/www/vhosts/box/lib/SimpleSAML/Auth/Default.php:126 (SimpleSAML_Auth_Default::loginCompleted) 3 /srv/www/vhosts/box/lib/SimpleSAML/Auth/Source.php:120 (SimpleSAML_Auth_Source::completeAuth) 2 /srv/www/vhosts/box/modules/core/lib/Auth/UserPassBase.php:190 (sspmod_core_Auth_UserPassBase::handleLogin) 1 /srv/www/vhosts/box/modules/core/www/loginuserpass.php:48 (require) 0 /srv/www/vhosts/box/www/module.php:135 (N/A)
ibm-allGroups |
|
groups |
|
My groups DSE's are all in the same OU, and it does only catch one value in the array.
But the result looks like this:
ibm-allGroups
- cn=wcmadmins,ou=groups,o=EXAMPLE
- cn=lcadmins,ou=groups,O=EXAMPLE
- cn=IT Staff,ou=groups,O=EXAMPLE
groups
- cn=wcmadmins,ou=groups,o=EXAMPLE
- lcadmins
- cn=IT Staff,ou=groups,O=EXAMPLE
On Sunday, January 11, 2015 at 11:48:55 AM UTC+1, Peter Schober wrote:* Peter Schober <peter....@univie.ac.at> [2015-01-11 11:45]:
> * Valdemar Lemche <vald...@lemche.net> [2015-01-10 23:40]:
> > I'm trying the suggested solution. However in my "groups" attribute
> > is a multi-value attribute, and only one of the values are altered.
>
> If the AttributeAlter indeed doesn't work with multiple attribute
> values (I don't know whether that's the case) someone should probaly
> fix that.
Note that back in 2012, when the thread you replied to was current,
Dick already wrote this:
* Dick Visser <vis...@terena.org> [2012-08-30 17:18]:
> I just checked and it does work on multivalued attributes.
So maybe your filter is off, or the data doesn't match what you
expect it to be?
-peter
--
You received this message because you are subscribed to the Google Groups "simpleSAMLphp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simplesamlph...@googlegroups.com.
Visit this group at http://groups.google.com/group/simplesamlphp.
For more options, visit https://groups.google.com/d/optout.
'pattern' => '/^CN=(\X*?),OU=(\X+)/',
'replacement' => '\\1',