Breaking News
Loading...
Sunday, June 16, 2013

How to Install and Configure 389 LDAP Directory Server on CentOS 6.4

8:00 AM

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’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.
1. Prepare EPEL repository.
2. Install 389-ds file :
[root@centos64 ~]# yum install 389-ds -y
3. Enable SELINUX :
[root@centos64 ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted
4. Configure hostname, FQDN and host file has been configured correctly :
[root@centos64 ~]# hostname
centos64.ehowstuff.local
[root@centos64 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.2.64    centos64.ehowstuff.local centos64
5. To install 389 LDAP, run the configuration script :
[root@centos64 ~]# /usr/sbin/setup-ds-admin.pl

==============================================================================
This program will set up the 389 Directory and Administration Servers.

It is recommended that you have "root" privilege to set up the software.
Tips for using this program:
  - Press "Enter" to choose the default and go to the next screen
  - Type "Control-B" then "Enter" to go back to the previous screen
  - Type "Control-C" to cancel the setup program

Would you like to continue with set up? [yes]:

==============================================================================
Your system has been scanned for potential problems, missing patches,
etc.  The following output is a report of the items found that need to
be addressed before running this software in a production
environment.

389 Directory Server system tuning analysis version 23-FEBRUARY-2012.

NOTICE : System is x86_64-unknown-linux2.6.32-358.2.1.el6.x86_64 (2 processors).

NOTICE : The net.ipv4.tcp_keepalive_time is set to 7200000 milliseconds
(120 minutes).  This may cause temporary server congestion from lost
client connections.

WARNING: There are only 1024 file descriptors (soft limit) available, which
limit the number of simultaneous connections.

WARNING  : The warning messages above should be reviewed before proceeding.

Would you like to continue? [no]: yes

==============================================================================
Choose a setup type:

   1. Express
       Allows you to quickly set up the servers using the most
       common options and pre-defined defaults. Useful for quick
       evaluation of the products.

   2. Typical
       Allows you to specify common defaults and options.

   3. Custom
       Allows you to specify more advanced options. This is
       recommended for experienced server administrators only.

To accept the default shown in brackets, press the Enter key.

Choose a setup type [2]:

==============================================================================
Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form
.
Example: eros.example.com.

To accept the default shown in brackets, press the Enter key.

Warning: This step may take a few minutes if your DNS servers
can not be reached or if DNS is not configured correctly.  If
you would rather not wait, hit Ctrl-C and run this program again
with the following command line option to specify the hostname:

    General.FullMachineName=your.hostname.domain.name

Computer name [centos64.ehowstuff.local]:

==============================================================================
The servers must run as a specific user in a specific group.
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.

If you have not yet created a user and group for the servers,
create this user and group using your native operating
system utilities.

System User [nobody]:
System Group [nobody]:

==============================================================================
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.  To do so, the
following information about the configuration server is required: the
fully qualified host name of the form
.(e.g. hostname.example.com), the port number
(default 389), the suffix, the DN and password of a user having
permission to write the configuration information, usually the
configuration directory administrator, and if you are using security
(TLS/SSL).  If you are using TLS/SSL, specify the TLS/SSL (LDAPS) port
number (default 636) instead of the regular LDAP port number, and
provide the CA certificate (in PEM/ASCII format).

If you do not yet have a configuration directory server, enter 'No' to
be prompted to set up one.

Do you want to register this software with an existing
configuration directory server? [no]:

==============================================================================
Please enter the administrator ID for the configuration directory
server.  This is the ID typically used to log in to the console.  You
will also be prompted for the password.

Configuration directory server
administrator ID [admin]:
Password:
Password (confirm):

==============================================================================
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.

If you are not using administrative domains, press Enter to select the
default.  Otherwise, enter some descriptive, unique name for the
administration domain, such as the name of the organization
responsible for managing the domain.

Administration Domain [ehowstuff.local]:

==============================================================================
The standard directory server network port number is 389.  However, if
you are not logged as the superuser, or port 389 is in use, the
default value will be a random unused port number greater than 1024.
If you want to use port 389, make sure that you are logged in as the
superuser, that port 389 is not in use.

Directory server network port [389]:

==============================================================================
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.

Directory server identifier [centos64]:

==============================================================================
The suffix is the root of your 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.

Suffix [dc=ehowstuff, dc=local]:

==============================================================================
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.
Press Control-B or type the word "back", then Enter to back up and start over.

Directory Manager DN [cn=Directory Manager]:
Password:
Password (confirm):

==============================================================================
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.

Administration port [9830]:

==============================================================================
The interactive phase is complete.  The script will now set up your
servers.  Enter No or go Back if you want to change something.

Are you ready to set up your servers? [yes]:
Creating directory server . . .
Your new DS instance 'centos64' was successfully created.
Creating the configuration directory server . . .
Beginning Admin Server creation . . .
Creating Admin Server files and directories . . .
Updating adm.conf . . .
Updating admpw . . .
Registering admin server with the configuration directory server . . .
Updating adm.conf with information from configuration directory server . . .
Updating the configuration for the httpd engine . . .
Starting admin server . . .
output: Starting dirsrv-admin:
output:                                                    [  OK  ]
The admin server was successfully started.
Admin server was successfully created, configured, and started.
Exiting . . .
Log file is '/tmp/setupDJucbG.log'
6. Start dirsrv and dirsrv-admin service :
[root@centos64 ~]# /etc/init.d/dirsrv start
Starting dirsrv:
    centos64...                                            [  OK  ]
[root@centos64 ~]# /etc/init.d/dirsrv-admin start
Starting dirsrv-admin:
                                                           [  OK  ]
7. Make dirsrv and dirsrv-admin service auto start at boot :
[root@centos64 ~]# chkconfig dirsrv on
[root@centos64 ~]# chkconfig dirsrv-admin on
8. Check dirsrv and dirsrv-admin service status :
[root@centos64 ~]# /etc/init.d/dirsrv-admin status
dirsrv-admin (pid 1409) is running...
[root@centos64 ~]# /etc/init.d/dirsrv status
dirsrv centos64 (pid 1317) is running...
 
Source:http://ehowstuff.com 

15 comments:

  1. Androgentic Hair loss a lot runs in families and impacts lots
    of people above people. Place your obtain from their website relaxing in the united states and you will get your package in 3 to 5 working days.
    A common 'Apericena' (vibrant smorgasboard with typical snacks) will end the
    ability in a very comforting way.

    Feel free to surf to my weblog - the muscle maximizer pdf ebook

    ReplyDelete
  2. While in the 1st part you're granted 31 audio tracks courses, every single more than 20 mins long,
    you can pay attention to again and again. The Philipines is an excellent and exquisite destination to study Spanish.
    I believe lots of people assume that discovering yet another language won't actually be that tough.


    2 Out-wise The Eye Area TextTheRomanceBack

    ReplyDelete
  3. You reschedule a different visit in 1-3 many weeks...purchase the 'care', of
    course, if the cysts obtained more compact...the physicians declare
    a win! Move 11: Chamfer the middle corners with an accumulation .4cm and 1 messages.

    They give useful product or service.

    Check out Simple fact About Dimply skin Now!;
    pak study

    ReplyDelete
  4. Rosetta Rock The german language has become the very best brand name amidst numerous
    software systems online and on the market. Each and every vacation uses a cease of high-class.
    In case you have dark spots, freckles, scar issues from pimples, or some other pores and skin discolorations, you really should delete them.


    Potential benefits to essential olive oil: health care reform

    ReplyDelete
  5. You notice terms like 'scamInch and In .shamInches a whole lot.
    lot of cash by offering us that has a resource similar to this.
    Businesses on Ough.Azines.

    best way to lose unwanted fat link Charissa

    ReplyDelete
  6. The 1st ailment is you will need to be an adventurer!
    Dunkles" (A dark beer)Towards preferred morals it's not the most powerful in liquor subject matter. It becomes an saying which you can not contend with someone until you know them.

    Complement nutritional vitamins this facebook online chat

    ReplyDelete
  7. Some of them have really functioned on that believed.
    Plenty of good reasons why someone ought to decide to understand a language rather than their native
    language. You know your self the ideal.

    Which ones will not this book for? here Book

    ReplyDelete
  8. Now I am going away to do my breakfast, afterward having my
    breakfast coming again to read additional news.

    my weblog - wooden handicrafts supplier

    ReplyDelete
  9. Two or much more a very long time provide you with the ability vital to
    submit an application. In this article I will disclose the simple and easy strategy to get ready A language like german Spaetzle.
    So since 1975, the people of Cologne Malaysia always sits
    all over 1 million inhabitants.

    Why achieve this?... adonis golden ratio program

    ReplyDelete
  10. Finding out this will help to in learning the Spanish language.
    Now i am thrilled for the whole company. But we can't know mainly because we've been incompetent at figuring out nearly anything about the entire world
    as it is.

    because of its fantastic carry|Finding the Finest Fat Loss Outcomes|Speaking
    spanish have gotten progressively obvious|Prepare Properly For
    Your Hcg Diet Plan|gone through everyday living in Cina|1 Tbsp chia seed-stock|Weight-loss Right after Maternity Tutorial|Workout Suggestions about Slimming Down| 2012 Victoria Bowmann, Doctor of philosophy|Rapid Weight
    Loss Insider secrets #2|When Fast is most beneficial|Harmful What you should
    be prevented|3) Wipe out processed foods|The information is purchased from:|Precisely What Is Xtreme Weight Reduction Eating
    habits?} foreign language jobs

    ReplyDelete
  11. In-home Persia translators furnished contextually right Arabic english to chinese translation.
    Asia usually have provided relevance to washing and assume
    that these bathtubs cleanse the spirit and intellect of
    each and every specific. editors to run of their ezines.


    How Diesel Motor Performs? this By Mike Geary

    ReplyDelete
  12. radio applications may also be created in this language.
    Understanding Spanish is now a way of increasing ones employment
    potential customers or advancing inside your very own company.
    Households would most likely experience
    the area, yard and use of various conveniences.


    What Are The Over weight CAN Consume; weekly

    ReplyDelete
  13. We do not have any point while in the lifestyle.
    As a consequence of economical good reasons to become familiar with a European language, naturally, may
    be the desired language of Germany, France, and England.

    Bury all by yourself into Spanish.

    provides magnificent benefits swiftly.... more info here

    ReplyDelete
  14. Hydrate all by yourself if you can ,. Should you consider the journey research
    as a way to This particular language is definitely one of the major tourist destinations.
    Yajur Veda (2Per26) says that: The sun's rays is home show themselves.


    Ways to Understand How to speak spanish: online storage free

    ReplyDelete
  15. We should facial area the awesome details -
    eliminate thrown away a long time around the stationary bike.

    The points zigongxue can be found 3 in . inferior to the umbilicus and 3 inches tall bilateral on the anterior midline.
    They then are playing enormous functions for the overall design on the planet.


    Hiring Perth Business is Reliable maxis iphone

    ReplyDelete

 
Toggle Footer