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

Re: OpenLDAP crash on write operation with syncprov overlay enabled

Alexandre Biancalana wrote:
Hi list,

  I'm migration an OpenLDAP server from Debian linux to FreeBSD 6-STABLE.

I exported the database from old server with slapcat and impoted at Free without any problems. But when I enable syncprov overlay and do any write operation (ie.: ldapmodify) on the base the OpenLDAP crash with signal 11.

Read the Admin Guide http://www.openldap.org/doc/admin23/syncrepl.html

Your syncprov overlay needs to be configured on an actual database. Currently you have it in the global section, which is wrong.

Follow my slapd.conf: ============================

include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/nis.schema
include         /usr/local/etc/openldap/schema/samba.schema

loglevel        1 8 16 256 512 16384
pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args

modulepath      /usr/local/libexec/openldap
moduleload      back_hdb

sizelimit unlimited

overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 200

access to dn.base="" by self write by * auth

access to attrs=userPassword
                by self write
                by * auth

access to attrs=shadowLastChange
                by self write
                by * read

access to *
                by * read
                by anonymous auth

database        hdb

suffix         "dc=company,dc=com"
rootdn         "cn=root,dc=company,dc=com"
rootpw         my_secret_password

directory       /var/db/openldap-data

index objectClass           eq
index cn                    pres,sub,eq
index sn                    pres,sub,eq
index uid                   pres,sub,eq
index displayName           pres,sub,eq
index uidNumber             eq
index gidNumber             eq
index memberUID             eq
index sambaSID              eq
index sambaPrimaryGroupSID  eq
index sambaDomainName       eq
index default               sub
index entryCSN              eq
index entryUUID             eq

I'm very pleased to someone that could help me to figure out where is the problem....

Best Regards,

Alexandre Biancalana

  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc
  OpenLDAP Core Team            http://www.openldap.org/project/