{"id":8812,"date":"2016-10-20T07:00:34","date_gmt":"2016-10-20T05:00:34","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/"},"modified":"2016-10-20T07:00:34","modified_gmt":"2016-10-20T05:00:34","slug":"documentum-story-replicate-an-embedded-ldap-manually-in-weblogic","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/","title":{"rendered":"Documentum story &#8211; Replicate an Embedded LDAP manually in WebLogic"},"content":{"rendered":"<p>In this blog, I will talk about the WebLogic Embedded LDAP. This LDAP is created by default on all AdminServers and Managed Servers of any WebLogic installation. The AdminServer always contains the Primary Embedded LDAP and all other Servers are synchronized with\u00a0this one. This Embedded LDAP is the default security provider database for the WebLogic Authentication, Authorization, Credential Mapping and Role Mapping providers: it usually contains the WebLogic users, groups, and some other stuff like the SAML2 setup, aso&#8230; So basically a lot of stuff configured under the &#8220;security realms&#8221; in the WebLogic Administration Console. This LDAP\u00a0is based on files that are stored under &#8220;$DOMAIN_HOME\/servers\/&lt;SERVER_NAME&gt;\/data\/ldap\/&#8221;.<\/p>\n<p>&nbsp;<\/p>\n<p>Normally the Embedded LDAP is automatically replicated from the AdminServer to the Managed Servers during startup but this can fail for a few reasons:<\/p>\n<ul>\n<li>AdminServer not running<\/li>\n<li>Problems in the communications between the AdminServer and Managed Servers<\/li>\n<li>aso&#8230;<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Oracle usually recommend to use an external RDBMS Security Store instead of the Embedded LDAP but not all information are stored in the RDBMS and therefore the Embedded LDAP is always used, at least for a few things. More information on this page: <a title=\"Oracle WebLogic Server Documentation\" href=\"https:\/\/docs.oracle.com\/middleware\/11119\/wls\/SCOVR\/realm_chap.htm#SCOVR193\" target=\"_blank\" rel=\"noopener\">Oracle WebLogic Server Documentation<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>So now in case the automatic replication isn&#8217;t working properly, for any reason, or\u00a0if a manual replication is needed, how can it be done?\u00a0Well that&#8217;s pretty\u00a0simple and I will explain that below. I will also use a home made script in order to quickly and efficiently start\/stop one, several or all WebLogic components. If you don&#8217;t have such script available, then please adapt the steps below to manually stop and start all WebLogic components.<\/p>\n<p>&nbsp;<\/p>\n<p>So first you need to stop all components:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">[weblogic@weblogic_server_01 ~]$ $DOMAIN_HOME\/bin\/startstop stopAll\n  ** Managed Server msD2-01 stopped\n  ** Managed Server msD2Conf-01 stopped\n  ** Managed Server msDA-01 stopped\n  ** Administration Server AdminServer stopped\n  ** Node Managed NodeManager stopped\n[weblogic@weblogic_server_01 ~]$ ps -ef | grep weblogic\n[weblogic@weblogic_server_01 ~]$<\/pre>\n<p>&nbsp;<\/p>\n<p>Once this is done, you need to retrieve the list of all Managed Servers installed\/configured in this WebLogic Domain for which a manual replication is needed. For me, it is pretty simple, they are printed above in the start\/stop command but otherwise you can find them like that:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1; highlight: [4,5,6]\">[weblogic@weblogic_server_01 ~]$ cd $DOMAIN_HOME\/servers\n[weblogic@weblogic_server_01 servers]$ ls | grep -v \"domain_bak\"\nAdminServer\nmsD2-01\nmsD2Conf-01\nmsDA-01<\/pre>\n<p>&nbsp;<\/p>\n<p>Now that you have the list, you can proceed with the manual replication for each and every Managed Server. First backup the Embedded LDAP and then\u00a0replicate it from the Primary (in the AdminServer as explained above):<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">[weblogic@weblogic_server_01 servers]$ current_date=$(date \"+%Y%m%d\")\n[weblogic@weblogic_server_01 servers]$ \n[weblogic@weblogic_server_01 servers]$ mv msD2-01\/data\/ldap msD2-01\/data\/ldap_bck_$current_date\n[weblogic@weblogic_server_01 servers]$ mv msD2Conf-01\/data\/ldap msD2Conf-01\/data\/ldap_bck_$current_date\n[weblogic@weblogic_server_01 servers]$ mv msDA-01\/data\/ldap msDA-01\/data\/ldap_bck_$current_date\n[weblogic@weblogic_server_01 servers]$ \n[weblogic@weblogic_server_01 servers]$ cp -R AdminServer\/data\/ldap msD2-01\/data\/\n[weblogic@weblogic_server_01 servers]$ cp -R AdminServer\/data\/ldap msD2Conf-01\/data\/\n[weblogic@weblogic_server_01 servers]$ cp -R AdminServer\/data\/ldap msDA-01\/data\/<\/pre>\n<p>&nbsp;<\/p>\n<p>When this is done, just start all WebLogic components again:<\/p>\n<pre class=\"brush: bash; gutter: true; first-line: 1\">[weblogic@weblogic_server_01 servers]$ $DOMAIN_HOME\/bin\/startstop startAll\n  ** Node Manager NodeManager started\n  ** Administration Server AdminServer started\n  ** Managed Server msDA-01 started\n  ** Managed Server msD2Conf-01 started\n  ** Managed Server msD2-01 started<\/pre>\n<p>&nbsp;<\/p>\n<p>And if you followed these steps properly, the Managed Servers will now be able to start normally with a replicated Embedded LDAP containing all recent changes coming from the Primary Embedded LDAP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, I will talk about the WebLogic Embedded LDAP. This LDAP is created by default on all AdminServers and Managed Servers of any WebLogic installation. The AdminServer always contains the Primary Embedded LDAP and all other Servers are synchronized with\u00a0this one. This Embedded LDAP is the default security provider database for the WebLogic [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[525],"tags":[913,301,647],"type_dbi":[],"class_list":["post-8812","post","type-post","status-publish","format-standard","hentry","category-enterprise-content-management","tag-embedded-ldap","tag-replication","tag-weblogic"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Documentum story - Replicate an Embedded LDAP manually in WebLogic - dbi Blog<\/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:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Documentum story - Replicate an Embedded LDAP manually in WebLogic\" \/>\n<meta property=\"og:description\" content=\"In this blog, I will talk about the WebLogic Embedded LDAP. This LDAP is created by default on all AdminServers and Managed Servers of any WebLogic installation. The AdminServer always contains the Primary Embedded LDAP and all other Servers are synchronized with\u00a0this one. This Embedded LDAP is the default security provider database for the WebLogic [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-20T05:00:34+00:00\" \/>\n<meta name=\"author\" content=\"Morgan Patou\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MorganPatou\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Morgan Patou\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\\\/\"},\"author\":{\"name\":\"Morgan Patou\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/c4d05b25843a9bc2ab20415dae6bd2d8\"},\"headline\":\"Documentum story &#8211; Replicate an Embedded LDAP manually in WebLogic\",\"datePublished\":\"2016-10-20T05:00:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\\\/\"},\"wordCount\":436,\"commentCount\":0,\"keywords\":[\"Embedded LDAP\",\"Replication\",\"WebLogic\"],\"articleSection\":[\"Enterprise content management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\\\/\",\"name\":\"Documentum story - Replicate an Embedded LDAP manually in WebLogic - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2016-10-20T05:00:34+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/c4d05b25843a9bc2ab20415dae6bd2d8\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentum story &#8211; Replicate an Embedded LDAP manually in WebLogic\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/c4d05b25843a9bc2ab20415dae6bd2d8\",\"name\":\"Morgan Patou\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5d7f5bec8b597db68a09107a6f5309e3870d6296ef94fb10ead4b09454ca67e5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5d7f5bec8b597db68a09107a6f5309e3870d6296ef94fb10ead4b09454ca67e5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5d7f5bec8b597db68a09107a6f5309e3870d6296ef94fb10ead4b09454ca67e5?s=96&d=mm&r=g\",\"caption\":\"Morgan Patou\"},\"description\":\"Morgan Patou has over 12 years of experience in Enterprise Content Management (ECM) systems, with a strong focus in recent years on platforms such as Alfresco, Documentum, and M-Files. He specializes in the architecture, setup, customization, and maintenance of ECM infrastructures in complex &amp; critical environments. Morgan is well-versed in both engineering and operations aspects, including high availability design, system integration, and lifecycle management. He also has a solid foundation in open-source and proprietary technologies - ranging from Apache, OpenLDAP or Kerberos to enterprise-grade systems like WebLogic. Morgan Patou holds an Engineering Degree in Computer Science from ENSISA (\u00c9cole Nationale Sup\u00e9rieure d'Ing\u00e9nieurs Sud Alsace) in Mulhouse, France. He is Alfresco Content Services Certified Administrator (ACSCA), Alfresco Content Services Certified Engineer (ACSCE) as well as OpenText Documentum Certified Administrator. His industry experience spans the Public Sector, IT Services, Financial Services\\\/Banking, and the Pharmaceutical industry.\",\"sameAs\":[\"https:\\\/\\\/blog.dbi-services.com\\\/author\\\/morgan-patou\\\/\",\"https:\\\/\\\/x.com\\\/MorganPatou\"],\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/morgan-patou\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Documentum story - Replicate an Embedded LDAP manually in WebLogic - dbi Blog","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:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/","og_locale":"en_US","og_type":"article","og_title":"Documentum story - Replicate an Embedded LDAP manually in WebLogic","og_description":"In this blog, I will talk about the WebLogic Embedded LDAP. This LDAP is created by default on all AdminServers and Managed Servers of any WebLogic installation. The AdminServer always contains the Primary Embedded LDAP and all other Servers are synchronized with\u00a0this one. This Embedded LDAP is the default security provider database for the WebLogic [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/","og_site_name":"dbi Blog","article_published_time":"2016-10-20T05:00:34+00:00","author":"Morgan Patou","twitter_card":"summary_large_image","twitter_creator":"@MorganPatou","twitter_misc":{"Written by":"Morgan Patou","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/"},"author":{"name":"Morgan Patou","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/c4d05b25843a9bc2ab20415dae6bd2d8"},"headline":"Documentum story &#8211; Replicate an Embedded LDAP manually in WebLogic","datePublished":"2016-10-20T05:00:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/"},"wordCount":436,"commentCount":0,"keywords":["Embedded LDAP","Replication","WebLogic"],"articleSection":["Enterprise content management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/","url":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/","name":"Documentum story - Replicate an Embedded LDAP manually in WebLogic - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2016-10-20T05:00:34+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/c4d05b25843a9bc2ab20415dae6bd2d8"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/documentum-story-replicate-an-embedded-ldap-manually-in-weblogic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Documentum story &#8211; Replicate an Embedded LDAP manually in WebLogic"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/c4d05b25843a9bc2ab20415dae6bd2d8","name":"Morgan Patou","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/5d7f5bec8b597db68a09107a6f5309e3870d6296ef94fb10ead4b09454ca67e5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5d7f5bec8b597db68a09107a6f5309e3870d6296ef94fb10ead4b09454ca67e5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5d7f5bec8b597db68a09107a6f5309e3870d6296ef94fb10ead4b09454ca67e5?s=96&d=mm&r=g","caption":"Morgan Patou"},"description":"Morgan Patou has over 12 years of experience in Enterprise Content Management (ECM) systems, with a strong focus in recent years on platforms such as Alfresco, Documentum, and M-Files. He specializes in the architecture, setup, customization, and maintenance of ECM infrastructures in complex &amp; critical environments. Morgan is well-versed in both engineering and operations aspects, including high availability design, system integration, and lifecycle management. He also has a solid foundation in open-source and proprietary technologies - ranging from Apache, OpenLDAP or Kerberos to enterprise-grade systems like WebLogic. Morgan Patou holds an Engineering Degree in Computer Science from ENSISA (\u00c9cole Nationale Sup\u00e9rieure d'Ing\u00e9nieurs Sud Alsace) in Mulhouse, France. He is Alfresco Content Services Certified Administrator (ACSCA), Alfresco Content Services Certified Engineer (ACSCE) as well as OpenText Documentum Certified Administrator. His industry experience spans the Public Sector, IT Services, Financial Services\/Banking, and the Pharmaceutical industry.","sameAs":["https:\/\/blog.dbi-services.com\/author\/morgan-patou\/","https:\/\/x.com\/MorganPatou"],"url":"https:\/\/www.dbi-services.com\/blog\/author\/morgan-patou\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/8812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=8812"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/8812\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=8812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=8812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=8812"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=8812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}