{"id":4691,"date":"2013-05-21T23:40:47","date_gmt":"2013-05-21T15:40:47","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4691"},"modified":"2023-04-28T09:48:21","modified_gmt":"2023-04-28T09:48:21","slug":"how-to-install-and-configure-389-ldap-directory-server-on-centos-6-4","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-and-configure-389-ldap-directory-server-on-centos-6-4\/","title":{"rendered":"How to Install and Configure 389 LDAP Directory Server on CentOS 6.4"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignleft size-thumbnail wp-image-717 lazyload\" alt=\"389\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2013\/05\/3891-150x150.png\" width=\"150\" height=\"150\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 150px; --smush-placeholder-aspect-ratio: 150\/150;\" \/>389 Directory Server is an enterprise-class open source Lightweight Directory Access Protocol (LDAP) server for Linux and based on Fedora Directory Server. 389 Directory server has been developed by Red Hat, as part of Red Hat&#8217;s community-supported Fedora Project. This steps has been tested on CentOS 6.4 x86_64 and may work on other version of CentOS as well.<\/p>\n<p>1. <a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-configure-epel-repository-on-centos-6-4-x86_64\/\">Prepare EPEL repository.<\/a><\/p>\n<p>2. Install 389-ds file :<\/p>\n<pre>[root@centos64 ~]# yum install 389-ds -y<\/pre>\n<p>3. Enable SELINUX :<\/p>\n<pre>[root@centos64 ~]# sestatus\nSELinux status:                 enabled\nSELinuxfs mount:                \/selinux\nCurrent mode:                   enforcing\nMode from config file:          enforcing\nPolicy version:                 24\nPolicy from config file:        targeted<\/pre>\n<p>4. Configure hostname, FQDN and host file has been configured correctly :<\/p>\n<pre>[root@centos64 ~]# hostname\ncentos64.ehowstuff.local<\/pre>\n<pre>[root@centos64 ~]# cat \/etc\/hosts\n127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4\n::1         localhost localhost.localdomain localhost6 localhost6.localdomain6\n\n192.168.2.64    centos64.ehowstuff.local centos64<\/pre>\n<p>5. To install 389 LDAP, run the configuration script :<\/p>\n<pre>[root@centos64 ~]# \/usr\/sbin\/setup-ds-admin.pl\n\n==============================================================================\nThis program will set up the 389 Directory and Administration Servers.\n\nIt is recommended that you have \"root\" privilege to set up the software.\nTips for using this program:\n  - Press \"Enter\" to choose the default and go to the next screen\n  - Type \"Control-B\" then \"Enter\" to go back to the previous screen\n  - Type \"Control-C\" to cancel the setup program\n\nWould you like to continue with set up? [yes]:\n\n==============================================================================\nYour system has been scanned for potential problems, missing patches,\netc.  The following output is a report of the items found that need to\nbe addressed before running this software in a production\nenvironment.\n\n389 Directory Server system tuning analysis version 23-FEBRUARY-2012.\n\nNOTICE : System is x86_64-unknown-linux2.6.32-358.2.1.el6.x86_64 (2 processors).\n\nNOTICE : The net.ipv4.tcp_keepalive_time is set to 7200000 milliseconds\n(120 minutes).  This may cause temporary server congestion from lost\nclient connections.\n\nWARNING: There are only 1024 file descriptors (soft limit) available, which\nlimit the number of simultaneous connections.\n\nWARNING  : The warning messages above should be reviewed before proceeding.\n\nWould you like to continue? [no]: yes\n\n==============================================================================\nChoose a setup type:\n\n   1. Express\n       Allows you to quickly set up the servers using the most\n       common options and pre-defined defaults. Useful for quick\n       evaluation of the products.\n\n   2. Typical\n       Allows you to specify common defaults and options.\n\n   3. Custom\n       Allows you to specify more advanced options. This is\n       recommended for experienced server administrators only.\n\nTo accept the default shown in brackets, press the Enter key.\n\nChoose a setup type [2]:\n\n==============================================================================\nEnter the fully qualified domain name of the computer\non which you're setting up server software. Using the form\n.\nExample: eros.example.com.\n\nTo accept the default shown in brackets, press the Enter key.\n\nWarning: This step may take a few minutes if your DNS servers\ncan not be reached or if DNS is not configured correctly.  If\nyou would rather not wait, hit Ctrl-C and run this program again\nwith the following command line option to specify the hostname:\n\n    General.FullMachineName=your.hostname.domain.name\n\nComputer name [centos64.ehowstuff.local]:\n\n==============================================================================\nThe servers must run as a specific user in a specific group.\nIt is strongly recommended that this user should have no privileges\non the computer (i.e. a non-root user).  The setup procedure\nwill give this user\/group some permissions in specific paths\/files\nto perform server-specific operations.\n\nIf you have not yet created a user and group for the servers,\ncreate this user and group using your native operating\nsystem utilities.\n\nSystem User [nobody]:\nSystem Group [nobody]:\n\n==============================================================================\nServer information is stored in the configuration directory server.\nThis information is used by the console and administration server to\nconfigure and manage your servers.  If you have already set up a\nconfiguration directory server, you should register any servers you\nset up or create with the configuration server.  To do so, the\nfollowing information about the configuration server is required: the\nfully qualified host name of the form\n.(e.g. hostname.example.com), the port number\n(default 389), the suffix, the DN and password of a user having\npermission to write the configuration information, usually the\nconfiguration directory administrator, and if you are using security\n(TLS\/SSL).  If you are using TLS\/SSL, specify the TLS\/SSL (LDAPS) port\nnumber (default 636) instead of the regular LDAP port number, and\nprovide the CA certificate (in PEM\/ASCII format).\n\nIf you do not yet have a configuration directory server, enter 'No' to\nbe prompted to set up one.\n\nDo you want to register this software with an existing\nconfiguration directory server? [no]:\n\n==============================================================================\nPlease enter the administrator ID for the configuration directory\nserver.  This is the ID typically used to log in to the console.  You\nwill also be prompted for the password.\n\nConfiguration directory server\nadministrator ID [admin]:\nPassword:\nPassword (confirm):\n\n==============================================================================\nThe information stored in the configuration directory server can be\nseparated into different Administration Domains.  If you are managing\nmultiple software releases at the same time, or managing information\nabout multiple domains, you may use the Administration Domain to keep\nthem separate.\n\nIf you are not using administrative domains, press Enter to select the\ndefault.  Otherwise, enter some descriptive, unique name for the\nadministration domain, such as the name of the organization\nresponsible for managing the domain.\n\nAdministration Domain [ehowstuff.local]:\n\n==============================================================================\nThe standard directory server network port number is 389.  However, if\nyou are not logged as the superuser, or port 389 is in use, the\ndefault value will be a random unused port number greater than 1024.\nIf you want to use port 389, make sure that you are logged in as the\nsuperuser, that port 389 is not in use.\n\nDirectory server network port [389]:\n\n==============================================================================\nEach instance of a directory server requires a unique identifier.\nThis identifier is used to name the various\ninstance specific files and directories in the file system,\nas well as for other uses as a server instance identifier.\n\nDirectory server identifier [centos64]:\n\n==============================================================================\nThe suffix is the root of your directory tree.  The suffix must be a valid DN.\nIt is recommended that you use the dc=domaincomponent suffix convention.\nFor example, if your domain is example.com,\nyou should use dc=example,dc=com for your suffix.\nSetup will create this initial suffix for you,\nbut you may have more than one suffix.\nUse the directory server utilities to create additional suffixes.\n\nSuffix [dc=ehowstuff, dc=local]:\n\n==============================================================================\nCertain directory server operations require an administrative user.\nThis user is referred to as the Directory Manager and typically has a\nbind Distinguished Name (DN) of cn=Directory Manager.\nYou will also be prompted for the password for this user.  The password must\nbe at least 8 characters long, and contain no spaces.\nPress Control-B or type the word \"back\", then Enter to back up and start over.\n\nDirectory Manager DN [cn=Directory Manager]:\nPassword:\nPassword (confirm):\n\n==============================================================================\nThe Administration Server is separate from any of your web or application\nservers since it listens to a different port and access to it is\nrestricted.\n\nPick a port number between 1024 and 65535 to run your Administration\nServer on. You should NOT use a port number which you plan to\nrun a web or application server on, rather, select a number which you\nwill remember and which will not be used for anything else.\n\nAdministration port [9830]:\n\n==============================================================================\nThe interactive phase is complete.  The script will now set up your\nservers.  Enter No or go Back if you want to change something.\n\nAre you ready to set up your servers? [yes]:\nCreating directory server . . .\nYour new DS instance 'centos64' was successfully created.\nCreating the configuration directory server . . .\nBeginning Admin Server creation . . .\nCreating Admin Server files and directories . . .\nUpdating adm.conf . . .\nUpdating admpw . . .\nRegistering admin server with the configuration directory server . . .\nUpdating adm.conf with information from configuration directory server . . .\nUpdating the configuration for the httpd engine . . .\nStarting admin server . . .\noutput: Starting dirsrv-admin:\noutput:                                                    [  OK  ]\nThe admin server was successfully started.\nAdmin server was successfully created, configured, and started.\nExiting . . .\nLog file is '\/tmp\/setupDJucbG.log'<\/pre>\n<p>6. Start dirsrv and dirsrv-admin service :<\/p>\n<pre>[root@centos64 ~]# \/etc\/init.d\/dirsrv start\nStarting dirsrv:\n    centos64...                                            [  OK  ]\n[root@centos64 ~]# \/etc\/init.d\/dirsrv-admin start\nStarting dirsrv-admin:\n                                                           [  OK  ]\n<\/pre>\n<p>7. Make dirsrv and dirsrv-admin service auto start at boot :<\/p>\n<pre>[root@centos64 ~]# chkconfig dirsrv on\n[root@centos64 ~]# chkconfig dirsrv-admin on<\/pre>\n<p>8. Check dirsrv and dirsrv-admin service status :<\/p>\n<pre>[root@centos64 ~]# \/etc\/init.d\/dirsrv-admin status\ndirsrv-admin (pid 1409) is running...\n[root@centos64 ~]# \/etc\/init.d\/dirsrv status\ndirsrv centos64 (pid 1317) is running...<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>389 Directory Server is an enterprise-class open source Lightweight Directory Access Protocol (LDAP) server for Linux and based on Fedora Directory Server. 389 Directory server has been developed by Red&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1102,1160,2062],"tags":[1178,1244,1536,1546],"class_list":["post-4691","post","type-post","status-publish","format-standard","hentry","category-389-directory-server","category-ldap-linux","category-yum","tag-389-directory","tag-centos","tag-linux","tag-linux-utilities"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4691","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=4691"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4691\/revisions"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}