Saturday, September 6, 2014

How to secure the JNDI in weblogic Servers

We need to go to the server and access the link for the jndi. The jndi tree will show up in a new window.
Check the default roles and policies
By default, everyone has access to the JNDI
Remove the role
And then add the admin role. This will enable only the Admin user to have access to the JNDI
If we try to access the JNDI now without the Admin credentails, we get the following exceptions
javax.naming.NoPermissionException: User <anonymous> does not have permission on
StringJndiName to perform modify operation. [Root exception is javax.naming.NoP
ermissionException: User <anonymous> does not have permission on StringJndiName
to perform modify operation.]
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef
.java:348)

No comments:

Post a Comment