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

Re: New DC

--On Saturday, May 16, 2009 06:28:07 AM -0400 Tech Only <stech.only@gmail.com> wrote:

thanks much. If I understand correctly, what I need to do is, stop
all ldap daemons and delete the existing db files and hack the
slapd.conf file with the entries and DN I want and start the ldap
daemons and I am in business :)

is this is correct? I will try this on Monday and get back to you.

Yup, that is basically it.


On Sat, May 16, 2009 at 2:16 AM, Bill MacAllister <whm@stanford.edu>

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


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