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

RE: Ok, I'll show my ignorance...please help...?



> So far I've grabbed openldap 1.2 and installed it on a redhat 5.2
> system.  Or
> at least it said it passed all of it's tests.  But now what???  This seems
> silly, but even it works, what the heck do I do with it now?  Is there a
> roadmap of how to start using the ldap server that I'm missing, because I
> don't see simple solutions to things like how to start an ldap
> database from
> scratch, how to add my first entry, etc.  Everything's installed with the
> completely unedited defaults, except for changing the "Your xxx"
> spots in the
> slapd.conf file.
>
> The manual page for ldap.conf says:
> EXAMPLE
>        "The SLAPD and SLURPD Administrator's Guide"  contains  an
>        annotated example of a configuration file.
>
> But that guide's just from the old umich stuff, right?  I've tried half a

It's OK, it hasn't changed that much.

> dozen different guesses, based on looking at that guide, at the
> man pages, at
> the FAQ on how to set up the first database for the ldap RPM,
> etc, but nothing
> seems to work.

You seem to be at about step 7 at
http://www.umich.edu/~dirsvcs/ldap/doc/guides/slapd/2.html#RTFToC8.
You need to create an ldif file and use it to create the initial database.
>
> My current slapd.conf is attached.  At the moment, all I can get
> out of the
> thing is either "Can't chase referral" or "DSA is unwilling to
> perform", and
> the faqs on each of those messages don't seem appropriate.

You usually have to "bind" to the database with a username/password that it
knows about.  Initially that will be the root user defined in
/etc/openldap/ldap.conf.  If you add new users, each user entry can have a
"userpassword" entry under it with that user's password, and then that user
will also be able to log in.

I would recommend the JNDI browser that comes with the JNDI distribution
from Sun as a decent way to add stuff to the database by hand, once you get
it basically working.  xax500 (or wax500) is the other choice but xax500
requires motif and you have to compile it yourself (if memory serves... I
didn't succeed...).