diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/RESTProxy.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/RESTProxy.pm index 9ff48d440..7b1fe653d 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/RESTProxy.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/RESTProxy.pm @@ -49,6 +49,11 @@ sub getUser { $self->conf->{proxyAuthServiceChoiceValue} ) : () ), + ( + $self->conf->{impersonationRule} && $req->param('spoofId') + ? ( spoofId => $req->param('spoofId') ) + : () + ) } ); unless ( $resp->is_success ) {