Re: Extra character when using search filter but won't appear in the search result

Wan Mohd Khairi Wan Mohamed <[email protected]> Fri, 21 May 2010 17:02:24 +0800
Newsgroups gmane.network.openldap.general
Message-ID <[email protected]>
--0016364167e7526012048716f461
Content-Type: text/plain; charset=UTF-8

On Thu, May 20, 2010 at 21:27, <[email protected]> wrote:

> > Yes, indeed this is our case. I had to manually slapindex, then only we
> > got
> > the correct result (even though we have specified the attribute to index
> > automatically in slapd.conf).
>
> How do you specify automatic attribute indexing in slapd.conf?  I didn't
> know about that.
>

We have this line in slapd.conf.

index   customAttribute  pres,eq

Is this not automatic indexing? Or is it just specifying which attribute to
index when running slapindex?



>
> > However, do we have to slapindex nightly since this is a case, or is this
> > a
> > bug (we're using openldap 2.4.19)?
>
> Apparently, you ran slapindex without even reading the man page.  It
> *must* be run when you change indexes in slapd.conf, and only in that
> case.  And slapd *must not* be running when you run slapindex (it
> complains and refuses to start, otherwise, as far as I know).
>
> Or, if you modify indexes using ldapmodify in cn=config, re-indexing will
> be automatical, no need to run slapindex.  Is this what you meant?
>

I think so. That means, doing ldapmodify when ldap is running live will
automatically re-index the attribute?


>
> p.
>
>
Thanks for the help!

Regards,
Wan Mohd Khairi Wan Mohamed
wankhairi [at] nervesis [dot] com [dot] my
http://www.nervesis.com.my

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

<br><div class=3D"gmail_quote">On Thu, May 20, 2010 at 21:27,  <span dir=3D=
"ltr">&lt;<a href=3D"mailto:[email protected]">[email protected]=
t</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-le=
ft: 1ex;">

<div class=3D"im">&gt; Yes, indeed this is our case. I had to manually slap=
index, then only we<br>
&gt; got<br>
&gt; the correct result (even though we have specified the attribute to ind=
ex<br>
&gt; automatically in slapd.conf).<br>
<br>
</div>How do you specify automatic attribute indexing in slapd.conf? =C2=A0=
I didn&#39;t<br>
know about that.<br></blockquote><div><br>We have this line in slapd.conf.<=
br><br><span style=3D"font-family: courier new,monospace;">index=C2=A0=C2=
=A0 customAttribute=C2=A0 pres,eq</span><br><br>Is this not automatic index=
ing? Or is it just specifying which attribute to index when running slapind=
ex?<br>

<br>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt =
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class=3D"im"><br>
&gt; However, do we have to slapindex nightly since this is a case, or is t=
his<br>
&gt; a<br>
&gt; bug (we&#39;re using openldap 2.4.19)?<br>
<br>
</div>Apparently, you ran slapindex without even reading the man page. =C2=
=A0It<br>
*must* be run when you change indexes in slapd.conf, and only in that<br>
case. =C2=A0And slapd *must not* be running when you run slapindex (it<br>
complains and refuses to start, otherwise, as far as I know).<br>
<br>
Or, if you modify indexes using ldapmodify in cn=3Dconfig, re-indexing will=
<br>
be automatical, no need to run slapindex. =C2=A0Is this what you meant?<br>=
</blockquote><div><br>I think so. That means, doing ldapmodify when ldap is=
 running live will automatically re-index the attribute?<br>=C2=A0</div><bl=
ockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-l=
eft: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<br>
p.<br>
<br>
</blockquote></div><br>Thanks for the help!<br><br><span style=3D"color: bl=
ack;"><div dir=3D"ltr"><div><span style=3D"font-family: trebuchet ms,sans-s=
erif; font-size: small;">
Regards,<br>
<span style=3D"font-weight: bold; color: rgb(0, 0, 102);">Wan Mohd Khairi=
=20
Wan Mohamed</span><br>
<span style=3D"font-style: italic; color: rgb(102, 102, 102);">wankhairi=20
[at] nervesis [dot] com [dot] my</span><br>
<a style=3D"font-style: italic; color: rgb(102, 102, 102);" href=3D"http://=
www.nervesis.com.my/" alt=3D"Nervesis Sdn Bhd">http://www.nervesis.com.my</=
a>
</span></div></div></span><br>

--0016364167e7526012048716f461--