{"id":5842,"date":"2012-09-05T13:26:40","date_gmt":"2012-09-05T18:26:40","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=5842"},"modified":"2012-09-27T16:34:33","modified_gmt":"2012-09-27T21:34:33","slug":"install-opendj-directory-server","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=5842","title":{"rendered":"Install OpenDJ Directory Server"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Download\">Download<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Environment\">Environment<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Install\">Install<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Unzip\">Unzip<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Setup\">Setup<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Start_and_Stop\">Start and Stop<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Commands\">Commands<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Start\">Start<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Stop_OpenDJ\">Stop OpenDJ<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Check_Status\">Check Status<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Control_Panel\">Control Panel<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Default_Port_Numbers\">Default Port Numbers<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Download\"><h2>Download<\/h2><\/span>\n<p>* Go to OpenDJ download site at <a href=\"http:\/\/www.forgerock.org\/opendj.html\">http:\/\/www.forgerock.org\/opendj.html<\/a><br \/>\n* Download the zip file for a selected version, e.g. <a href=\"http:\/\/download.forgerock.org\/downloads\/opendj\/2.4.6\/OpenDJ-2.4.6.zip\">OpenDJ 2.4.6<\/a><\/p>\n<span id=\"Environment\"><h2>Environment<\/h2><\/span>\n<p>* Java<\/p>\n<pre lang=\"bash\">\r\n[jli@openidmbox Desktop]$ java -version\r\njava version \"1.6.0_24\"\r\nOpenJDK Runtime Environment (IcedTea6 1.11.4) (rhel-1.49.1.11.4.el6_3-x86_64)\r\nOpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)\r\n<\/pre>\n<p>* File descriptors: > 64K<\/p>\n<pre lang=\"bash\">\r\ncat \/proc\/sys\/fs\/file-max\r\n64000\r\n<\/pre>\n<span id=\"Install\"><h2>Install<\/h2><\/span>\n<span id=\"Unzip\"><h3>Unzip<\/h3><\/span>\n<p>*Unzip downloaded zip file.<\/p>\n<pre lang=\"bash\">\r\n[jli@openidmbox opt]$ ls\r\njdk1.6.0_35  openidm\r\n[jli@openidmbox opt]$ mkdir opendj\r\n[jli@openidmbox opt]$ cd opendj\r\n[jli@openidmbox opendj]$ unzip \/mnt\/hgfs\/vmshare\/OpenDJ-2.4.6.zip \r\nArchive:  \/mnt\/hgfs\/vmshare\/OpenDJ-2.4.6.zip\r\n   creating: OpenDJ-2.4.6\/\r\n...\r\n\r\n[jli@openidmbox opendj]$ ls\r\nOpenDJ-2.4.6\r\n[jli@openidmbox opendj]$ cd OpenDJ-2.4.6\/\r\n[jli@openidmbox OpenDJ-2.4.6]$ ls\r\nbak          db                  ldif             QuickSetup.app  Uninstall.app\r\nbat          example-plugin.zip  legal-notices    README          uninstall.bat\r\nbin          import-tmp          lib              setup           upgrade\r\nchangelogDb  install.html        locks            setup.bat       upgrade.bat\r\nclasses      install.txt         logs             snmp\r\nconfig       instance.loc        opends_logo.png  uninstall\r\n<\/pre>\n<span id=\"Setup\"><h3>Setup<\/h3><\/span>\n<p>* <em>.\/setup &#8211;cli<\/em><br \/>\n&#8211; Admin: <em>cn=Directory Manager<\/em>\/<em>password<\/em> (or <em>secret<\/em>)<\/p>\n<pre lang=\"bash\">\r\n[jli@openidmbox OpenDJ-2.4.6]$ .\/setup --cli\r\n\r\nOpenDJ 2.4.6\r\nPlease wait while the setup program initializes...\r\n\r\nWhat would you like to use as the initial root user DN for the Directory\r\nServer? [cn=Directory Manager]: \r\nPlease provide the password to use for the initial root user: \r\nPlease re-enter the password for confirmation: \r\n\r\nOn which port would you like the Directory Server to accept connections from\r\nLDAP clients? [1389]: \r\n\r\nOn which port would you like the Administration Connector to accept\r\nconnections? [4444]: \r\nDo you want to create base DNs in the server? (yes \/ no) [yes]: \r\n\r\nProvide the base DN for the directory data: [dc=example,dc=com]: \r\nOptions for populating the database:\r\n\r\n    1)  Only create the base entry\r\n    2)  Leave the database empty\r\n    3)  Import data from an LDIF file\r\n    4)  Load automatically-generated sample data\r\n\r\nEnter choice [1]: 3\r\n\r\nPlease specify the path to the LDIF file containing the data to import: \/opt\/openidm\/openidm\/samples\/sample2\/data\/Example.ldif\r\n\r\nDo you want to enable SSL? (yes \/ no) [no]: \r\n\r\nDo you want to enable Start TLS? (yes \/ no) [no]: \r\n\r\nDo you want to start the server when the configuration is completed? (yes \/\r\nno) [yes]: \r\n\r\n\r\nSetup Summary\r\n=============\r\nLDAP Listener Port:            1389\r\nAdministration Connector Port: 4444\r\nLDAP Secure Access:            disabled\r\nRoot User DN:                  cn=Directory Manager\r\nDirectory Data:                Create New Base DN dc=example,dc=com.\r\nBase DN Data: Import Data from LDIF File\r\n(\/opt\/openidm\/openidm\/samples\/sample2\/data\/Example.ldif)\r\n\r\nStart Server when the configuration is completed\r\n\r\n\r\nWhat would you like to do?\r\n\r\n    1)  Set up the server with the parameters above\r\n    2)  Provide the setup parameters again\r\n    3)  Print equivalent non-interactive command-line\r\n    4)  Cancel and exit\r\n\r\nEnter choice [1]: \r\n\r\nSee \/tmp\/opends-setup-4391859211492950560.log for a detailed log of this operation.\r\n\r\nConfiguring Directory Server ..... Done.\r\nImporting LDIF file \/opt\/openidm\/openidm\/samples\/sample2\/data\/Example.ldif ...... Done.\r\nStarting Directory Server ...... Done.\r\n\r\nTo see basic server configuration status and configuration you can launch \/opt\/opendj\/OpenDJ-2.4.6\/bin\/status\r\n<\/pre>\n<span id=\"Start_and_Stop\"><h2>Start and Stop<\/h2><\/span>\n<span id=\"Commands\"><h3>Commands<\/h3><\/span>\n<pre lang=\"bash\">\r\n$ pwd\r\n\/opt\/opendj\/OpenDJ-2.4.6\/bin\r\n$ ls\r\nbackup            dsjavaproperties  ldappasswordmodify  manage-tasks\r\nbase64            dsreplication     ldapsearch          README_WINDOWS.txt\r\ncontrol-panel     encode-password   ldif-diff           rebuild-index\r\nControlPanel.app  export-ldif       ldifmodify          restore\r\ncreate-rc-script  import-ldif       ldifsearch          start-ds\r\ndbtest            ldapcompare       list-backends       status\r\ndsconfig          ldapdelete        make-ldif           stop-ds\r\ndsframework       ldapmodify        manage-account      verify-index\r\n<\/pre>\n<span id=\"Start\"><h3>Start<\/h3><\/span>\n<p>* <em>bin\/start-ds<\/em><\/p>\n<pre lang=\"bash\">\r\n$ .\/start-ds \r\n[05\/Sep\/2012:20:29:18 -0700] category=CORE severity=INFORMATION msgID=132 msg=The Directory Server is beginning the configuration bootstrapping process\r\n[05\/Sep\/2012:20:29:18 -0700] category=EXTENSIONS severity=INFORMATION msgID=1049147 msg=Loaded extension from file '\/opt\/opendj\/OpenDJ-2.4.6\/lib\/extensions\/snmp-mib2605.jar' (build 2.4.6, revision 8102)\r\n[05\/Sep\/2012:20:29:18 -0700] category=CORE severity=NOTICE msgID=458886 msg=OpenDJ 2.4.6 (build 20120723161910Z, R8102) starting up\r\n[05\/Sep\/2012:20:29:19 -0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381717 msg=Installation Directory:  \/opt\/opendj\/OpenDJ-2.4.6\r\n[05\/Sep\/2012:20:29:19 -0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381719 msg=Instance Directory:      \/opt\/opendj\/OpenDJ-2.4.6\r\n[05\/Sep\/2012:20:29:19 -0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381713 msg=JVM Information: 1.6.0_24-b24 by Sun Microsystems Inc., 64-bit architecture, 620756992 bytes heap size\r\n[05\/Sep\/2012:20:29:20 -0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381714 msg=JVM Host: openidmbox, running Linux 2.6.32-220.el6.x86_64 amd64, 2100391936 bytes physical memory size, number of processors available 2\r\n[05\/Sep\/2012:20:29:20 -0700] category=RUNTIME_INFORMATION severity=NOTICE msgID=20381715 msg=JVM Arguments: \"-Dorg.opends.server.scriptName=start-ds\"\r\n[05\/Sep\/2012:20:29:20 -0700] category=ACCESS_CONTROL severity=INFORMATION msgID=12582978 msg=Added 10 Global Access Control Instruction (ACI) attribute types to the access control evaluation engine\r\n[05\/Sep\/2012:20:29:20 -0700] category=BACKEND severity=INFORMATION msgID=9437595 msg=Local DB backend userRoot does not specify the number of lock tables: defaulting to 97\r\n[05\/Sep\/2012:20:29:20 -0700] category=BACKEND severity=INFORMATION msgID=9437594 msg=Local DB backend userRoot does not specify the number of cleaner threads: defaulting to 24 threads\r\n[05\/Sep\/2012:20:29:21 -0700] category=JEB severity=NOTICE msgID=8847402 msg=The database backend userRoot containing 4 entries has started\r\n[05\/Sep\/2012:20:29:21 -0700] category=EXTENSIONS severity=INFORMATION msgID=1048797 msg=DIGEST-MD5 SASL mechanism using a server fully qualified domain name of: openidmbox\r\n[05\/Sep\/2012:20:29:21 -0700] category=CORE severity=INFORMATION msgID=720 msg=No worker queue thread pool size specified: sizing automatically to use 24 threads\r\n[05\/Sep\/2012:20:29:21 -0700] category=PROTOCOL severity=NOTICE msgID=2556180 msg=Started listening for new connections on Administration Connector 0.0.0.0 port 4444\r\n[05\/Sep\/2012:20:29:21 -0700] category=PROTOCOL severity=NOTICE msgID=2556180 msg=Started listening for new connections on LDAP Connection Handler 0.0.0.0 port 1389\r\n[05\/Sep\/2012:20:29:21 -0700] category=CORE severity=NOTICE msgID=458887 msg=The Directory Server has started successfully\r\n[05\/Sep\/2012:20:29:21 -0700] category=CORE severity=NOTICE msgID=458891 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerStarted, alert ID 458887):  The Directory Server has started successfully\r\n<\/pre>\n<span id=\"Stop_OpenDJ\"><h3>Stop OpenDJ<\/h3><\/span>\n<p>* <em>bin\/stop-ds<\/em><\/p>\n<pre lang=\"bash\">\r\n$ .\/stop-ds \r\nStopping Server...\r\n\r\n[05\/Sep\/2012:20:27:38 -0700] category=BACKEND severity=NOTICE msgID=9896306 msg=The backend userRoot is now taken offline\r\n[05\/Sep\/2012:20:27:38 -0700] category=CORE severity=NOTICE msgID=458955 msg=The Directory Server is now stopped\r\n<\/pre>\n<span id=\"Check_Status\"><h3>Check Status<\/h3><\/span>\n<p>* <em>.\/status<\/em><\/p>\n<pre lang=\"bash\">.\/status\r\n\r\n\r\n>>>> Specify OpenDS LDAP connection parameters\r\n\r\nAdministrator user bind DN [cn=Directory Manager]:     \r\n\r\nPassword for user 'cn=Directory Manager': \r\n\r\n          --- Server Status ---\r\nServer Run Status:        Started\r\nOpen Connections:         1\r\n\r\n          --- Server Details ---\r\nHost Name:                openidmbox.localdomain\r\nAdministrative Users:     cn=Directory Manager\r\nInstallation Path:        \/opt\/opendj\/OpenDJ-2.4.6\r\nVersion:                  OpenDJ 2.4.6\r\nJava Version:             1.6.0_24\r\nAdministration Connector: Port 4444 (LDAPS)\r\n\r\n          --- Connection Handlers ---\r\nAddress:Port : Protocol : State\r\n-------------:----------:---------\r\n--           : LDIF     : Disabled\r\n0.0.0.0:161  : SNMP     : Disabled\r\n0.0.0.0:636  : LDAPS    : Disabled\r\n0.0.0.0:1389 : LDAP     : Enabled\r\n0.0.0.0:1689 : JMX      : Disabled\r\n\r\n          --- Data Sources ---\r\nBase DN:     dc=example,dc=com\r\nBackend ID:  userRoot\r\nEntries:     4\r\nReplication: Disabled\r\n<\/pre>\n<span id=\"Control_Panel\"><h3>Control Panel<\/h3><\/span>\n<p>* Need X Win<br \/>\n* Open control panel:<\/p>\n<pre lang=\"bash\">\r\n$ pwd\r\n\/opt\/opendj\/OpenDJ-2.4.6\/bin\r\n$ .\/control-panel \r\n<\/pre>\n<p>* Login (password is password in this example)<\/p>\n<span id=\"\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/OpenDJ_Control_Panel_Login.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/OpenDJ_Control_Panel_Login-300x194.jpg\" alt=\"\" title=\"OpenDJ_Control_Panel_Login\" width=\"300\" height=\"194\" class=\"aligncenter size-medium wp-image-5856\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/OpenDJ_Control_Panel_Login-300x194.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/OpenDJ_Control_Panel_Login.jpg 482w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<p>* Control Panel:<\/p>\n<span id=\"_1\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/OpenDJ_Control_Panel.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/OpenDJ_Control_Panel-284x300.jpg\" alt=\"\" title=\"OpenDJ_Control_Panel\" width=\"284\" height=\"300\" class=\"aligncenter size-medium wp-image-5857\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/OpenDJ_Control_Panel-284x300.jpg 284w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/09\/OpenDJ_Control_Panel.jpg 657w\" sizes=\"auto, (max-width: 284px) 100vw, 284px\" \/><\/a><\/h6><\/span>\n<span id=\"Default_Port_Numbers\"><h2>Default Port Numbers<\/h2><\/span>\n<p>OpenDJ directory services use the following TCP\/IP port numbers by default:<\/p>\n<p>\u2022 LDAP: 389 (1389 for non-root users)<br \/>\n\u2022 LDAPS: 636 (1636 for non-root users)<br \/>\n\u2022 Administration Connector: 4444<br \/>\n\u2022 SNMP: 161 (if configured)<br \/>\n\u2022 JMX: 1689<br \/>\n\u2022 Replication: 8989<\/p>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/opendj.forgerock.org\/\">OpenDJ project home<\/a><br \/>\n* <a href=\"https:\/\/wikis.forgerock.org\/confluence\/display\/OPENDJ\/OpenDJ+Installation+Guide\">OpenDJ Installation Guide<\/a><br \/>\n* <a href=\"http:\/\/opendj.forgerock.org\/doc\/admin-guide\/index.html\">OpenDJ 2.5.0 Administration Guide<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download * Go to OpenDJ download site at http:\/\/www.forgerock.org\/opendj.html * Download the zip file for a selected version, e.g. OpenDJ 2.4.6 Environment * Java [jli@openidmbox Desktop]$ java -version java version &#8220;1.6.0_24&#8221; OpenJDK Runtime Environment (IcedTea6 1.11.4) (rhel-1.49.1.11.4.el6_3-x86_64) OpenJDK 64-Bit Server &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=5842\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[125,225],"tags":[613],"class_list":["post-5842","post","type-post","status-publish","format-standard","hentry","category-centos","category-opendj","tag-opendj"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-1we","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5842"}],"version-history":[{"count":11,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5842\/revisions"}],"predecessor-version":[{"id":5845,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/5842\/revisions\/5845"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}