Cannot get default-realm value for jazn home instance when running ossoca.jar for WNA setup in HA env (Doc ID 356027.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle9iAS Single Sign-On - Version: 10.1.2.0.0 to 10.1.2.0.2
This problem can occur on any platform.

Symptoms

This issue happens  when you try to setup Windows Native Authentication for Identity Management.

The AS20G 10.1.2.x Infrastructure Identity Management is setup in a Cluster environement and High Availability environment using a Virtual HostName.

When running ossoca.jar command you would get the following error:

bash-2.03$ pwd
/u01/app/oracle/product/im2/jdk/bin
bash-2.03$ java -jar $ORACLE_HOME/sso/lib/ossoca.jar wna -mode sso -oh $ORACLE_HOME -ad_realm RMSC-AD.ORCL -kdc_host_port oaly-us.us.oracle.com:88 -verbose
Parameters passed to ssoca : param0:wna param1:-mode param2:sso param3:-oh param4:/u01/app/oracle/product/im2 param5:-ad_realm param6:RMSC-AD.ORCL param7:-kdc_host_port param8:oaly-us.us.oracle.com:88 param9:-verbose
Retrieved Single Sign-On hostname as oaly-linux.us.oracle.com
Retrieved Oracle Internet Directory information as ldap://oaly-linux.us.oracle.com:3000
Setting up DCM context...
Exception occured.
oracle.ias.sysmgmt.exception.MissingAttributeException: Base Exception:
An expected attribute is missing from an entity.
Resolution:
Please check metadata or code base.
        at oracle.ias.sysmgmt.entity.Entity.getAttribute(Unknown Source)
        at oracle.ias.sysmgmt.entity.Entity.getValue(Unknown Source)
        at oracle.ias.sysmgmt.smi.SMIEntityWrapper.getValue(Unknown Source)
        at oracle.ias.sysmgmt.smi.SMIEntityWrapper.getValueAsString(Unknown Source)
        at oracle.security.sso.IMWNAConfig.init(IMWNAConfig.java:246)
        at oracle.security.sso.IMWNAConfig.work(IMWNAConfig.java:60)
        at oracle.security.sso.SSOConfigAssistant.wnaConfig(SSOConfigAssistant.java:243)
        at oracle.security.sso.SSOConfigAssistant.main(SSOConfigAssistant.java:218)
Cannot get default-realm value for jazn home instance.
Please correct the exception reported above and try again.
WNA Config Tool failed.
bash-2.03$

It is trying to find the default realm from $ORACLE_HOME/j2ee/home/config/jazn.xml. 

When you check the file jazn.xml from the following directory, you will see that it does not have the right entries that would include the realm. 

               $ORACLE_HOME/j2ee/home/config/jazn.xml. 

Here is an example of the existing default jazn.xml.  As a result the ossoca.jar command failed as shown above.

<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
<!DOCTYPE jazn PUBLIC "JAZN Config" "http://xmlns.oracle.com/ias/dtds/jazn-9_04.
dtd">
<jazn provider="XML" location="./jazn-data.xml"/>
<!--
<jazn provider="LDAP" location="ldap://myoid.us.oracle.com:389" />
-->
~

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms