[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Error while using relay
On Wednesday 03 June 2009 13:13:34 Venish Khant wrote:
> Hallvard B Furuseth wrote:
> > Right, Relay doesn't support slapadd. But you can use ldapadd
> > to add the entries over the protocol.
> >
> > Or you can slapadd to the bdb database. That is, use slapadd -b
> > dc=example,dc=com and use entries ending with dc=example,dc=com.
>
> I tried to add base entry like,
>
> ldapadd -xD uid=easypush,ou=public,dc=play,dc=com -w test
> dn: dc=play,dc=com
> o: play
> dc: play
> objectClass: top
> objectClass: organization
> objectClass: dcObject
>
> it's give me error like
>
> adding new entry "dc=play,dc=com"
> ldap_add: No such object (32)
>
>
>
> This is the configuration of relay database
>
> moduleload /usr/lib/ldap/back_relay.so
> database relay
> suffix "dc=play,dc=com"
> relay "dc=example,dc=com"
> rootdn "uid=test,ou=public,dc=play,dc=com"
> rootpw test
>
> access to dn.subtree="dc=play,dc=com"
> by dn="uid=test,ou=public,dc=play,dc=com" write
> by self write
> by users read
You need to first create every parent entry, starting with the entry for the
suffix (dc=play,dc=com), before you can create its children. There is no
equivalent of 'mkdir -p' ...
So, you need to create dc=play,dc=com, then ou=public,dc=play,dc=com, then the
entry above.
Regards,
Buchan