{"id":15,"date":"2013-10-13T15:17:00","date_gmt":"2013-10-13T15:17:00","guid":{"rendered":""},"modified":"2021-08-31T10:12:24","modified_gmt":"2021-08-31T09:12:24","slug":"after-adding-ldap-registry-websphere-portal-throws-jcr-exceptions-when-logged-in-as-an-ldap-user","status":"publish","type":"post","link":"https:\/\/www.srivittal.com\/wp\/?p=15","title":{"rendered":"After adding LDAP registry, WebSphere Portal throws JCR Exceptions when logged in as an LDAP User"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">This baffled me for 3 days !<\/p>\n<p>Using all the usual documentation from IBM and tutorials on the Web, I successfully installed and configured Tivoli Directory Server.<\/p>\n<p>Imported all the Portal LDIF files along with some test data into Tivoli Directory Server<\/p>\n<p>Configured TDS as an additional LDAP to a Federated repository configuration within Portal.<\/p>\n<p>So far so good.<\/p>\n<p>However, as soon as I login as a user who is a part of LDAP, and click on the &#8220;Edit Mode&#8221; link within Portal to configure a page (by the way I use Portal 8 CF7), I saw loads of &#8220;User id cannot be null&#8221; type JCR exceptions thrown in the logs.<\/p>\n<p>If I login as a user who is a part of the file based repository everything was fine. I checked permissions, checked permissions and cheked permissions for over 3 days before a small article from IBM gave the clue.<\/p>\n<p>When I configured TDS, I had provided the Common name (cn) parameter as the unique parameter to find each entry.<\/p>\n<p>Portal by default uses the User id (uid) parameter as the unique parameter to find each LDAP entry.<\/p>\n<p>This was the one causing the problem.<\/p>\n<p><b><u>Solution<\/u><\/b><\/p>\n<p>To resolve this issue, it was suggested to add  &#8220;store.puma_default.user.fbadefault.filter&#8221; to &#8220;WP PumaStoreService&#8221;  through WebSphere Integrated Solutions Console (aka the admin console)  and set the value to RDN &#8220;cn&#8221;. After that, the exceptions disappeared.<\/p>\n<p>Please see this article from IBM for the solution description.<\/p>\n<p><a href=\"http:\/\/www-01.ibm.com\/support\/docview.wss?uid=swg21385627\">http:\/\/www-01.ibm.com\/support\/docview.wss?uid=swg21385627<\/a><\/p>\n<p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This baffled me for 3 days ! Using all the usual documentation from IBM and tutorials on the Web, I successfully installed and configured Tivoli Directory Server. Imported all the Portal LDIF files along with some test data into Tivoli Directory Server Configured TDS as an additional LDAP to a Federated repository configuration within Portal. &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,11,12,14,13],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-exception","category-federated-single-sign-on","category-jcr","category-ldap","category-portal","entry entry-center"],"_links":{"self":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":1,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}