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

Re: pb inserting row in LDAP directorie





--On Tuesday, June 28, 2005 4:08 PM +0200 Daniel Madaoui <daniel@logilune.com> wrote:

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/se rvers/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

You need to create a

dn: dc=my-domain,dc=com


object first.

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin