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

Re: linuxppc problems



I had a similar problem which boiled down to not specifying access rights in
slapd.conf.  Try something like this:

# cleartext passwords, especially for the rootdn, should
# be avoid.  See slapd.conf(5) for details.

directory       /var/lib/ldap

sizelimit       200000

defaultaccess   none

access          to attr=userpassword
                by self write
                by * compare

access          to *
                by self write
                by * read

I put the "sizelimit 200000" after having problems retrieving more than a
hundred or so entries from the database.  I've forgotten how the rest of it
works but it sets up access rights fine for my network.

  Iain




on 7/7/00 4:10 pm, josh abbott at transistur@hotmail.com wrote:

> 
>>> hello, im pretty new, i read implementing ldap by mark wilcox and jsut
>> got
>>> implementing directory services by archie reed, im pretty sure i got the
>>> basic theory down, its just i was going off the openldap quickstart site
>> and
>>> i keep getting ldap_bind: Can't contact LDAP server, and i've been
>> following
>>> your quickstart guide and trouble shooting faqs, but dont know whats
>> wrong. when i comment everything out in the ldap.conf or comment everything
>> except the BASE and HOST i get the ldap_bind: no such object error when i
>> try to ldapadd -D "cn=Manager, dc=beth, dc=k12, dc=pa, dc=us" -W <
>> myldif.ldif
> 
>>> i start my server like it says in the quickstart guide->
>>> /usr/sbin/slapd -f /etc/openldap/slapd.conf
>>> 
>>> here are my config files, see anything wrong ?
>>> heres my ldap.conf
>>> #
>>> # LDAP Defaults
>>> #
>>> 
>>> # See ldap.conf(5) for details
>>> # This file should be world readable.
>>> 
>>> BASE    dc=beth, dc=k12, dc=pa, dc=us
>>> HOST    nc-99.beth.k12.pa.us
>>> 
>>> HOST    nc-99.beth.k12.pa.us:666
>>> PORT    389
>>> 
>>> SIZELIMIT       12
>>> TIMELIMIT       15
>>> DEREF           never
>>> 
>>> heres my slapd.conf
>>> 
>>> include         /etc/openldap/slapd.at.conf
>>> include         /etc/openldap/slapd.oc.conf
>>> schemacheck     off
>>> #referral       ldap://root.openldap.org/
>>> pidfile         /var/run/slapd.pid
>>> rgsfile        /var/run/slapd.args
>>> #################################################################
>>> # ldbm database definitions
>>> #######################################################################
>>> 
>>> database        ldbm
>>> suffix          "dc=beth, dc=k12, dc=pa, dc=us"
>>> #suffix         "o=My Organization Name, c=US"
>>> rootdn          "cn=Manager, dc=beth, dc=k12, dc=pa, dc=us"
>>> #rootdn         "cn=Manager, o=My Organization Name, c=US"
>>> rootpw          secret
>>> # cleartext passwords, especially for the rootdn, should
>>> # be avoid.  See slapd.conf(5) for details.
>>> directory       /var/lib/ldap
>>> 
>>> and heres myldif.ldif
>>> 
>>> dn: dc=beth, dc=k12, dc=pa, dc=us
>>> dc: beth
>>> o: basd
>>> objectclass: organization
>>> objectclass: dcObject
>>> 
>>> dn: cn=Manager, dc=beth, dc=k12, dc=pa, dc=us
>>> cn: Manager
>>> sn: Manager
>>> objectclass: person
>>> _____________________________________________________________________
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com