From clem.oudot@gmail.com Mon Jun 16 09:50:48 2014 From: clem.oudot@gmail.com To: openldap-bugs@openldap.org Subject: Re: (ITS#7765) Crash when adding syncrepl configuration in cn=config without search base Date: Mon, 16 Jun 2014 09:50:48 +0000 Message-ID: <201406160950.s5G9omNY005233@boole.openldap.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0142880329177002432==" --===============0142880329177002432== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable --001a11c3c678534ebd04fbf0f3b5 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: quoted-printable 2014-05-23 16:09 GMT+02:00 : > coudot(a)linagora.com wrote: > > Full_Name: Cl=3DC3=3DA9ment OUDOT > > Version: 2.4.38 > > OS: GNU/Linux > > URL: ftp://ftp.openldap.org/incoming/ > > Submission from: (NULL) (88.173.78.196) > > > > > > When adding an olcSyncrepl attribute in my cn=3D3Dconfig, OpenLDAP crashe= =3D d. > > > > The syslog output is: > > > > Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D0 BIND dn=3D3D"cn= =3D3Dco=3D nfig" > method=3D3D128 > > Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D0 BIND dn=3D3D"cn= =3D3Dco=3D nfig" > mech=3D3DSIMPLE > > ssf=3D3D0 > > Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D0 RESULT tag=3D3D9= 7 er=3D r=3D3D0 > text=3D3D > > Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D1 MOD > > dn=3D3D"olcDatabase=3D3D{2}mdb,cn=3D3Dconfig" > > Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D1 MOD attr=3D3Dolc= acce=3D ss > olcdbindex > > olcsyncrepl > > Dec 16 11:56:42 ader slapd[8707]: olcSyncrepl: value #0: Error: Malform=3D ed > > "syncrepl" line in slapd config file, missing searchbase. > > Dec 16 11:56:42 ader slapd[8707]: failed to add syncinfo > > Dec 16 11:56:42 ader slapd[8707]: ch_calloc of 1 elems of 0 bytes faile=3D d > > > > > > I have no gdb trace to give for now, if you think it is required, I wil=3D l > try to > > find time to do it. But it should be easy to reproduce the issue on you=3D r > side. > > Please provide your exact ldapmodify request and the database config befo=3D re > the modify attempt, thanks. > Hi, I tried to reproduce with 2.4.39, without success: 539ebd5e conn=3D3D1000 fd=3D3D12 ACCEPT from IP=3D3D127.0.0.1:56063 (IP=3D3D0= .0.0.0=3D :5389) 539ebd5e conn=3D3D1000 op=3D3D0 BIND dn=3D3D"cn=3D3Dconfig" method=3D3D128 539ebd5e conn=3D3D1000 op=3D3D0 BIND dn=3D3D"cn=3D3Dconfig" mech=3D3DSIMPLE s= sf=3D3D0 539ebd5e conn=3D3D1000 op=3D3D0 RESULT tag=3D3D97 err=3D3D0 text=3D3D 539ebd5e conn=3D3D1000 op=3D3D1 MOD dn=3D3D"olcDatabase=3D3D{2}mdb,cn=3D3Dcon= fig" 539ebd5e conn=3D3D1000 op=3D3D1 MOD attr=3D3DolcSyncrepl 539ebd5e olcSyncrepl: value #0: Error: Malformed "syncrepl" line in slapd config file, missing searchbase. 539ebd5e failed to add syncinfo 539ebd5e conn=3D3D1000 op=3D3D1 RESULT tag=3D3D103 err=3D3D80 text=3D3DError:= Malform=3D ed "syncrepl" line in slapd config file, missing searchbase 539ebd5e conn=3D3D1000 op=3D3D2 UNBIND 539ebd5e conn=3D3D1000 fd=3D3D12 closed So it seems there is no more issue with the latest OpenLDAP version. Cl=3DC3=3DA9ment. --001a11c3c678534ebd04fbf0f3b5 Content-Type: text/html; charset=3DUTF-8 Content-Transfer-Encoding: quoted-printable



2014-05-23 16:09 GMT+02:00 <hyc(a)symas.com>:
coudot(a)linagora.com wrote: > Full_Name: Cl=3DC3=3DA9ment OUDOT
> Version: 2.4.38
> OS: GNU/Linux
> URL: = ft=3D p://ftp.openldap.org/incoming/
> Submission from: (NULL) (88.173.78.196)
>
>
> When adding an olcSyncrepl attribute in my cn=3D3Dconfig, OpenLDAP crash= =3D ed.
>
> The syslog output is:
>
> Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D0 BIND dn=3D3D&qu= ot;c=3D n=3D3Dconfig" method=3D3D128
> Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D0 BIND dn=3D3D&qu= ot;c=3D n=3D3Dconfig" mech=3D3DSIMPLE
> ssf=3D3D0
> Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D0 RESULT tag=3D3D= 97 e=3D rr=3D3D0 text=3D3D
> Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D1 MOD
> dn=3D3D"olcDatabase=3D3D{2}mdb,cn=3D3Dconfig"
> Dec 16 11:56:42 ader slapd[8707]: conn=3D3D1096 op=3D3D1 MOD attr=3D3Dol= cacc=3D ess olcdbindex
> olcsyncrepl
> Dec 16 11:56:42 ader slapd[8707]: olcSyncrepl: value #0: Error: Malfor=3D med
> "syncrepl" line in slapd config file, missing searchbase. > Dec 16 11:56:42 ader slapd[8707]: failed to add syncinfo
> Dec 16 11:56:42 ader slapd[8707]: ch_calloc of 1 elems of 0 bytes fail=3D ed
>
>
> I have no gdb trace to give for now, if you think it is required, I wi=3D ll try to
> find time to do it. But it should be easy to reproduce the issue on yo=3D ur side.

Please provide your exact ldapmodify request and the database config before=3D
the modify attempt, thanks.


Hi,

I tried to reproduce with 2.4.39, without success:

539ebd5e =3D conn=3D3D1000 fd=3D3D12 ACCEPT from IP=3D3D127=3D .0.0.1:56063 (IP=3D3D0.0.0.0:5389)<= br=3D > 539ebd5e conn=3D3D1000 op=3D3D0 BIND dn=3D3D"cn=3D3Dconfig" method= =3D3D128<=3D br>539ebd5e conn=3D3D1000 op=3D3D0 BIND dn=3D3D"cn=3D3Dconfig" mech= =3D3DSIM=3D PLE ssf=3D3D0
539ebd5e conn=3D3D1000 op=3D3D0 RESULT tag=3D3D97 err=3D3D0 = text=3D3D<=3D br>539ebd5e conn=3D3D1000 op=3D3D1 MOD dn=3D3D"olcDatabase=3D3D{2}mdb,cn= =3D3Dcon=3D fig"
539ebd5e conn=3D3D1000 op=3D3D1 MOD attr=3D3DolcSyncrepl
539ebd5e olcSyncr= epl:=3D value #0: Error: Malformed "syncrepl" line in slapd config file,=3D missing searchbase.
539ebd5e failed to add syncinfo
539ebd5e conn=3D3D= =3D 1000 op=3D3D1 RESULT tag=3D3D103 err=3D3D80 text=3D3DError: Malformed "s= yncrep=3D l" line in slapd config file, missing searchbase
539ebd5e conn=3D3D1000 op=3D3D2 UNBIND
539ebd5e conn=3D3D1000 fd=3D3D12 cl= osed

So it seems there is no more issue with the latest Ope=3D nLDAP version.


Cl=3DC3=3DA9ment.
= --001a11c3c678534ebd04fbf0f3b5-- --===============0142880329177002432==--