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

Re: no such object



Yan,

It looks like your DNs are in reverse order.  For example,

dn: c=US, o=Cardinal Engineering, ou=client
  should be:
dn:  ou=client, o=Cardinal Engineering, c=US

and

dn: c=US, o=Cardinal Engineering, ou=staff, cn=Yan Seiner
  should be 
dn:  cn=Yan Seiner, ou=staff, o=Cardinal Engineering, c=US

For your O and OU entires you should also have the following
(repectively):

objectclass: organization
objectclass: organizationalUnit

And for "people" you may want to include the following
object classes, depending on your needs:

objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson


-- 
Tim Peterman - Unix & Web Server Administration
Lockheed Martin GES/EIS, Moorestown, NJ
mailto:timothy.p.peterman@lmco.com


Yan Seiner wrote:
> 
> I forgot to add that the system passes all the tests with flying colors,
> so the problem is in my ignorance/config, not with LDAP.
> 
> Yan
> 
> Yan Seiner wrote:
> >
> > I am a total LDAP newbie.  I've been though the archives, and I see that
> > this has been a hot topic.  I've tried a number of the solutions given,
> > but I still end up with the same error message.
> >
> > I've also downloaded the Admin Guide, but not all of the config info
> > seems to apply to OpenLDAP 1.2.
> >
> > No matter what I try, I get "no such object" when trying to add any
> > item.
> >
> > I am trying to set up a rolodex-type system that is accessible from NS
> > 4.5, and where everyone has write access.
> >
> > If anyone has a simple rolodex config they'd be willing to share, along
> > with a recommendation for a Win32 client, I would be most grateful.
> >
> > Thanks.
> >
> > Yan Seiner
> >
> > Here's my config file:
> > ****************************************************************
> > #
> > # See slapd.conf(5) for details on configuration options.
> > # This file should NOT be world readable.
> > #
> > include         /usr/local/etc/openldap/slapd.at.conf
> > include         /usr/local/etc/openldap/slapd.oc.conf
> > schemacheck     off
> >
> > #pidfile                /usr/local/var/slapd.pid
> > #argsfile       /usr/local/var/slapd.args
> >
> > #######################################################################
> > # ldbm database definitions
> > #######################################################################
> >
> > database        ldbm
> > suffix          "o=Cardinal Engineering, c=US"
> > directory       /home/ldap
> > rootdn          "cn=root, o=Cardinal Engineering, c=US"
> > rootpw          secret
> > defaultaccess   write
> > # cleartext passwords, especially for the rootdn, should
> > # be avoid.  See slapd.conf(5) for details.
> >
> > This is what I used to create the database:
> > ********************************************************************
> > dn: c=US
> > objectclass: top
> > cn: United States
> >
> > dn: c=US, o=Cardinal Engineering
> > objectclass: top
> > cn: Cardinal Engineering
> >
> > dn: c=US, o=Cardinal Engineering, ou=client
> > objectclass: top
> > cn: client
> >
> > dn: c=US, o=Cardinal Engineering, ou=staff
> > objectclass: top
> > cn: staff
> >
> > And this is what I'm trying to add:
> > *********************************************************************
> > dn: c=US, o=Cardinal Engineering, ou=staff, cn=Yan Seiner
> > cn: Yan Seiner
> > objectclass: person