Saturday, January 14, 2012

[WSO2 Governance Registry ] "RemoteRegistry" API

Diagram 1.0














Problem:

I had deployed WSO2 Governance Registry on Web Logic Application server as in the above diagram. After I tried to access the repository using the RemoteRegistry API.
But it failed to authenticate the remote client.

[java] Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Unauthorized
     [java]     at org.wso2.carbon.registry.app.RemoteRegistry.get(RemoteRegistry.java:193)
     [java]     at org.wso2.carbon.registry.app.RemoteRegistryService.(RemoteRegistryService.java:124)
     [java]     ... 4 more
     [java] Java Result: 1
 


Solution:

When the web application using a LDAP server other than Web Logic Server's embedded LDAP server, we need to change the default security configurations in Web Logic domain.

1) Open the config.xml file of WL domain.
     <DOMAN>config/config.xml
2) Add the following tag in to <security-configuration>.

  <enforce-valid-basic-auth-credentials>false</enforce-valid-basic-auth-credentials>