{"id":3074,"date":"2012-04-11T07:00:37","date_gmt":"2012-04-11T11:00:37","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=3074"},"modified":"2016-07-13T12:25:15","modified_gmt":"2016-07-13T16:25:15","slug":"oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/","title":{"rendered":"OAM &#8211; OIF integration : Login Fails when value for attribute cn is different than uid in LDAP Store"},"content":{"rendered":"<p>I recently integrated OAM with OIF where OAM\u00a0is configured as <a href=\"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/03\/oam-integration-with-oif-authentication-engine-or-service-provider\/\">OIF SP Integration Module<\/a>. In this integration OAM resource is protected by authentication scheme\u00a0OIFScheme and OAM&#8217;s authentication is delegated to OIF. More on Federation basics <a href=\"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/01\/oracle-identity-federation-oif-for-beginners-idp-sp\/\">here<\/a><\/p>\n<ul>\n<li>User can have multiple attributes defined like<strong> firstname<\/strong>, <strong>lastname<\/strong>, <strong>cn<\/strong>, <strong>uid<\/strong>, <strong>mail<\/strong>..<\/li>\n<\/ul>\n<p>OIF by default send attribute (<strong>uid<\/strong> or <strong>cn<\/strong> or <strong>email<\/strong>) defined\u00a0as <a href=\"http:\/\/docs.oracle.com\/cd\/E23943_01\/doc.1111\/e15740\/oif.htm#CACFEGBI\">user name attribute<\/a>\u00a0on <strong>OIF OSSO SP Integration Module<\/strong> screen to OAM. In my case this\u00a0is set to <strong>uid<\/strong>.<\/p>\n<p>My <strong>OIF-OAM integration<\/strong>\u00a0works fine for users whose value for attribute <strong>cn<\/strong> is same as attribute <strong>uid<\/strong> . This integration fails (error below) for users whose value for <strong>cn<\/strong> is different than value stored in\u00a0attribute\u00a0<strong>uid<\/strong>.<br \/>\nIn OAM Server diagnostic logs at <strong>$DOMAIN_HOME\/ servers\/ &lt;oam_server1&gt;\/ logs<\/strong>\/<\/p>\n<p>_____<\/p>\n<p>&lt;Mar 3, 2012 12:07:35 PM BST&gt; &lt;Error&gt; &lt;oracle.oam.user.identity.provider&gt; &lt;OAMSSA-20086&gt; &lt;Locate user via a<br \/>\nspecific attribute failed for <strong>attr<\/strong> <strong>cn and value oidiuseruid<\/strong>&gt;<br \/>\n&lt;Mar 3, 2012 12:07:35 PM BST&gt; &lt;Error&gt; &lt;oracle.oam.engine.authn&gt; &lt;OAMSSA-12126&gt; &lt;Cannot assert the username from DAP<br \/>\ntoken.&gt;<br \/>\n&lt;Mar 3, 2012 12:07:35 PM BST&gt; &lt;Error&gt; &lt;oracle.oam.user.identity.provider&gt; &lt;OAMSSA-20086&gt; &lt;Locate user via a<br \/>\nspecific attribute failed for <strong>attr cn and value oiduseruid<\/strong>&gt;<br \/>\n&lt;Mar 3, 2012 12:07:35 PM BST&gt; &lt;Error&gt; &lt;oracle.oam.engine.authn&gt; &lt;OAMSSA-12126&gt; &lt;Cannot assert the username from DAP<br \/>\ntoken.&gt;<br \/>\n&lt;Mar 3, 2012 12:07:35 PM BST&gt; &lt;Error&gt; &lt;oracle.oam.user.identity.provider&gt; &lt;OAMSSA-20086&gt; &lt;Locate user via a<br \/>\nspecific attribute failed for attr<strong> cn<\/strong> and value <strong>oiduseruid<\/strong>&gt;<\/p>\n<p>____<\/p>\n<p>For this user value of attribute <strong>uid<\/strong> is set to <strong>oiduseruid<\/strong> and value of attribute <strong>cn<\/strong> is set as <strong>oidusercn<\/strong><\/p>\n<p><strong>Root Cause :\u00a0 <\/strong>OIF is sending value (<strong>oiduseruid<\/strong>) stored in attribute <strong>uid<\/strong> (This is because of <strong>User Name Attribute<\/strong> set in <strong>OIF OSSO SP Integration Module<\/strong>) where as OAM is trying to compare it against value (<strong>oidusercn<\/strong>) stored in attribute <strong>cn<\/strong>.<\/p>\n<p><strong>Bug<\/strong>: OAM hard code value of <strong>attribute<\/strong> to compare in configuration file $DOMAIN_HOME\/config\/fmwconfig\/<strong>oam-config.xml<\/strong><\/p>\n<p>____<br \/>\n&lt;Setting Name=&#8221;<strong>DAPModules<\/strong>&#8221; Type=&#8221;htf:map&#8221;&gt;<br \/>\n&lt;Setting Name=&#8221;7DASE52D&#8221; Type=&#8221;htf:map&#8221;&gt;<br \/>\n&lt;Setting Name=&#8221;name&#8221; Type=&#8221;xsd:string&#8221;&gt;DAP&lt;\/Setting&gt;<br \/>\n&lt;Setting Name=&#8221;<strong>MatchLDAPAttribute<\/strong>&#8221; Type=&#8221;xsd:string&#8221;&gt;<strong>cn<\/strong>&lt;\/Setting&gt;<br \/>\n******<br \/>\n&lt;\/Setting&gt;<br \/>\n____<\/p>\n<p><strong><span style=\"color: #ff0000;\">Fix<\/span><\/strong> : Shutdown WebLogic Admin Server and Managed Server where OAM server is deployed. Update value of setting <strong>MatchLDAPAttribute<\/strong> under <strong>DAPModule<\/strong> from <strong>cn<\/strong> to <strong>uid<\/strong> (<span style=\"color: #ff0000;\">same as defined in OIF OSSO Integration Module<\/span>).<\/p>\n<p>Hitting any OIF integration issue or confused about <strong>OIF integration with Facebook, Google, or OpenID<\/strong> then post your doubt\/issue under comments section.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently integrated OAM with OIF where OAM\u00a0is configured as OIF SP Integration Module. In this integration OAM resource is [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[429,448],"tags":[],"class_list":["post-3074","post","type-post","status-publish","format-standard","hentry","category-oam","category-oif"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OAM - OIF integration : Login Fails when value for attribute cn is different than uid in LDAP Store -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OAM - OIF integration : Login Fails when value for attribute cn is different than uid in LDAP Store -\" \/>\n<meta property=\"og:description\" content=\"I recently integrated OAM with OIF where OAM\u00a0is configured as OIF SP Integration Module. In this integration OAM resource is [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-04-11T11:00:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-07-13T16:25:15+00:00\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/\",\"name\":\"OAM - OIF integration : Login Fails when value for attribute cn is different than uid in LDAP Store -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2012-04-11T11:00:37+00:00\",\"dateModified\":\"2016-07-13T16:25:15+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OAM &#8211; OIF integration : Login Fails when value for attribute cn is different than uid in LDAP Store\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OAM - OIF integration : Login Fails when value for attribute cn is different than uid in LDAP Store -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/","og_locale":"en_US","og_type":"article","og_title":"OAM - OIF integration : Login Fails when value for attribute cn is different than uid in LDAP Store -","og_description":"I recently integrated OAM with OIF where OAM\u00a0is configured as OIF SP Integration Module. In this integration OAM resource is [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/","article_published_time":"2012-04-11T11:00:37+00:00","article_modified_time":"2016-07-13T16:25:15+00:00","author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/","url":"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/","name":"OAM - OIF integration : Login Fails when value for attribute cn is different than uid in LDAP Store -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2012-04-11T11:00:37+00:00","dateModified":"2016-07-13T16:25:15+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2012\/04\/11\/oam-oif-integration-login-fails-when-value-for-attribute-cn-is-different-than-uid-in-ldap-store\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"OAM &#8211; OIF integration : Login Fails when value for attribute cn is different than uid in LDAP Store"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/3074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=3074"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/3074\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=3074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=3074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=3074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}