{"id":2417,"date":"2012-05-11T23:18:08","date_gmt":"2012-05-11T15:18:08","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2417"},"modified":"2023-06-24T07:16:14","modified_gmt":"2023-06-24T07:16:14","slug":"how-to-setup-and-configure-389-directory-server-on-centos-6-2","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-setup-and-configure-389-directory-server-on-centos-6-2\/","title":{"rendered":"How to Setup and Configure 389 Directory Server on CentOS 6.2"},"content":{"rendered":"<p>In the realm of enterprise-class open source LDAP servers for Linux, the 389 Directory Server stands out. This server, which is based on the Fedora Directory Server, is a robust and reliable solution for managing your network resources.<\/p>\n<p>This guide will take you through the process of setting up and configuring the 389 Directory Server on a CentOS 6.2 server. Before we delve into the details, ensure that your server&#8217;s hostname and Fully Qualified Domain Name (FQDN) are correctly configured.<\/p>\n<h2>Running the Configuration Script<\/h2>\n<p>The first step in setting up the 389 Directory Server is to run the configuration script. This can be done by executing the following command:<\/p>\n<pre>\r\nsetup-ds-admin.pl\r\n<\/pre>\n<p>This command initiates the setup process for the 389 Directory and Administration Servers. It is recommended to run this script with &#8220;root&#8221; privileges for a smooth setup process. The script provides prompts and tips to guide you through the setup process.<\/p>\n<p>Examples complete setup and 389 directory configuration :<\/p>\n<pre>\r\n[root@centos62 ~]# setup-ds-admin.pl\r\n\r\n==============================================================================\r\nThis program will set up the 389 Directory and Administration Servers.\r\n\r\nIt is recommended that you have \"root\" privilege to set up the software.\r\nTips for using this program:\r\n  - Press \"Enter\" to choose the default and go to the next screen\r\n  - Type \"Control-B\" then \"Enter\" to go back to the previous screen\r\n  - Type \"Control-C\" to cancel the setup program\r\n\r\nWould you like to continue with set up? [yes]: yes\r\n\r\n==============================================================================\r\nYour system has been scanned for potential problems, missing patches,\r\netc.  The following output is a report of the items found that need to\r\nbe addressed before running this software in a production\r\nenvironment.\r\n\r\n389 Directory Server system tuning analysis version 10-AUGUST-2007.\r\n\r\nNOTICE : System is i686-unknown-linux2.6.32-220.4.1.el6.i686 (1 processor).\r\n\r\nWould you like to continue? [no]: yes\r\n\r\n==============================================================================\r\nChoose a setup type:\r\n\r\n   1. Express\r\n       Allows you to quickly set up the servers using the most\r\n       common options and pre-defined defaults. Useful for quick\r\n       evaluation of the products.\r\n\r\n   2. Typical\r\n       Allows you to specify common defaults and options.\r\n\r\n   3. Custom\r\n       Allows you to specify more advanced options. This is\r\n       recommended for experienced server administrators only.\r\n\r\nTo accept the default shown in brackets, press the Enter key.\r\n\r\nChoose a setup type [2]:\r\n\r\n==============================================================================\r\nEnter the fully qualified domain name of the computer\r\non which you're setting up server software. Using the form\r\n<hostname>.<domainname>\r\nExample: eros.example.com.\r\n\r\nTo accept the default shown in brackets, press the Enter key.\r\n\r\nWarning: This step may take a few minutes if your DNS servers\r\ncan not be reached or if DNS is not configured correctly.  If\r\nyou would rather not wait, hit Ctrl-C and run this program again\r\nwith the following command line option to specify the hostname:\r\n\r\n    General.FullMachineName=your.hostname.domain.name\r\n\r\nComputer name [centos62.webhostinggeeks.local]:\r\n\r\n==============================================================================\r\nThe servers must run as a specific user in a specific group.\r\nIt is strongly recommended that this user should have no privileges\r\non the computer (i.e. a non-root user).  The setup procedure\r\nwill give this user\/group some permissions in specific paths\/files\r\nto perform server-specific operations.\r\n\r\nIf you have not yet created a user and group for the servers,\r\ncreate this user and group using your native operating\r\nsystem utilities.\r\n\r\nSystem User [nobody]:\r\nSystem Group [nobody]:\r\n\r\n==============================================================================\r\nServer information is stored in the configuration directory server.\r\nThis information is used by the console and administration server to\r\nconfigure and manage your servers.  If you have already set up a\r\nconfiguration directory server, you should register any servers you\r\nset up or create with the configuration server.  To do so, the\r\nfollowing information about the configuration server is required: the\r\nfully qualified host name of the form\r\n<hostname>.<domainname>(e.g. hostname.example.com), the port number\r\n(default 389), the suffix, the DN and password of a user having\r\npermission to write the configuration information, usually the\r\nconfiguration directory administrator, and if you are using security\r\n(TLS\/SSL).  If you are using TLS\/SSL, specify the TLS\/SSL (LDAPS) port\r\nnumber (default 636) instead of the regular LDAP port number, and\r\nprovide the CA certificate (in PEM\/ASCII format).\r\n\r\nIf you do not yet have a configuration directory server, enter 'No' to\r\nbe prompted to set up one.\r\n\r\nDo you want to register this software with an existing\r\nconfiguration directory server? [no]:\r\n\r\n==============================================================================\r\nPlease enter the administrator ID for the configuration directory\r\nserver.  This is the ID typically used to log in to the console.  You\r\nwill also be prompted for the password.\r\n\r\nConfiguration directory server\r\nadministrator ID [admin]:\r\nPassword:\r\nPassword (confirm):\r\n\r\n==============================================================================\r\nThe information stored in the configuration directory server can be\r\nseparated into different Administration Domains.  If you are managing\r\nmultiple software releases at the same time, or managing information\r\nabout multiple domains, you may use the Administration Domain to keep\r\nthem separate.\r\n\r\nIf you are not using administrative domains, press Enter to select the\r\ndefault.  Otherwise, enter some descriptive, unique name for the\r\nadministration domain, such as the name of the organization\r\nresponsible for managing the domain.\r\n\r\nAdministration Domain [webhostinggeeks.local]:\r\n\r\n==============================================================================\r\nThe standard directory server network port number is 389.  However, if\r\nyou are not logged as the superuser, or port 389 is in use, the\r\ndefault value will be a random unused port number greater than 1024.\r\nIf you want to use port 389, make sure that you are logged in as the\r\nsuperuser, that port 389 is not in use.\r\n\r\nDirectory server network port [389]:\r\n\r\n==============================================================================\r\nEach instance of a directory server requires a unique identifier.\r\nThis identifier is used to name the various\r\ninstance specific files and directories in the file system,\r\nas well as for other uses as a server instance identifier.\r\n\r\nDirectory server identifier [centos62]:\r\n\r\n==============================================================================\r\nThe suffix is the root of your directory tree.  The suffix must be a valid DN.\r\nIt is recommended that you use the dc=domaincomponent suffix convention.\r\nFor example, if your domain is example.com,\r\nyou should use dc=example,dc=com for your suffix.\r\nSetup will create this initial suffix for you,\r\nbut you may have more than one suffix.\r\nUse the directory server utilities to create additional suffixes.\r\n\r\nSuffix [dc=webhostinggeeks, dc=local]:\r\n\r\n==============================================================================\r\nCertain directory server operations require an administrative user.\r\nThis user is referred to as the Directory Manager and typically has a\r\nbind Distinguished Name (DN) of cn=Directory Manager.\r\nYou will also be prompted for the password for this user.  The password must\r\nbe at least 8 characters long, and contain no spaces.\r\nPress Control-B or type the word \"back\", then Enter to back up and start over.\r\n\r\nDirectory Manager DN [cn=Directory Manager]:\r\nPassword:\r\nPassword (confirm):\r\n\r\n==============================================================================\r\nThe Administration Server is separate from any of your web or application\r\nservers since it listens to a different port and access to it is\r\nrestricted.\r\n\r\nPick a port number between 1024 and 65535 to run your Administration\r\nServer on. You should NOT use a port number which you plan to\r\nrun a web or application server on, rather, select a number which you\r\nwill remember and which will not be used for anything else.\r\n\r\nAdministration port [9830]:\r\n\r\n==============================================================================\r\nThe interactive phase is complete.  The script will now set up your\r\nservers.  Enter No or go Back if you want to change something.\r\n\r\nAre you ready to set up your servers? [yes]:\r\nCreating directory server . . .\r\nYour new DS instance 'centos62' was successfully created.\r\nCreating the configuration directory server . . .\r\nBeginning Admin Server creation . . .\r\nCreating Admin Server files and directories . . .\r\nUpdating adm.conf . . .\r\nUpdating admpw . . .\r\nRegistering admin server with the configuration directory server . . .\r\nUpdating adm.conf with information from configuration directory server . . .\r\nUpdating the configuration for the httpd engine . . .\r\nStarting admin server . . .\r\noutput: Starting dirsrv-admin:\r\noutput:                                                    [  OK  ]\r\nThe admin server was successfully started.\r\nAdmin server was successfully created, configured, and started.\r\nExiting . . .\r\nLog file is '\/tmp\/setup1EmS4N.log'\r\n<\/pre>\n<h2>System Scanning and Setup Type Selection<\/h2>\n<p>Upon running the configuration script, your system will be scanned for potential issues, missing patches, and other elements that need to be addressed before the software can run in a production environment. After the system scan, you will be prompted to choose a setup type. The options are:<\/p>\n<ul>\n<li><span class=\"fw-bold\">Express:<\/span> This option allows you to quickly set up the servers using the most common options and pre-defined defaults. It is useful for a quick evaluation of the products.<\/li>\n<li><span class=\"fw-bold\">Typical:<\/span> This option allows you to specify common defaults and options.<\/li>\n<li><span class=\"fw-bold\">Custom:<\/span> This option allows you to specify more advanced options. It is recommended for experienced server administrators only.<\/li>\n<\/ul>\n<h2>Server Information and User Configuration<\/h2>\n<p>The configuration script will ask for the fully qualified domain name of the computer on which you&#8217;re setting up server software. It will also prompt you to specify a system user and group under which the servers must run. It is strongly recommended that this user should have no privileges on the computer (i.e., a non-root user). The setup procedure will give this user\/group some permissions in specific paths\/files to perform server-specific operations.<\/p>\n<h2>Configuration Directory Server<\/h2>\n<p>Server information is stored in the configuration directory server. This information is used by the console and administration server to configure and manage your servers. If you have already set up a configuration directory server, you should register any servers you set up or create with the configuration server. If you do not yet have a configuration directory server, you will be prompted to set one up.<\/p>\n<h2>Administration Domain and Network Port<\/h2>\n<p>The information stored in the configuration directory server can be separated into different Administration Domains. If you are managing multiple software releases at the same time, or managing information about multiple domains, you may use the Administration Domain to keep them separate.<\/p>\n<p>The standard directory server network port number is 389. However, if you are not logged in as the superuser, or port 389 is in use, the default value will be a random unused port number greater than 1024.<\/p>\n<h2>Directory Server Identifier and Suffix<\/h2>\n<p>Each instance of a directory server requires a unique identifier. This identifier is used to name the various instance-specific files and directories in the file system, as well as for other uses as a server instance identifier.<\/p>\n<p>The suffix is the root ofyour directory tree. The suffix must be a valid DN. It is recommended that you use the dc=domaincomponent suffix convention. For example, if your domain is example.com, you should use dc=example,dc=com for your suffix. Setup will create this initial suffix for you, but you may have more than one suffix. Use the directory server utilities to create additional suffixes.<\/p>\n<h2>Directory Manager and Administration Server<\/h2>\n<p>Certain directory server operations require an administrative user. This user is referred to as the Directory Manager and typically has a bind Distinguished Name (DN) of cn=Directory Manager. You will also be prompted for the password for this user. The password must be at least 8 characters long, and contain no spaces.<\/p>\n<p>The Administration Server is separate from any of your web or application servers since it listens to a different port and access to it is restricted. Pick a port number between 1024 and 65535 to run your Administration Server on. You should NOT use a port number which you plan to run a web or application server on, rather, select a number which you will remember and which will not be used for anything else.<\/p>\n<h2>Finalizing the Setup<\/h2>\n<p>Once you&#8217;ve completed the interactive phase, the script will set up your servers. If you want to change something, you can enter &#8216;No&#8217; or go &#8216;Back&#8217;. If you&#8217;re ready to proceed, the script will create the directory server, the configuration directory server, and the admin server. It will also start the admin server and provide you with a log file for reference.<\/p>\n<h2>Commands Mentioned<\/h2>\n<ul>\n<li><span class=\"fw-bold\">setup-ds-admin.pl<\/span> \u2013 This command initiates the setup process for the 389 Directory and Administration Servers.<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>Setting up and configuring the 389 Directory Server on CentOS 6.2 involves a series of steps that require careful attention. From running the configuration script to finalizing the setup, each step is crucial for the successful operation of the server. Remember, the 389 Directory Server is a powerful tool for managing your network resources. With this guide, you should be able to set up and configure your 389 Directory Server with ease.<\/p>\n<p>For more insights into different server types like <a href=\"https:\/\/webhostinggeeks.com\/blog\/apache-http-server-explained\/\">Apache<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/nginx-server-explained\/\">Nginx<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/litespeed-web-server-explained\/\">LiteSpeed<\/a>, or hosting options like <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-dedicated-server-hosting\/\">dedicated server<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-vps-hosting\/\">VPS server<\/a>, <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-cloud-hosting\/\">cloud hosting<\/a>, and <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-shared-hosting\/\">shared hosting<\/a>, visit our website.<\/p>\n<h2>FAQ<\/h2>\n<ol itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the 389 Directory Server?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The 389 Directory Server is an enterprise-class open source LDAP server for Linux. It is based on the Fedora Directory Server and is used for managing network resources.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the purpose of the configuration script in the 389 Directory Server setup?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The configuration script initiates the setup process for the 389 Directory and Administration Servers. It provides prompts and tips to guide you through the setup process.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the role of the Directory Manager in the 389 Directory Server?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The Directory Manager is an administrative user required for certain directory server operations. This user typically has a bind Distinguished Name (DN) of cn=Directory Manager.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the Administration Server in the context of the 389 Directory Server?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The Administration Server is separate from any of your web or application servers as it listens to a different port and access to it is restricted. It is used to manage and configure your servers.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the significance of the suffix in the 389 Directory Server setup?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">The suffix is the root of your directory tree. It must be a valid DN and is recommended to use the dc=domaincomponent suffix convention. The setup creates this initial suffix, but you may have more than one suffix.<\/span>\n            <\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In the realm of enterprise-class open source LDAP servers for Linux, the 389 Directory Server stands out. This server, which is based on the Fedora Directory Server, is a robust&#8230;<\/p>\n","protected":false},"author":6,"featured_media":717,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1102,2055],"tags":[1178,1244,1253,1536,1546],"class_list":["post-2417","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-389-directory-server","category-centos","tag-389-directory","tag-centos","tag-centos-6-2","tag-linux","tag-linux-utilities"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2417"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2417\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/717"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}