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

Re: (ITS#7765) Crash when adding syncrepl configuration in cn=config without search base



--001a11c3c678534ebd04fbf0f3b5
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

2014-05-23 16:09 GMT+02:00 <hyc@symas.com>:

> coudot@linagora.com wrote:
> > Full_Name: Cl=C3=A9ment 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=3Dconfig, OpenLDAP crashe=
d.
> >
> > The syslog output is:
> >
> > Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D0 BIND dn=3D"cn=3Dco=
nfig"
> method=3D128
> > Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D0 BIND dn=3D"cn=3Dco=
nfig"
> mech=3DSIMPLE
> > ssf=3D0
> > Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D0 RESULT tag=3D97 er=
r=3D0
> text=3D
> > Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D1 MOD
> > dn=3D"olcDatabase=3D{2}mdb,cn=3Dconfig"
> > Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D1 MOD attr=3Dolcacce=
ss
> olcdbindex
> > olcsyncrepl
> > Dec 16 11:56:42 ader slapd[8707]: olcSyncrepl: value #0: Error: Malform=
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=
d
> >
> >
> > I have no gdb trace to give for now, if you think it is required, I wil=
l
> try to
> > find time to do it. But it should be easy to reproduce the issue on you=
r
> side.
>
> Please provide your exact ldapmodify request and the database config befo=
re
> the modify attempt, thanks.
>


Hi,

I tried to reproduce with 2.4.39, without success:

539ebd5e conn=3D1000 fd=3D12 ACCEPT from IP=3D127.0.0.1:56063 (IP=3D0.0.0.0=
:5389)
539ebd5e conn=3D1000 op=3D0 BIND dn=3D"cn=3Dconfig" method=3D128
539ebd5e conn=3D1000 op=3D0 BIND dn=3D"cn=3Dconfig" mech=3DSIMPLE ssf=3D0
539ebd5e conn=3D1000 op=3D0 RESULT tag=3D97 err=3D0 text=3D
539ebd5e conn=3D1000 op=3D1 MOD dn=3D"olcDatabase=3D{2}mdb,cn=3Dconfig"
539ebd5e conn=3D1000 op=3D1 MOD attr=3DolcSyncrepl
539ebd5e olcSyncrepl: value #0: Error: Malformed "syncrepl" line in slapd
config file, missing searchbase.
539ebd5e failed to add syncinfo
539ebd5e conn=3D1000 op=3D1 RESULT tag=3D103 err=3D80 text=3DError: Malform=
ed
"syncrepl" line in slapd config file, missing searchbase
539ebd5e conn=3D1000 op=3D2 UNBIND
539ebd5e conn=3D1000 fd=3D12 closed


So it seems there is no more issue with the latest OpenLDAP version.


Cl=C3=A9ment.

--001a11c3c678534ebd04fbf0f3b5
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">2014-05-23 16:09 GMT+02:00  <span dir=3D"ltr">&lt;<a href=3D"mailto=
:hyc@symas.com" target=3D"_blank">hyc@symas.com</a>&gt;</span>:<br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px=
 solid rgb(204,204,204);padding-left:1ex">
<a href=3D"mailto:coudot@linagora.com";>coudot@linagora.com</a> wrote:<br>
&gt; Full_Name: Cl=C3=A9ment OUDOT<br>
&gt; Version: 2.4.38<br>
&gt; OS: GNU/Linux<br>
&gt; URL: <a href=3D"ftp://ftp.openldap.org/incoming/"; target=3D"_blank">ft=
p://ftp.openldap.org/incoming/</a><br>
&gt; Submission from: (NULL) (88.173.78.196)<br>
&gt;<br>
&gt;<br>
&gt; When adding an olcSyncrepl attribute in my cn=3Dconfig, OpenLDAP crash=
ed.<br>
&gt;<br>
&gt; The syslog output is:<br>
&gt;<br>
&gt; Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D0 BIND dn=3D&quot;c=
n=3Dconfig&quot; method=3D128<br>
&gt; Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D0 BIND dn=3D&quot;c=
n=3Dconfig&quot; mech=3DSIMPLE<br>
&gt; ssf=3D0<br>
&gt; Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D0 RESULT tag=3D97 e=
rr=3D0 text=3D<br>
&gt; Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D1 MOD<br>
&gt; dn=3D&quot;olcDatabase=3D{2}mdb,cn=3Dconfig&quot;<br>
&gt; Dec 16 11:56:42 ader slapd[8707]: conn=3D1096 op=3D1 MOD attr=3Dolcacc=
ess olcdbindex<br>
&gt; olcsyncrepl<br>
&gt; Dec 16 11:56:42 ader slapd[8707]: olcSyncrepl: value #0: Error: Malfor=
med<br>
&gt; &quot;syncrepl&quot; line in slapd config file, missing searchbase.<br=
>
&gt; Dec 16 11:56:42 ader slapd[8707]: failed to add syncinfo<br>
&gt; Dec 16 11:56:42 ader slapd[8707]: ch_calloc of 1 elems of 0 bytes fail=
ed<br>
&gt;<br>
&gt;<br>
&gt; I have no gdb trace to give for now, if you think it is required, I wi=
ll try to<br>
&gt; find time to do it. But it should be easy to reproduce the issue on yo=
ur side.<br>
<br>
Please provide your exact ldapmodify request and the database config before=
<br>
the modify attempt, thanks.<br>
<span class=3D""></span></blockquote><div><br><br></div><div>Hi,<br><br></d=
iv><div>I tried to reproduce with 2.4.39, without success:<br><br>539ebd5e =
conn=3D1000 fd=3D12 ACCEPT from IP=3D<a href=3D"http://127.0.0.1:56063";>127=
.0.0.1:56063</a> (IP=3D<a href=3D"http://0.0.0.0:5389";>0.0.0.0:5389</a>)<br=
>
539ebd5e conn=3D1000 op=3D0 BIND dn=3D&quot;cn=3Dconfig&quot; method=3D128<=
br>539ebd5e conn=3D1000 op=3D0 BIND dn=3D&quot;cn=3Dconfig&quot; mech=3DSIM=
PLE ssf=3D0<br>539ebd5e conn=3D1000 op=3D0 RESULT tag=3D97 err=3D0 text=3D<=
br>539ebd5e conn=3D1000 op=3D1 MOD dn=3D&quot;olcDatabase=3D{2}mdb,cn=3Dcon=
fig&quot;<br>
539ebd5e conn=3D1000 op=3D1 MOD attr=3DolcSyncrepl<br>539ebd5e olcSyncrepl:=
 value #0: Error: Malformed &quot;syncrepl&quot; line in slapd config file,=
 missing searchbase.<br>539ebd5e failed to add syncinfo<br>539ebd5e conn=3D=
1000 op=3D1 RESULT tag=3D103 err=3D80 text=3DError: Malformed &quot;syncrep=
l&quot; line in slapd config file, missing searchbase<br>
539ebd5e conn=3D1000 op=3D2 UNBIND<br>539ebd5e conn=3D1000 fd=3D12 closed<b=
r><br><br></div><div>So it seems there is no more issue with the latest Ope=
nLDAP version.<br><br><br></div><div>Cl=C3=A9ment. <br></div></div></div></=
div>

--001a11c3c678534ebd04fbf0f3b5--