Hi all, I installed openldap on windows and successfully started the server. My slapd.conf file is :
# # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # ucdata-path ./ucdata include ./schema/core.schema
pidfile ./run/slapd.pid argsfile ./run/slapd.args
####################################################################### # BDB database definitions #######################################################################
database bdb suffix "dc=org" rootdn "cn=admin,dc=org" # Cleartext passwords, especially for the rootdn, should # be avoid. See slappasswd(8) and slapd.conf(5) for details. # Use of strong authentication encouraged. rootpw {SSHA}XXXXXXXXXXXXXXXXXXXXXXXX # The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd and slap tools. # Mode 700 recommended. directory ./data # Indices to maintain index objectClass eq #database access control definitions access to * by dn="cn=admin,dc=org" write by * read
Now, I wanted to add the following entry to the file using ldapadd:
dn: cn=sailesh,dc=org objectclass:person sn:sailesh Descriptiom: user
It returned the following error :
request 1 done adding entry "cn=sailesh,dc=novell" request 2 done
ldap_add : No such object (32)
What is the mistake in that? Please help me in this regard.
Thanks in advance, D.Sailesh Kumar.
On Wednesday 18 October 2006 12:24, Sailesh D wrote:
Hi all, I installed openldap on windows and successfully started the server. My slapd.conf file is :
# # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # ucdata-path ./ucdata include ./schema/core.schema
pidfile ./run/slapd.pid argsfile ./run/slapd.args
####################################################################### # BDB database definitions #######################################################################
database bdb suffix "dc=org" rootdn "cn=admin,dc=org" # Cleartext passwords, especially for the rootdn, should # be avoid. See slappasswd(8) and slapd.conf(5) for details. # Use of strong authentication encouraged. rootpw {SSHA}XXXXXXXXXXXXXXXXXXXXXXXX # The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd and slap tools. # Mode 700 recommended. directory ./data # Indices to maintain index objectClass eq #database access control definitions access to * by dn="cn=admin,dc=org" write by * read
Now, I wanted to add the following entry to the file using ldapadd:
dn: cn=sailesh,dc=org objectclass:person sn:sailesh Descriptiom: user
It returned the following error :
request 1 done adding entry "cn=sailesh,dc=novell" request 2 done
ldap_add : No such object (32)
Well, I'm guessing the LDAP server doesn't know anything about "dc=novell".
So, unless you've massaged half of your example, and not the other, you've got some typos, and the ldif above is *not* what you are trying to ldapadd.
Regards, Buchan
When your database suffix is
suffix "dc=org"
you can't expect to ldapadd
adding entry "cn=sailesh,dc=novell"
because there is no database that serves "dc=novell".
Either configure a database with an appropriate suffix, or change the entry you are attempting to ldapadd to match "dc=org".
"Sailesh D" dsailesh@novell.com writes:
Hi all, I installed openldap on windows and successfully started the server. My slapd.conf file is :
[...]
database bdb suffix "dc=org"
[...]
dn: cn=sailesh,dc=org objectclass:person sn:sailesh Descriptiom: user
It returned the following error :
request 1 done adding entry "cn=sailesh,dc=novell" request 2 done
ldap_add : No such object (32)
What is the mistake in that? Please help me in this regard.
The objectclass person requires the attribute types cn and sn, that is:
dn: cn=sailesh,dc=org objectclass: person sn: sailesh cn: sailesh description: user
-Dieter
openldap-software@openldap.org