Open jbouzekri opened 4 years ago
However it seems that ajax calls to populate the page are done correctly :
It seems it is hardcoded in the platform role admin controler that it is not working with something else than super or jackrabbit :
private void processLDAPOrJDBCmode() {
final String url = GWT.getHostPageBaseURL() + "api/system/authentication-provider";
RequestBuilder executableTypesRequestBuilder = new RequestBuilder( RequestBuilder.GET, url );
executableTypesRequestBuilder.setHeader( "If-Modified-Since", "01 Jan 1970 00:00:00 GMT" );
executableTypesRequestBuilder.setHeader( "accept", "application/json" );
try {
executableTypesRequestBuilder.sendRequest( null, new RequestCallback() {
public void onError( Request request, Throwable exception ) {
}
public void onResponseReceived( Request request, Response response ) {
String resText = response.getText();
usingPentahoSecurity = resText.contains( "\"jackrabbit\"" ) || resText.contains( "\"super\"" );
userRolePermissions( usingPentahoSecurity );
}
} );
} catch ( RequestException e ) {
userRolePermissions( false );
}
}
We're facing the same issue in my team using Pentaho version 9.1.0.0 . We enable the SAML plugin's authorization provider by setting authorization.provider=saml
and also the saml.role.related.user.attribute.name
option with its corresponding value in our system. We can successfully login to the User Console with Administrator rights but the list of available roles in the Administration console is empty, and doesn't let us add new roles manually.
Did you manage to solve this issue @jbouzekri ?
Has anybody else found a solution to this?
@lukasged : I did not delve deeper into this issue as I assumed it is linked to the hardcoded values in the UserRolesAdminPanelController
. I am going to subscribe to notification on https://github.com/pentaho/pentaho-platform/issues/4841 to be aware of any change made by the core team.
@lukasged : I did not delve deeper into this issue as I assumed it is linked to the hardcoded values in the
UserRolesAdminPanelController
. I am going to subscribe to notification on pentaho/pentaho-platform#4841 to be aware of any change made by the core team.
Thanks for coming back to this issue @jbouzekri . Let's see if we get further info into this 🤞
The URL
/pentaho/api/ldap/config/getAttributeValues
returns a 404 if I am authenticated as Administrator using information from SAML withsaml.role.related.user.attribute.name
. So I am unable to add new roles.