{"id":851,"date":"2011-04-18T21:25:35","date_gmt":"2011-04-18T13:25:35","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=851"},"modified":"2023-04-28T09:50:29","modified_gmt":"2023-04-28T09:50:29","slug":"how-to-configure-389-directory-server-on-centosrhel","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-configure-389-directory-server-on-centosrhel\/","title":{"rendered":"How to Configure 389 Directory Server on CentOS\/RHEL"},"content":{"rendered":"<p>This article assume that you have completed on the installation of 389 Directory Server on CentOS\/RHEL server.<\/p>\n<p>Prerequisite :<br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-389-directory-server-on-centosrhel\/\" target=\"_blank\" rel=\"noopener\">How to Install 389 Directory Server on CentOS\/RHEL<\/a><\/p>\n<p>1. Create a user and group for the server<\/p>\n<pre class=\"code\">\r\n[root@server ~]# groupadd ldap\r\n[root@server ~]# useradd -s \/bin\/false -g ldap ldap\r\n<\/pre>\n<p>2. Setup your first directory server. Choose option (2) for typical setup. If you have configured your server FQDN correctly, the correct default values will be available for you to choose. All you will need to specify is the \u2018admin\u2019 and \u2018directory manager\u2019 password.<\/p>\n<pre class=\"code\">[root@server ~]# setup-ds-admin.pl\r\n\r\n==============================================================================\r\nThis program will set up the CentOS 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\nBY SETTING UP AND USING THIS SOFTWARE YOU ARE CONSENTING TO BE BOUND BY\r\nAND ARE BECOMING A PARTY TO THE AGREEMENT FOUND IN THE\r\nLICENSE.TXT FILE. IF YOU DO NOT AGREE TO ALL OF THE TERMS\r\nOF THIS AGREEMENT, PLEASE DO NOT SET UP OR USE THIS SOFTWARE.\r\n\r\nDo you agree to the license terms? [no]: 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\nCentOS Directory Server system tuning analysis version 10-AUGUST-2007.\r\n\r\nNOTICE : System is i686-unknown-linux2.6.18-194.el5 (1 processor).\r\n\r\nWARNING: 590MB of physical memory is available on the system. 1024MB is recommended f\r\nor best performance on large production system.\r\n\r\nWould you like to continue? [no]: yes\r\n\r\n==============================================================================\r\nChoose a setup type:\r\n\r\n1. Express\r\nAllows you to quickly set up the servers using the most\r\ncommon options and pre-defined defaults. Useful for quick\r\nevaluation of the products.\r\n\r\n2. Typical\r\nAllows you to specify common defaults and options.\r\n\r\n3. Custom\r\nAllows you to specify more advanced options. This is\r\nrecommended 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]: 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.\r\nExample: eros.example.com.\r\n\r\nTo accept the default shown in brackets, press the Enter key.\r\n\r\nComputer name [ldap.intranet.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.(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 [intranet.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 [ldap]: ldap.intranet.local\r\nThe ServerIdentifier 'ldap.intranet.local' contains invalid characters.  It must\r\ncontain only alphanumeric characters and the following: #%:@_-\r\n\r\nDirectory server identifier [ldap]:\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=intranet, 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 'ldap' 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\nThe admin server was successfully started.\r\nAdmin server was successfully created, configured, and started.\r\nExiting . . .\r\nLog file is '\/tmp\/setupZAYCKY.log'\r\n\r\n[root@server ~]#\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This article assume that you have completed on the installation of 389 Directory Server on CentOS\/RHEL server. Prerequisite : How to Install 389 Directory Server on CentOS\/RHEL 1. Create a&#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],"tags":[1246,1533,1536],"class_list":["post-851","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-389-directory-server","tag-centos-5-5","tag-ldap","tag-linux"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/851","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=851"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/851\/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=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}