[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: New DC

--On Friday, May 15, 2009 07:50:06 PM -0400 Tech Only <stech.only@gmail.com> wrote:


I am new to LDAP. I have a basic question.

How do I delete the default domain which is in the slapd.conf file and
create my own?

I have suffix "dc=example, dc=com"
 in slapd.conf file and if i chnge the above line and other lines
where dc=example, dc=com  to dc=test, dc=com

I am not able to connect to it.

Pelase let me know how to get rid of default dc and create my own


There are two parts to this puzzle. One is the configuration file and the other is the data that is stored in the directory. To get started you might try:

 1. Create a configuration file that defines a database with the
    base distinguised name that you want to use.  (Yes, you
    can just hack on the default file.)  You probably also
    want to define at least a minimal ACL to use to access the
    directory.  For example, you might use:

    access to *
       by * read

    You won't want this ACL when you move to production
    probably, but it will allow you to look at the directory
    entries easily while you are learning.

 2. Create and LDIF file with entries that you want to add to
    the directory.

 3. Stop the slapd process, delete the current database files,
    load the directory with your LDIF file using slapcat,
    restart the slapd process.

At this point you should have a running directory server that you can query with tools like ldapsearch or Thunderbird or whatever client makes sense given the entries that you have loaded. That should get you started.


Bill MacAllister <whm@stanford.edu>
Systems Software Programmer, ITS Unix Systems, Stanford University