[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Newbie OpenLDAP woes
On Thu, 2008-07-10 at 13:21 -0700, Kristen Walker wrote:
> I am confused about how I have an empty dn. I am including my ldap.conf and
> slapd.conf as well as the ldif file I imported via the command line.
>
> >From what I can see, I have defined a suffix in slapd.conf. I imported
> basics.ldif with the command:
>
> Sudo slapadd -v -f /etc/ldap/salpd.conf -l basics.ldif
You should first run the slapd and then add the basics.ldif using
ldapadd.
>
> When I executed the command it seemed to do the import fine.
>
> The other thing I don't understand is what the password is for root DN
> (cn=Manager,dc=example,dc=com). To me it seems like the password is
> "secret" but when I type that in it rejects those credentials, so I am very
> confused as to what I am supposed to type in for a password. The only way I
> can seem to connect is by leaving the password out and connecting via an
> anonymous bind.
The set the password , run the command slappasswd and it would prompt
you for a password. It will returned the hashed result which you need to
copy to you slapd.conf .
Eg.
$ slappasswd
New password:
Re-enter new password:
{SSHA}Iq7/biIQnXZI7XVuqI40jlE1RgQUVPLr
The above hashed password is to be now copied to slapd.conf
rootpw {SSHA}Iq7/biIQnXZI7XVuqI40jlE1RgQUVPLr
Then restart the slapd and add the ldif using ldapadd command.
Follow the example in this link :
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch31_:_Centralized_Logins_Using_LDAP_and_RADIUS
Thanks
Sambuddho
> I apologize if I missing something really obvious, this is all new to me.
> And I really appreciate the help!
>
> -Kristen
>
>
> On 7/10/08 11:07 AM, "Dieter Kluenter" <dieter@dkluenter.de> wrote:
>
> > Hi,
> >
> > Kristen Walker <kwalker@sbceo.org> writes:
> >
> >> Hi everyone,
> >>
> >> I am new to OpenLDAP and this list. I joined because I am trying to set up
> >> an OpenLDAP server so that Moodle and ELGG can authenticate users from the
> >> LDAP server. It is a little more difficult than I thought it would be, and
> >> I am running into some frustrating problems that I don't understand. I am
> >> hoping someone here might be able to help.
> >>
> >> I am using Ubuntu and using the book Mastering OpenLDAP as my guide.
> >>
> >> I have the server set up, edited config files and installed phpldapadmin to
> >> make things a little easier for me. I added my first entries but do not see
> >> them when I do a search, and nothing appears under my base in phpldapadmin
> >> (see attached screen shot). I don't get any complaints when I add the
> >> entries from my .ldif file, so I just don't understand why they don't seem
> >> to end up in my directory.
> >>
> >>
> >> If I do this command, sudo slapcat -a '(uid=barbara)' , the result is:
> >>
> >> dn:
> >> ou: Users
> >> uid: barbara
> >> sn: Jensen
> > [...]
> >
> > This entry has an empty DN, thus is not stored in the database defined
> > by the suffix parameter in slapd.conf
> >
> > create propper entries as described in the OpenLDAP docs
> > http://www.openldap.org/doc/admin24/dbtools.html
> >
> > -Dieter
>
> --
> Kristen Walker
>
> Digital Media Resources Developer
> Instructional Media Services
> Santa Barbara County Education Office
> 4400 Cathedral Oaks Road
> P.O. Box 6307
> Santa Barbara, CA 93160-6307
> (805)964-4711 ext. 5244/FAX (805)683-3597
> kwalker@sbceo.org
> http://www.sbceoportal.org
>
>