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

Re: (ITS#7464) ldap_back_dobind_int breaking binded user



--20cf307811d0eb756704d0342092
Content-Type: text/plain; charset=ISO-8859-1

Actualy I had this before and that did not change anything. I don't think
this directive is used for this kind of "timeouts"...

I also tried :

*chase-referrals yes (this is default)*
*rebind-as-user yes (as suggested here)**
*
*single-conn yes (default to NO)**
*
*
*
I also tried some combinings of idassert-bind options with no luck (as the
backend does not support identity assertion).


2012/12/6 Pierangelo Masarati <masarati@aero.polimi.it>

>
> > --20cf307811d0d379c404d032d6ee
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Config is basic (with special timeout tests commented out) :
> >
> > database      ldap
> > suffix            "o=corp"
> > uri                 ldaps://10.100.120.153
> >
> > # close connection after a timeout
> > #idletimeout     100
> > # causes a cached connection to be dropped an recreated after a given ttl
> > #conn-ttl        4294967294
> > # close connection after a timeout for ldap backend
> > #idle-timeout    4294967294
> > # Discards current cached connection when the client rebinds - default to
> > No
> > #single-conn     no
>
>
> Try adding a "rebind-as-user" here.  This forces back-ldap to store
> client's credentials in order to rebind when needed (e.g. because a
> persistent connection timed out).
>
> p.
>
> > overlay         rwm
> > rwm-suffixmassage "o=corp" "o=int"
> >
> >
> > 2012/12/6 Pierangelo Masarati <masarati@aero.polimi.it>
> >
> >>
> >> > Full_Name: Sebastien Prune THOMAS
> >> > Version: slapd 2.4.31
> >> > OS: Linux CentOS
> >> > URL: ftp://ftp.openldap.org/incoming/
> >> > Submission from: (NULL) (206.167.157.64)
> >> >
> >> >
> >> > I use OpenLdap to proxy (with the module back-ldap) to a eDirectory
> >> LDAP
> >> > server.
> >> > Every once and a while I have long lasting connections re-binding as
> >> > anonymous,
> >> > breaking the actual bind.
> >> > This usualy happen after hitting either the idle-timeout or the
> >> conn-ttl
> >> > limit.
> >> > I wasn't able to find out what these values are when not set... but
> >> > setting them
> >> > low can help reproduce the problem :
> >>
> >> What is the configuration of back-ldap?  Can you post it (after
> >> sanitizing
> >> sensitive info)?
> >>
> >> p.
> >>
> >> --
> >> Pierangelo Masarati
> >> Associate Professor
> >> Dipartimento di Ingegneria Aerospaziale
> >> Politecnico di Milano
> >>
> >>
> >
> > --20cf307811d0d379c404d032d6ee
> > Content-Type: text/html; charset=ISO-8859-1
> > Content-Transfer-Encoding: quoted-printable
> >
> > <div style=3D"font-family:Tahoma;font-size:13px">Config is basic (with
> > spec=
> > ial timeout tests commented out) :</div><div
> > style=3D"font-family:Tahoma;fo=
> > nt-size:13px">=A0</div><div
> > style=3D"font-family:Tahoma;font-size:13px">dat=
> > abase =A0 =A0 =A0ldap<br>
> > suffix =A0 =A0 =A0 =A0 =A0
> > =A0&quot;o=3Dcorp&quot;<br>uri=A0=A0=A0=A0=A0=A0=
> > =A0=A0=A0=A0=A0=A0=A0 =A0 =A0<a>ldaps://10.100.120.153</a></div><div
> > style=
> > =3D"font-family:Tahoma;font-size:13px">=A0</div><div
> > style=3D"font-family:T=
> > ahoma;font-size:13px"># close connection after a timeout<br>
> > #idletimeout=A0=A0=A0=A0 100<br># causes a cached connection to be
> dropped
> > =
> > an recreated after a given ttl<br>#conn-ttl=A0=A0=A0=A0=A0=A0=A0
> > 4294967294=
> > <br># close connection after a timeout for ldap
> > backend<br>#idle-timeout=A0=
> > =A0=A0 4294967294<br># Discards current cached connection when the client
> > r=
> > ebinds - default to No<br>
> > #single-conn=A0=A0=A0=A0 no</div><div
> > style=3D"font-family:Tahoma;font-size=
> > :13px"><br>overlay=A0=A0=A0=A0=A0=A0=A0=A0 rwm<br>rwm-suffixmassage
> > &quot;o=
> > =3Dcorp&quot; &quot;o=3Dint&quot;</div><div
> > class=3D"gmail_extra"><br><br><=
> > div class=3D"gmail_quote">2012/12/6 Pierangelo Masarati <span
> > dir=3D"ltr">&=
> > lt;<a href=3D"mailto:masarati@aero.polimi.it";
> > target=3D"_blank">masarati@ae=
> > ro.polimi.it</a>&gt;</span><br>
> > <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0
> > .8ex;border-left:1p=
> > x #ccc solid;padding-left:1ex"><br>
> > &gt; Full_Name: Sebastien Prune THOMAS<br>
> > &gt; Version: slapd 2.4.31<br>
> > &gt; OS: Linux CentOS<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) (206.167.157.64)<br>
> > &gt;<br>
> > &gt;<br>
> > &gt; I use OpenLdap to proxy (with the module back-ldap) to a eDirectory
> > LD=
> > AP<br>
> > &gt; server.<br>
> > &gt; Every once and a while I have long lasting connections re-binding
> > as<b=
> > r>
> > &gt; anonymous,<br>
> > &gt; breaking the actual bind.<br>
> > &gt; This usualy happen after hitting either the idle-timeout or the
> > conn-t=
> > tl<br>
> > &gt; limit.<br>
> > &gt; I wasn&#39;t able to find out what these values are when not set...
> > bu=
> > t<br>
> > &gt; setting them<br>
> > &gt; low can help reproduce the problem :<br>
> > <br>
> > What is the configuration of back-ldap? =A0Can you post it (after
> > sanitizin=
> > g<br>
> > sensitive info)?<br>
> > <span class=3D"HOEnZb"><font color=3D"#888888"><br>
> > p.<br>
> > <br>
> > --<br>
> > Pierangelo Masarati<br>
> > Associate Professor<br>
> > Dipartimento di Ingegneria Aerospaziale<br>
> > Politecnico di Milano<br>
> > <br>
> > </font></span></blockquote></div><br></div>
> >
> > --20cf307811d0d379c404d032d6ee--
> >
> >
> >
> >
> >
>
>
> --
> Pierangelo Masarati
> Associate Professor
> Dipartimento di Ingegneria Aerospaziale
> Politecnico di Milano
>
>

--20cf307811d0eb756704d0342092
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<span style=3D"font-family:arial,sans-serif;font-size:13px">Actualy I had t=
his before and that did not change anything. I don&#39;t think this directi=
ve is used for this kind of &quot;timeouts&quot;...</span><br><div><span st=
yle=3D"font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x">I also tried :</span></div><div><span style=3D"font-family:arial,sans-se=
rif;font-size:13px"><br></span></div><div><b style=3D"color:rgb(0,0,0);font=
-family:arial,sans-serif;font-size:13px">chase-referrals yes (this is defau=
lt)</b><span style=3D"font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><b style=3D"color:rgb(0,0,0);font-family:arial,sans-serif=
;font-size:13px">rebind-as-user yes (as suggested here)</b><b style=3D"colo=
r:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br></b></div><di=
v>
<b style=3D"color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">s=
ingle-conn yes (default to NO)</b><b style=3D"color:rgb(0,0,0);font-family:=
arial,sans-serif;font-size:13px"><br></b></div><div><b style=3D"color:rgb(0=
,0,0);font-family:arial,sans-serif;font-size:13px"><br>
</b></div><div><span style=3D"color:rgb(0,0,0);font-family:arial,sans-serif=
;font-size:13px">I also tried some combinings of=A0</span><span style=3D"co=
lor:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">idassert-bind o=
ptions with no luck (as the backend does not support identity assertion).</=
span></div>
<div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">2012/12/6 Pie=
rangelo Masarati <span dir=3D"ltr">&lt;<a href=3D"mailto:masarati@aero.poli=
mi.it" target=3D"_blank">masarati@aero.polimi.it</a>&gt;</span><br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex">
<br>
&gt; --20cf307811d0d379c404d032d6ee<br>
&gt; Content-Type: text/plain; charset=3DISO-8859-1<br>
<div class=3D"im">&gt;<br>
&gt; Config is basic (with special timeout tests commented out) :<br>
&gt;<br>
&gt; database =A0 =A0 =A0ldap<br>
&gt; suffix =A0 =A0 =A0 =A0 =A0 =A0&quot;o=3Dcorp&quot;<br>
&gt; uri =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ldaps://<a href=3D"http://10.100.1=
20.153" target=3D"_blank">10.100.120.153</a><br>
&gt;<br>
&gt; # close connection after a timeout<br>
&gt; #idletimeout =A0 =A0 100<br>
&gt; # causes a cached connection to be dropped an recreated after a given =
ttl<br>
&gt; #conn-ttl =A0 =A0 =A0 =A04294967294<br>
&gt; # close connection after a timeout for ldap backend<br>
&gt; #idle-timeout =A0 =A04294967294<br>
&gt; # Discards current cached connection when the client rebinds - default=
 to<br>
&gt; No<br>
&gt; #single-conn =A0 =A0 no<br>
<br>
<br>
</div>Try adding a &quot;rebind-as-user&quot; here. =A0This forces back-lda=
p to store<br>
client&#39;s credentials in order to rebind when needed (e.g. because a<br>
persistent connection timed out).<br>
<br>
p.<br>
<div><div class=3D"h5"><br>
&gt; overlay =A0 =A0 =A0 =A0 rwm<br>
&gt; rwm-suffixmassage &quot;o=3Dcorp&quot; &quot;o=3Dint&quot;<br>
&gt;<br>
&gt;<br>
&gt; 2012/12/6 Pierangelo Masarati &lt;<a href=3D"mailto:masarati@aero.poli=
mi.it">masarati@aero.polimi.it</a>&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt; Full_Name: Sebastien Prune THOMAS<br>
&gt;&gt; &gt; Version: slapd 2.4.31<br>
&gt;&gt; &gt; OS: Linux CentOS<br>
&gt;&gt; &gt; URL: <a href=3D"ftp://ftp.openldap.org/incoming/"; target=3D"_=
blank">ftp://ftp.openldap.org/incoming/</a><br>
&gt;&gt; &gt; Submission from: (NULL) (206.167.157.64)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I use OpenLdap to proxy (with the module back-ldap) to a eDir=
ectory<br>
&gt;&gt; LDAP<br>
&gt;&gt; &gt; server.<br>
&gt;&gt; &gt; Every once and a while I have long lasting connections re-bin=
ding as<br>
&gt;&gt; &gt; anonymous,<br>
&gt;&gt; &gt; breaking the actual bind.<br>
&gt;&gt; &gt; This usualy happen after hitting either the idle-timeout or t=
he<br>
&gt;&gt; conn-ttl<br>
&gt;&gt; &gt; limit.<br>
&gt;&gt; &gt; I wasn&#39;t able to find out what these values are when not =
set... but<br>
&gt;&gt; &gt; setting them<br>
&gt;&gt; &gt; low can help reproduce the problem :<br>
&gt;&gt;<br>
&gt;&gt; What is the configuration of back-ldap? =A0Can you post it (after<=
br>
&gt;&gt; sanitizing<br>
&gt;&gt; sensitive info)?<br>
&gt;&gt;<br>
&gt;&gt; p.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Pierangelo Masarati<br>
&gt;&gt; Associate Professor<br>
&gt;&gt; Dipartimento di Ingegneria Aerospaziale<br>
&gt;&gt; Politecnico di Milano<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div>&gt; --20cf307811d0d379c404d032d6ee<br>
&gt; Content-Type: text/html; charset=3DISO-8859-1<br>
&gt; Content-Transfer-Encoding: quoted-printable<br>
&gt;<br>
&gt; &lt;div style=3D3D&quot;font-family:Tahoma;font-size:13px&quot;&gt;Con=
fig is basic (with<br>
&gt; spec=3D<br>
&gt; ial timeout tests commented out) :&lt;/div&gt;&lt;div<br>
&gt; style=3D3D&quot;font-family:Tahoma;fo=3D<br>
&gt; nt-size:13px&quot;&gt;=3DA0&lt;/div&gt;&lt;div<br>
&gt; style=3D3D&quot;font-family:Tahoma;font-size:13px&quot;&gt;dat=3D<br>
&gt; abase =3DA0 =3DA0 =3DA0ldap&lt;br&gt;<br>
&gt; suffix =3DA0 =3DA0 =3DA0 =3DA0 =3DA0<br>
&gt; =3DA0&amp;quot;o=3D3Dcorp&amp;quot;&lt;br&gt;uri=3DA0=3DA0=3DA0=3DA0=
=3DA0=3DA0=3D<br>
&gt; =3DA0=3DA0=3DA0=3DA0=3DA0=3DA0=3DA0 =3DA0 =3DA0&lt;a&gt;ldaps://<a hre=
f=3D"http://10.100.120.153"; target=3D"_blank">10.100.120.153</a>&lt;/a&gt;&=
lt;/div&gt;&lt;div<br>
&gt; style=3D<br>
&gt; =3D3D&quot;font-family:Tahoma;font-size:13px&quot;&gt;=3DA0&lt;/div&gt=
;&lt;div<br>
&gt; style=3D3D&quot;font-family:T=3D<br>
&gt; ahoma;font-size:13px&quot;&gt;# close connection after a timeout&lt;br=
&gt;<br>
&gt; #idletimeout=3DA0=3DA0=3DA0=3DA0 100&lt;br&gt;# causes a cached connec=
tion to be dropped<br>
&gt; =3D<br>
&gt; an recreated after a given ttl&lt;br&gt;#conn-ttl=3DA0=3DA0=3DA0=3DA0=
=3DA0=3DA0=3DA0<br>
&gt; 4294967294=3D<br>
&gt; &lt;br&gt;# close connection after a timeout for ldap<br>
&gt; backend&lt;br&gt;#idle-timeout=3DA0=3D<br>
&gt; =3DA0=3DA0 4294967294&lt;br&gt;# Discards current cached connection wh=
en the client<br>
&gt; r=3D<br>
&gt; ebinds - default to No&lt;br&gt;<br>
&gt; #single-conn=3DA0=3DA0=3DA0=3DA0 no&lt;/div&gt;&lt;div<br>
&gt; style=3D3D&quot;font-family:Tahoma;font-size=3D<br>
&gt; :13px&quot;&gt;&lt;br&gt;overlay=3DA0=3DA0=3DA0=3DA0=3DA0=3DA0=3DA0=3D=
A0 rwm&lt;br&gt;rwm-suffixmassage<br>
&gt; &amp;quot;o=3D<br>
&gt; =3D3Dcorp&amp;quot; &amp;quot;o=3D3Dint&amp;quot;&lt;/div&gt;&lt;div<b=
r>
&gt; class=3D3D&quot;gmail_extra&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;=3D<br>
&gt; div class=3D3D&quot;gmail_quote&quot;&gt;2012/12/6 Pierangelo Masarati=
 &lt;span<br>
&gt; dir=3D3D&quot;ltr&quot;&gt;&amp;=3D<br>
&gt; lt;&lt;a href=3D3D&quot;mailto:<a href=3D"mailto:masarati@aero.polimi.=
it">masarati@aero.polimi.it</a>&quot;<br>
&gt; target=3D3D&quot;_blank&quot;&gt;masarati@ae=3D<br>
&gt; <a href=3D"http://ro.polimi.it"; target=3D"_blank">ro.polimi.it</a>&lt;=
/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;<br>
&gt; &lt;blockquote class=3D3D&quot;gmail_quote&quot; style=3D3D&quot;margi=
n:0 0 0<br>
&gt; .8ex;border-left:1p=3D<br>
&gt; x #ccc solid;padding-left:1ex&quot;&gt;&lt;br&gt;<br>
&gt; &amp;gt; Full_Name: Sebastien Prune THOMAS&lt;br&gt;<br>
&gt; &amp;gt; Version: slapd 2.4.31&lt;br&gt;<br>
&gt; &amp;gt; OS: Linux CentOS&lt;br&gt;<br>
&gt; &amp;gt; URL: &lt;a href=3D3D&quot;<a href=3D"ftp://ftp.openldap.org/i=
ncoming/" target=3D"_blank">ftp://ftp.openldap.org/incoming/</a>&quot;<br>
&gt; target=3D3D&quot;_blank&quot;&gt;ft=3D<br>
&gt; p://<a href=3D"http://ftp.openldap.org/incoming/"; target=3D"_blank">ft=
p.openldap.org/incoming/</a>&lt;/a&gt;&lt;br&gt;<br>
&gt; &amp;gt; Submission from: (NULL) (206.167.157.64)&lt;br&gt;<br>
&gt; &amp;gt;&lt;br&gt;<br>
&gt; &amp;gt;&lt;br&gt;<br>
&gt; &amp;gt; I use OpenLdap to proxy (with the module back-ldap) to a eDir=
ectory<br>
&gt; LD=3D<br>
&gt; AP&lt;br&gt;<br>
&gt; &amp;gt; server.&lt;br&gt;<br>
&gt; &amp;gt; Every once and a while I have long lasting connections re-bin=
ding<br>
&gt; as&lt;b=3D<br>
&gt; r&gt;<br>
&gt; &amp;gt; anonymous,&lt;br&gt;<br>
&gt; &amp;gt; breaking the actual bind.&lt;br&gt;<br>
&gt; &amp;gt; This usualy happen after hitting either the idle-timeout or t=
he<br>
&gt; conn-t=3D<br>
&gt; tl&lt;br&gt;<br>
&gt; &amp;gt; limit.&lt;br&gt;<br>
&gt; &amp;gt; I wasn&amp;#39;t able to find out what these values are when =
not set...<br>
&gt; bu=3D<br>
&gt; t&lt;br&gt;<br>
&gt; &amp;gt; setting them&lt;br&gt;<br>
&gt; &amp;gt; low can help reproduce the problem :&lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; What is the configuration of back-ldap? =3DA0Can you post it (after<br=
>
&gt; sanitizin=3D<br>
&gt; g&lt;br&gt;<br>
&gt; sensitive info)?&lt;br&gt;<br>
&gt; &lt;span class=3D3D&quot;HOEnZb&quot;&gt;&lt;font color=3D3D&quot;#888=
888&quot;&gt;&lt;br&gt;<br>
&gt; p.&lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; --&lt;br&gt;<br>
&gt; Pierangelo Masarati&lt;br&gt;<br>
&gt; Associate Professor&lt;br&gt;<br>
&gt; Dipartimento di Ingegneria Aerospaziale&lt;br&gt;<br>
&gt; Politecnico di Milano&lt;br&gt;<br>
&gt; &lt;br&gt;<br>
&gt; &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt=
;/div&gt;<br>
&gt;<br>
&gt; --20cf307811d0d379c404d032d6ee--<br>
<div class=3D"HOEnZb"><div class=3D"h5">&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
--<br>
Pierangelo Masarati<br>
Associate Professor<br>
Dipartimento di Ingegneria Aerospaziale<br>
Politecnico di Milano<br>
<br>
</div></div></blockquote></div><br></div>

--20cf307811d0eb756704d0342092--