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

my sample config



Earl Robinson writes:
 > i'm ataching my config files here as well as how i'm trying to do this.
 > I appreciate everyone's help so far. please continue.
 > ========================
 > /etc/openldap/slapd.conf:
 > 
 > include         /etc/openldap/slapd.at.conf
 > include         /etc/openldap/slapd.oc.conf
 > schemacheck     off
 > 
 > pidfile         /var/run/slapd.pid
 > argsfile        /var/run/slapd.args
 > 
 > database        ldbm
 > defaultaccess   write
 > suffix          "dc=bogus, dc=com"
 > rootdn          "cn=Manager dc=bogus, dc=com"
 > rootpw          secret
 > 
 > ========================
 > ~earl/ldap/bogus.ldif :
 > 
 > dn: dc=bogus, dc=com
 > dc: bogus
 > o: Bogus Corp
 > objectclass: organization
 > objectcalss: dcobject
          ^
	   typo?

 > 
 > dn: cn=Manager, dc=bogus, dc=com
 > dc: Manager
 > sn: Manager
 > objectclass: person
 > 
 > ============================
 > here's the server log:
 > [root@tokyo openldap]# /usr/sbin/slapd -d 3 -f /etc/openldap/slapd.conf
 > slapd 1.2.7-Release (Mon Sep 13 19:55:39 EDT 1999)
 >         root@porky.devel.redhat.com:/usr/src/bs/BUILD/ldap/servers/slapd
 > 
 > slapd starting
 > do_bind
 > do_bind: version 2 dn () method 128
 > send_ldap_result 0::
 > do_add
 > => dn2id( "DC=BOGUS,DC=COM" )
 > => ldbm_cache_open( "/usr/tmp/dn2id.dbb", 7, 600 )
 > <= ldbm_cache_open (opened 0)
 > <= dn2id NOID
 > no parent & not root
 > send_ldap_result 50::
 > do_unbind
 > 
 > =============================
 > here's what I get from the shell:
 > 
 > [earl@tokyo ldap]$ ldapadd -f bogus.ldif
 > adding new entry dc=bogus, dc=com
 > ldap_add: Insufficient access
 > =============================

the syntax for ldapadd is:

  ldapadd -w secret -D 'cn=Manager, dc=bogus, dc=com' -f bogus.ldif

you should see one message for each entry added.
Then try searching:

  ldapsearch -b 'dc=bogus, dc=com' 'objectclass=*'

you should see all your data.

FYI: the instructions in the FAQ quick start do work for me.

Bill A