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"= ><<a href=3D"mailto:[email protected]">[email protected]</a>= ></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">> On Thu, May 20, 2010 at 21:27, <<a href=3D"mailto= :[email protected]">[email protected]</a>> wrote:<br>><br= >>> > Yes, indeed this is our case. I had to manually slapindex, t= hen only<br> >> we<br>>> > got<br>>> > the correct result (even = though we have specified the attribute to<br>>> index<br>>> >= ; automatically in slapd.conf).<br>>><br>>> How do you specify = automatic attribute indexing in slapd.conf? =C2=A0I didn't<br> >> know about that.<br>>><br>><br>> We have this line in = slapd.conf.<br>><br>> index =C2=A0 customAttribute =C2=A0pres,eq<br>&= gt;<br>> Is this not automatic indexing? Or is it just specifying which = attribute<br> > to<br>> 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 "cn=3Dconf= ig"<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>>> > However, do we have to slapindex nightl= y since this is a case, or is<br>>> this<br>>> > a<br>>&g= t; > bug (we're using openldap 2.4.19)?<br>>><br>>> Appa= rently, 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 t= hat<br>>> case. =C2=A0And slapd *must not* be running when you run sl= apindex (it<br>>> complains and refuses to start, otherwise, as far a= s I know).<br> >><br>>> Or, if you modify indexes using ldapmodify in cn=3Dcon= fig, re-indexing<br>>> will<br>>> be automatical, no need to ru= n slapindex. =C2=A0Is this what you meant?<br>>><br>><br>> I th= ink so. That means, doing ldapmodify when ldap is running live will<br> > automatically re-index the attribute?<br>><br>><br>>><br>&= gt;> p.<br>>><br>>><br>> Thanks for the help!<br>><br>= > Regards,<br>> Wan Mohd Khairi Wan Mohamed<br>> wankhairi [at] ne= rvesis [dot] com [dot] my<br> > <a href=3D"http://www.nervesis.com.my/" target=3D"_blank">http://www.n= ervesis.com.my</a><br>><br><br><br></div></div></blockquote></div><br> --001636417bd31a530f0487283148--