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

pb inserting row in LDAP directorie



Hello,

I am a newbies in LDAP and I can't insert any row in my directorie, and despite of my effort I don't understand why .
I give you the config ang log information.


Thanks for your help

Daniel


OS:

FreeBSD XXX.XXXX.com 5.3-RC1 FreeBSD 5.3-RC1 #0: Sun Oct 17 01:25:37 UTC 2004 root@wv1u.samsco.home:/usr/obj/usr/src/sys/GENERIC i386


config slapd:

include         /usr/local/etc/openldap/schema/core.schema
loglevel                4
pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args

database        bdb
suffix          "dc=my-domain,dc=com"
rootdn          "cn=Manager,dc=my-domain,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory       /var/db/openldap-data
# Indices to maintain
index   objectClass     eq

Launching slapd log:


Jun 28 12:04:33 dragon slapd[31268]: @(#) $OpenLDAP: slapd 2.2.15 (Jun 22 2005 18:53:27) $ me@XXX.XXXXX.com:/usr/ports/net/openldap22-server/work/openldap-2.2.15/servers/slapd
Jun 28 12:04:33 dragon slapd[31268]: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
Jun 28 12:04:33 dragon slapd[31268]: bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
Jun 28 12:04:33 dragon slapd[31268]: bdb_db_init: Initializing bdb database
Jun 28 12:04:33 dragon slapd[31269]: bdb_db_open: dc=my-domain,dc=com
Jun 28 12:04:33 dragon slapd[31269]: slapd starting



I can see the files of my directorie:

# ls -ld openldap-data/
drwx------  2 root  wheel  512 Jun 28 12:04 openldap-data/

# ls -l openldap-data/
total 562
-rw-------  1 root  wheel    8192 Jun 28 12:07 __db.001
-rw-------  1 root  wheel  270336 Jun 28 12:07 __db.002
-rw-------  1 root  wheel   98304 Jun 28 12:04 __db.003
-rw-------  1 root  wheel  368640 Jun 28 12:07 __db.004
-rw-------  1 root  wheel   24576 Jun 28 12:07 __db.005
-rw-------  1 root  wheel    8192 Jun 28 12:04 dn2id.bdb
-rw-------  1 root  wheel   32768 Jun 28 12:04 id2entry.bdb
-rw-------  1 root  wheel   41998 Jun 28 12:04 log.0000000001

trying insirting a row:

the LDIF file:

dn: o=test,dc=my-domain,dc=com
objectClass: organization
o: test

the command anf the result:

# ldapadd -f /usr/local/etc/openldap/insert_row -D "cn=Manager,dc=my-domain,dc=com" -x -w secret -v
ldap_initialize( <DEFAULT> )
add objectClass:
organization
add o:
test
adding new entry "o=test,dc=my-domain,dc=com"
modify complete
ldap_add: No such object (32)



the log around my command:


Jun 28 12:06:44 dragon slapd[31269]: connection_get(14)
Jun 28 12:06:44 dragon slapd[31269]: ==> bdb_bind: dn: cn=Manager,dc=my-domain,dc=com
Jun 28 12:06:44 dragon slapd[31269]: send_ldap_result: err=0 matched="" text=""
Jun 28 12:06:44 dragon slapd[31269]: connection_get(14)
Jun 28 12:06:44 dragon slapd[31269]: do_add: dn (o=test,dc=my-domain,dc=com)
Jun 28 12:06:44 dragon slapd[31269]: ==> bdb_add: o=test,dc=my-domain,dc=com
Jun 28 12:06:44 dragon slapd[31269]: send_ldap_result: err=32 matched="" text=""
Jun 28 12:06:44 dragon slapd[31269]: connection_get(14)