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

(ITS#3917) syncrepl cookie

Full_Name: Uwe Hering
Version: 2.3.4
OS: SLES9 ( 2.6.5-7.139-smp)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

Folling the man page the usage of "-c" failed if one is using a valid syncrepl
cookie like this:

slapd -c rid=123,csn=20050102151650Z#000000#00#000000

In case of a wrong csn-format slapd just uses a default one (1900....).

In case of the usage like above the slapd crashes with segmentation fault. The
reason seams to be that 



AttributeDescription *ad = slap_schema.si_ad_modifyTimestamp;

but schema information is not available yet.

slap_parse_sync_cookie is used in line 364 in servers/slapd/main.c, whereas
slap_schema_init is called in line 580.

Calling slap_schema_init before slap_parse_sync_cookie solves the problem.