0 Replies Latest reply: Feb 17, 2009 7:06 AM by 685542 RSS

    OID and OCMS integration

    685542
      Hi,
           Can anyone help me to integrate OID(10.1.2) with OCMS(10.1.3.4). I refered following documents but still facing few issues.

      http://download.oracle.com/docs/cd/B32110_01/ocms.1013/b31497/oid.htm
      http://download.oracle.com/docs/cd/E12529_01/doc.1013/e10292/oid.htm


      securityservice > ejb-jar.xml
           <!-- BEGIN OF MY LDAP PROVIDER CONFIGURATION -->
           <env-entry>
           <description><![CDATA[LDAP Admin User]]></description>
           <env-entry-name>java.naming.security.principal</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[cn=orcladmin,cn=Users,dc=oracle,dc=local]]></env-entry-value>
           </env-entry>
           <env-entry>
           <description><![CDATA[LDAP Admin User Credentials]]></description>
           <env-entry-name>java.naming.security.credentials</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[!password]]></env-entry-value>
           </env-entry>
           <env-entry>
           <description><![CDATA[LDAP Provider URL]]></description>
           <env-entry-name>java.naming.provider.url</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[ldap://<IP>:<Port>]]></env-entry-value>
           </env-entry>
           <env-entry>
           <description><![CDATA[Security Protocol (e.g. ssl)]]></description>
           <env-entry-name>java.naming.security.protocol</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[ssl]]></env-entry-value>
           </env-entry>
           <env-entry>
           <env-entry-name>SecurityDAOImpl</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[oracle.sdp.securityservice.dao.ldap.SecurityDAOImpl]]>
           </env-entry-value>
           </env-entry>
           <!-- END OF MY LDAP PROVIDER CONFIGURATION -->


      userservice > ejb-jar.xml
      <!-- BEGIN OF MY LDAP CONFIGURATION -->

           <env-entry>
           <description><![CDATA[LDAP Admin User]]></description>
           <env-entry-name>java.naming.security.principal</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[cn=orcladmin,cn=Users,dc=oracle,dc=local]]></env-entry-value>
           </env-entry>
           <env-entry>
           <description><![CDATA[LDAP Admin User Credentials]]></description>
           <env-entry-name>java.naming.security.credentials</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[password]]></env-entry-value>
           </env-entry>
           <env-entry>
           <description><![CDATA[LDAP Provider URL]]></description>
           <env-entry-name>java.naming.provider.url</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[ldap://<IP>:<Port>]]></env-entry-value>
           </env-entry>
           <env-entry>
           <description><![CDATA[The LDAP user attribute containing the user's SIP URI.]]></description>
           <env-entry-name>SipUriLdapAttribute</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[mail]]></env-entry-value>
           </env-entry>
           <env-entry>
           <description><![CDATA[Security Protocol (e.g. ssl)]]></description>
           <env-entry-name>java.naming.security.protocol</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[ssl]]></env-entry-value>
           </env-entry>
           <env-entry>
           <env-entry-name>UserDAOImpl</env-entry-name>
           <env-entry-type>java.lang.String</env-entry-type>
           <env-entry-value><![CDATA[oracle.sdp.userservice.dao.ldap.UserDAOImpl]]>
           </env-entry-value>
           </env-entry>


      <!-- END OF MY LDAP CONFIGURATION -->



      Exception Log > trace.log

      2009/02/17 15:16:55.940 +0500 T [AuthUtil](SipThread-45) AuthHeader :Digest username="saqib", realm="oracle.local", nonce="MTIzNDg2NjEwNjkyNTg3NWExYmIwNzM3MWJkNjM3NWY4NWU2MzgxZGU4YmQ3", uri="sip:oracle.local", qop=auth, nc=00000001, cnonce="0E2C384A", response="51bf0df70904dfe70f2018877b5064bc", opaque="9b12109e367d164c9e0b060c9233e36e"
      2009/02/17 15:16:55.940 +0500 T [AuthUtil](SipThread-45) AuthHeader :Digest username="saqib", realm="oracle.local", nonce="MTIzNDg2NjEwNjkyNTg3NWExYmIwNzM3MWJkNjM3NWY4NWU2MzgxZGU4YmQ3", uri="sip:oracle.local", qop=auth, nc=00000001, cnonce="0E2C384A", response="51bf0df70904dfe70f2018877b5064bc", opaque="9b12109e367d164c9e0b060c9233e36e"
      2009/02/17 15:16:56.222 +0500 T [AbstractLoginModule](SipThread-45) cl 'proxyregistrar.web.proxyregistrarssr-10.1.3.4.0:0.0.0', cl hash '14225862'
      2009/02/17 15:16:56.222 +0500 T [AbstractLoginModule](SipThread-45) attempt the authentication, callback for the username and pwd
      2009/02/17 15:16:56.222 +0500 T [SecurityFactory](SipThread-45) cl 'proxyregistrar.web.proxyregistrarssr-10.1.3.4.0:0.0.0', cl hash '14225862'
      2009/02/17 15:16:56.440 +0500 T [SecurityDAOImpl](SipThread-45) No static verifier LDAP attribute was provided! Defaulting to dynamic verifier configuration
      2009/02/17 15:16:56.440 +0500 T [SecurityDAOImpl](SipThread-45) No user filter was provided!
      2009/02/17 15:16:56.440 +0500 T [SecurityServiceBean](SipThread-45) java:comp/env/UserDAOImpl not found in SecurityService[[
      javax.naming.NameNotFoundException: java:comp/env/UserDAOImpl not found in SecurityService
           at com.oracle.naming.J2EEContext.getSubContext(J2EEContext.java:256)
           at com.oracle.naming.J2EEContext.lookup(J2EEContext.java:203)
           at com.evermind.server.ApplicationContext.lookupInJavaContext(ApplicationContext.java:307)
           at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:231)
           at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:196)
           at javax.naming.InitialContext.lookup(InitialContext.java:351)
           at oracle.sdp.securityservice.impl.SecurityServiceBean.setSessionContext(SecurityServiceBean.java:137)
           at com.evermind.server.ejb.interceptor.joinpoint.SessionLifecycle$SetSessionContextJoinPointImpl.invoke(SessionLifecycle.java:17)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
           at com.evermind.server.ejb.LifecycleManager.invokeLifecycleMethod(LifecycleManager.java:262)
           at com.evermind.server.ejb.LifecycleManager.setContext(LifecycleManager.java:187)
           at com.evermind.server.ejb.StatelessSessionBeanPool.createContextImpl(StatelessSessionBeanPool.java:39)
           at com.evermind.server.ejb.BeanPool.createContext(BeanPool.java:418)
           at com.evermind.server.ejb.BeanPool.allocateContext(BeanPool.java:244)
           at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:25)
           at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
           at SecurityService_LocalProxy_4gi83jd.getAccountStatus(Unknown Source)
           at oracle.sdp.ocmsloginmodule.OCMSLoginModule.preAttemptAuthentication(OCMSLoginModule.java:115)
           at oracle.sdp.securityframework.loginmodule.AbstractLoginModule.authenticate(AbstractLoginModule.java:445)
           at oracle.sdp.securityframework.loginmodule.AbstractLoginModule.login(AbstractLoginModule.java:338)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
           at oracle.sdp.sipservletengine.SecurityInterceptor.doRequest(SecurityInterceptor.java:217)
           at oracle.sdp.sipservletengine.SecurityInterceptor.invoke(SecurityInterceptor.java:150)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
           at oracle.sdp.sipservletcontainer.interceptors.Oc4jApplicationContextInterceptor.invoke(Oc4jApplicationContextInterceptor.java:68)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
           at $Proxy20.service(Unknown Source)
           at oracle.sdp.sipservletengine.SipServletInvoker.invokeServlet(SipServletInvoker.java:256)
           at oracle.sdp.sipservletengine.SipServletInvoker.processRequest(SipServletInvoker.java:223)
           at oracle.sdp.sipcoreframework.impl.SipListenerImpl.processRequest(SipListenerImpl.java:78)
           at oracle.sdp.sipstack.javax.sip.executor.RequestEventNotifier.notifyListener(RequestEventNotifier.java:31)
           at oracle.sdp.sipstack.javax.sip.executor.EventNotifier.run(EventNotifier.java:62)
           at oracle.sdp.sipstack.javax.sip.executor.impl.NotifierEvent.run(NotifierEvent.java:42)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
           at java.lang.Thread.run(Thread.java:595)

      ]]
      2009/02/17 15:16:56.440 +0500 T [AbstractLoginModule](SipThread-45) Aborting class oracle.sdp.ocmsloginmodule.OCMSLoginModule
      2009/02/17 15:16:56.456 +0500 T [SecurityInterceptor](SipThread-45) Login faild due to: javax.ejb.EJBException: Could not lookup DAO; nested exception is: javax.naming.NameNotFoundException: java:comp/env/UserDAOImpl not found in SecurityService
      [[
      javax.naming.NameNotFoundException: java:comp/env/UserDAOImpl not found in SecurityService
           at com.oracle.naming.J2EEContext.getSubContext(J2EEContext.java:256)
           at com.oracle.naming.J2EEContext.lookup(J2EEContext.java:203)
           at com.evermind.server.ApplicationContext.lookupInJavaContext(ApplicationContext.java:307)
           at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:231)
           at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:196)
           at javax.naming.InitialContext.lookup(InitialContext.java:351)
           at oracle.sdp.securityservice.impl.SecurityServiceBean.setSessionContext(SecurityServiceBean.java:137)
           at com.evermind.server.ejb.interceptor.joinpoint.SessionLifecycle$SetSessionContextJoinPointImpl.invoke(SessionLifecycle.java:17)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
           at com.evermind.server.ejb.LifecycleManager.invokeLifecycleMethod(LifecycleManager.java:262)
           at com.evermind.server.ejb.LifecycleManager.setContext(LifecycleManager.java:187)
           at com.evermind.server.ejb.StatelessSessionBeanPool.createContextImpl(StatelessSessionBeanPool.java:39)
           at com.evermind.server.ejb.BeanPool.createContext(BeanPool.java:418)
           at com.evermind.server.ejb.BeanPool.allocateContext(BeanPool.java:244)
           at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:25)
           at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
           at SecurityService_LocalProxy_4gi83jd.getAccountStatus(Unknown Source)
           at oracle.sdp.ocmsloginmodule.OCMSLoginModule.preAttemptAuthentication(OCMSLoginModule.java:115)
           at oracle.sdp.securityframework.loginmodule.AbstractLoginModule.authenticate(AbstractLoginModule.java:445)
           at oracle.sdp.securityframework.loginmodule.AbstractLoginModule.login(AbstractLoginModule.java:338)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
           at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
           at oracle.sdp.sipservletengine.SecurityInterceptor.doRequest(SecurityInterceptor.java:217)
           at oracle.sdp.sipservletengine.SecurityInterceptor.invoke(SecurityInterceptor.java:150)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
           at oracle.sdp.sipservletcontainer.interceptors.Oc4jApplicationContextInterceptor.invoke(Oc4jApplicationContextInterceptor.java:68)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
           at $Proxy20.service(Unknown Source)
           at oracle.sdp.sipservletengine.SipServletInvoker.invokeServlet(SipServletInvoker.java:256)
           at oracle.sdp.sipservletengine.SipServletInvoker.processRequest(SipServletInvoker.java:223)
           at oracle.sdp.sipcoreframework.impl.SipListenerImpl.processRequest(SipListenerImpl.java:78)
           at oracle.sdp.sipstack.javax.sip.executor.RequestEventNotifier.notifyListener(RequestEventNotifier.java:31)
           at oracle.sdp.sipstack.javax.sip.executor.EventNotifier.run(EventNotifier.java:62)
           at oracle.sdp.sipstack.javax.sip.executor.impl.NotifierEvent.run(NotifierEvent.java:42)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
           at java.lang.Thread.run(Thread.java:595)