{"id":1833,"date":"2013-02-26T09:55:24","date_gmt":"2013-02-26T15:55:24","guid":{"rendered":"http:\/\/allidm.com\/blog\/?p=1833"},"modified":"2013-03-04T09:40:44","modified_gmt":"2013-03-04T15:40:44","slug":"create-a-root-user-in-opendj","status":"publish","type":"post","link":"https:\/\/allidm.com\/blog\/create-a-root-user-in-opendj\/","title":{"rendered":"Create a Root user in OpenDJ"},"content":{"rendered":"<p>Sometimes you need to create a user with Root privileges on the OpenDJ directory server. <\/p>\n<p>You need to do two main steps:<\/p>\n<p>1.Create the root user on OpenDJ<br \/>\n2.Change the root user created the privileges<br \/>\na.Take a look on the OpenDJ documentation to identify what is available. <a href=\"http:\/\/opendj.forgerock.org\/doc\/admin-guide\/index\/chap-privileges-acis.html#about-privileges\" title=\"OpenDJ Privileges\" target=\"_blank\">About OpenDJ Privileges<\/a><\/p>\n<p>Below is an example about how to do it, in order to complete it you need:<\/p>\n<p>1.Copy the text below using a text editor and save it as a ldif file.  For example runme.ldif<\/p>\n<blockquote><p># Create root user<\/p>\n<p>dn: cn=TestRootUser,cn=Root DNs,cn=config<br \/>\nobjectClass: inetOrgPerson<br \/>\nobjectClass: person<br \/>\nobjectClass: top<br \/>\nobjectClass: ds-cfg-root-dn-user<br \/>\nobjectClass: organizationalPerson<br \/>\nuserPassword: password<br \/>\ncn: TestRootUser<br \/>\nsn: TestRootUser<br \/>\nds-cfg-alternate-bind-dn: cn=TestRootUser<br \/>\ngivenName: Directory<\/p>\n<p># Change a Root User&#8217;s Privileges<\/p>\n<p>dn: cn=TestRootUser,cn=Root DNs,cn=config<br \/>\nchangetype: modify<br \/>\nadd: ds-privilege-name<br \/>\nds-privilege-name: proxied-auth<br \/>\nds-privilege-name: data-sync\n<\/p><\/blockquote>\n<p>2.On your openDJ instance, go to the bin or bat folder depending on your operating system and execute the next command.<\/p>\n<p>On windows you can try something like:<\/p>\n<blockquote><p>ldapmodify -h localhost -p 389 -D &#8220;cn=Directory Manager&#8221; -w Password1dm &#8211;defaultAdd &#8211;filename &#8220;C:\\Forgerock\\OpenDJ\\bat\\runme.ldif&#8221;\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you need to create a user with Root privileges on the OpenDJ directory server. You need to do two main steps: 1.Create the root user on OpenDJ 2.Change the root user created the privileges a.Take a look on the OpenDJ documentation to identify what is available. About OpenDJ Privileges Below is an example about [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1079,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[264,95,278,88,548,471],"tags":[414,1345,478,472],"class_list":["post-1833","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article","category-forgerock","category-iam-space","category-identity-space","category-opendj-forgerock","category-opendj","tag-directory-server","tag-iam-solutions","tag-open-source-directory-server","tag-opensource-directory-server"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2012\/06\/Identity-Management-Technical-Allidm.jpg?fit=320%2C240&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p25vfy-tz","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/posts\/1833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/comments?post=1833"}],"version-history":[{"count":4,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/posts\/1833\/revisions"}],"predecessor-version":[{"id":1863,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/posts\/1833\/revisions\/1863"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/media\/1079"}],"wp:attachment":[{"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/media?parent=1833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/categories?post=1833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/tags?post=1833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}