I was setting up another profile in my local machine to mirror an existing WAS 6.1 server setting which has application security authenticating with LDAP. When I try to hit the application in the new server I get the following exception
SECJ0129E: Authorization failed for testUser while invoking GET on default_host:LDAPTestApp/, Authorization failed, Not granted any of the required roles: tst
I checked a couple of forums and noticed that I had to update
Enterprise Applications > LDAPTestApp > Security role to user/group mapping and check All authenticated? checkbox.
But I get an error message when I apply this change
"Exception thrown in RequiredModelMBean while trying to invoke operation setApplicationInfo null"
Also, I notice that my Enterprise Application Project does not have ibm-application-bnd.xmi. Is this an issue ?
posted 4 years ago
I have fixed it, more of a hack. The issue is not with the server created but the EAR. When I copied over the Enterprise Application Project instead of creating a new one and adding the modules to this copied EAP it worked. This was because ibm-application-bnd.xmi was present and the admin console also showed All authenticated? checked.
This is a hack, is there a way to actually create a Enterprise Application Project and add the modules in and yet make the security work ?