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

Wan Mohd Khairi Wan Mohamed <[email protected]> Sat, 22 May 2010 13:36:19 +0800
Newsgroups gmane.network.openldap.general
Message-ID <[email protected]>
--001636417bd31a530f0487283148
Content-Type: text/plain; charset=UTF-8

Got it.

Thanks for the help! =)

On Fri, May 21, 2010 at 20:45, <[email protected]> wrote:

> > 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?
>
>
> man slapd.conf(5):
>
>   (about index settings)
>   ...
>   Note: Indexing support depends on the particular backend in use.  Also,
>   changing  these  settings  will  generally require deleting any indices
>   that depend on these parameters and recreating them with  slapindex(8).
>   ...
>
> man slapd-bdb(5):
>
>   (about the index directive)
>   ... Note:   changing   index  settings  in
>   slapd.conf(5) requires  rebuilding  indices,  see  slapindex(8);
>   changing index settings dynamically by LDAPModifying "cn=config"
>   automatically causes rebuilding of the indices online in a back-
>   ground task.
>
> Could it be any clearer?
>
> p.
>
> >> > 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
> >
>
>
>

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

<div>Got it.</div>
<div>=C2=A0</div>
<div>Thanks for the help! =3D)<br><br></div>
<div class=3D"gmail_quote">On Fri, May 21, 2010 at 20:45, <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:[email protected]">[email protected]</a>=
&gt;</span> wrote:<br>
<blockquote style=3D"BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex=
; PADDING-LEFT: 1ex" class=3D"gmail_quote">
<div class=3D"im">&gt; On Thu, May 20, 2010 at 21:27, &lt;<a href=3D"mailto=
:[email protected]">[email protected]</a>&gt; wrote:<br>&gt;<br=
>&gt;&gt; &gt; Yes, indeed this is our case. I had to manually slapindex, t=
hen only<br>

&gt;&gt; we<br>&gt;&gt; &gt; got<br>&gt;&gt; &gt; the correct result (even =
though we have specified the attribute to<br>&gt;&gt; index<br>&gt;&gt; &gt=
; automatically in slapd.conf).<br>&gt;&gt;<br>&gt;&gt; How do you specify =
automatic attribute indexing in slapd.conf? =C2=A0I didn&#39;t<br>

&gt;&gt; know about that.<br>&gt;&gt;<br>&gt;<br>&gt; We have this line in =
slapd.conf.<br>&gt;<br>&gt; index =C2=A0 customAttribute =C2=A0pres,eq<br>&=
gt;<br>&gt; Is this not automatic indexing? Or is it just specifying which =
attribute<br>

&gt; to<br>&gt; index when running slapindex?<br><br><br></div>man slapd.co=
nf(5):<br><br>=C2=A0 (about index settings)<br>=C2=A0 ...<br>=C2=A0 Note: I=
ndexing support depends on the particular backend in use. =C2=A0Also,<br>=
=C2=A0 changing =C2=A0these =C2=A0settings =C2=A0will =C2=A0generally requi=
re deleting any indices<br>

=C2=A0 that depend on these parameters and recreating them with =C2=A0slapi=
ndex(8).<br>=C2=A0 ...<br><br>man slapd-bdb(5):<br><br>=C2=A0 (about the in=
dex directive)<br>=C2=A0 ... Note: =C2=A0 changing =C2=A0 index =C2=A0setti=
ngs =C2=A0in<br>=C2=A0 slapd.conf(5) requires =C2=A0rebuilding =C2=A0indice=
s, =C2=A0see =C2=A0slapindex(8);<br>

=C2=A0 changing index settings dynamically by LDAPModifying &quot;cn=3Dconf=
ig&quot;<br>=C2=A0 automatically causes rebuilding of the indices online in=
 a back-<br>=C2=A0 ground task.<br><br>Could it be any clearer?<br><br>p.<b=
r>
<div>
<div></div>
<div class=3D"h5"><br>&gt;&gt; &gt; However, do we have to slapindex nightl=
y since this is a case, or is<br>&gt;&gt; this<br>&gt;&gt; &gt; a<br>&gt;&g=
t; &gt; bug (we&#39;re using openldap 2.4.19)?<br>&gt;&gt;<br>&gt;&gt; Appa=
rently, you ran slapindex without even reading the man page. =C2=A0It<br>

&gt;&gt; *must* be run when you change indexes in slapd.conf, and only in t=
hat<br>&gt;&gt; case. =C2=A0And slapd *must not* be running when you run sl=
apindex (it<br>&gt;&gt; complains and refuses to start, otherwise, as far a=
s I know).<br>

&gt;&gt;<br>&gt;&gt; Or, if you modify indexes using ldapmodify in cn=3Dcon=
fig, re-indexing<br>&gt;&gt; will<br>&gt;&gt; be automatical, no need to ru=
n slapindex. =C2=A0Is this what you meant?<br>&gt;&gt;<br>&gt;<br>&gt; I th=
ink so. That means, doing ldapmodify when ldap is running live will<br>

&gt; automatically re-index the attribute?<br>&gt;<br>&gt;<br>&gt;&gt;<br>&=
gt;&gt; p.<br>&gt;&gt;<br>&gt;&gt;<br>&gt; Thanks for the help!<br>&gt;<br>=
&gt; Regards,<br>&gt; Wan Mohd Khairi Wan Mohamed<br>&gt; wankhairi [at] ne=
rvesis [dot] com [dot] my<br>

&gt; <a href=3D"http://www.nervesis.com.my/" target=3D"_blank">http://www.n=
ervesis.com.my</a><br>&gt;<br><br><br></div></div></blockquote></div><br>

--001636417bd31a530f0487283148--