working with Collect overlay (Openldap 2.4.17)

Payasito Payasito <[email protected]> Mon, 26 Apr 2010 15:35:22 +0000 (GMT)
Newsgroups gmane.network.openldap.general
Message-ID <[email protected]>
--0-1606789295-1272296122=:23270
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello,=0A=0A I'm following the slapo-collect man page but I must be=0Amissi=
ng something.=0A=0A For this database the collectinfo directive is pointing=
=0Ato "uid=3Dtemplate1,dc=3Dtest,dc=3Dtld" dn and the "description"=0Aattri=
bute as the collective one.=0A=0Adatabase        bdb=0A=0Asuffix          "=
dc=3Dtest,dc=3Dtld"=0Acheckpoint      1024    5=0Acachesize       10000=0Ar=
ootdn          "cn=3Droot,dc=3Dtest,dc=3Dtld"=0Arootpw          secret=0Adi=
rectory       /var/lib/ldap-tests=0Aindex   objectClass eq=0Aaccess to * by=
 * write=0Aoverlay collect=0Acollectinfo "uid=3Dtemplate1,dc=3Dtest,dc=3Dtl=
d" description=0A=0A=0Ahowever, a search doesn't return the collect attribu=
te for=0Athe result entries under "ou=3Dpeople,dc=3Dtest,dc=3Dtld"=0A=0Aany=
one knows how to resolve this problem?=0A=0A=0A# ldapsearch -b "dc=3Dtest,d=
c=3Dtld" -D "cn=3Droot,dc=3Dtest,dc=3Dtld" -w secret -LLL=0Adn: dc=3Dtest,d=
c=3Dtld=0AobjectClass: dcObject=0AobjectClass: organization=0Adc: test=0Ao:=
 edu=0A=0Adn: ou=3Dpeople,dc=3Dtest,dc=3Dtld=0AobjectClass: top=0AobjectCla=
ss: organizationalUnit=0Aou: people=0A=0Adn: uid=3Da01,ou=3Dpeople,dc=3Dtes=
t,dc=3Dtld=0AobjectClass: top=0AobjectClass: account=0Auid: a01=0A=0Adn: ui=
d=3Da02,ou=3Dpeople,dc=3Dtest,dc=3Dtld=0AobjectClass: top=0AobjectClass: ac=
count=0Auid: a02=0A=0Adn: uid=3Da03,ou=3Dpeople,dc=3Dtest,dc=3Dtld=0Aobject=
Class: top=0AobjectClass: account=0Auid: a03=0A=0Adn: uid=3Dtemplate1,dc=3D=
test,dc=3Dtld=0AobjectClass: top=0AobjectClass: account=0Auid: template1=0A=
description: The quick brown fox jumps over the lazy dog=0A=0A=0A      
--0-1606789295-1272296122=:23270
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:times new roman,new york,times,serif;fon=
t-size:12pt">Hello,<br><br>&nbsp;I'm following the slapo-collect man page b=
ut I must be<br>missing something.<br><br>&nbsp;For this database the colle=
ctinfo directive is pointing<br>to "uid=3Dtemplate1,dc=3Dtest,dc=3Dtld" dn =
and the "description"<br>attribute as the collective one.<br><br>database&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bdb<br><div>suffix&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "dc=3Dtest,dc=3Dtld"<br>checkpoint&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024&nbsp;&nbsp;&nbsp; 5<br>cachesize&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; 10000<br>rootdn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp; "cn=3Droot,dc=3Dtest,dc=3Dtld"<br>rootpw&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; secret<br>directory&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; /var/lib/ldap-tests<br>index&nbsp;&nbsp; objectClas=
s
 eq<br>access to * by * write<br>overlay collect<br>=0Acollectinfo "uid=3Dt=
emplate1,dc=3Dtest,dc=3Dtld" description<br><br><br>however, a search doesn=
't return the collect attribute for<br>the result entries under "ou=3Dpeopl=
e,dc=3Dtest,dc=3Dtld"<br><br>anyone knows how to resolve this problem?<br><=
br><br># ldapsearch -b "dc=3Dtest,dc=3Dtld" -D "cn=3Droot,dc=3Dtest,dc=3Dtl=
d" -w secret -LLL<br>dn: dc=3Dtest,dc=3Dtld<br>objectClass: dcObject<br>obj=
ectClass: organization<br>dc: test<br>o: edu<br><br>dn: ou=3Dpeople,dc=3Dte=
st,dc=3Dtld<br>objectClass: top<br>objectClass: organizationalUnit<br>ou: p=
eople<br><br>dn: uid=3Da01,ou=3Dpeople,dc=3Dtest,dc=3Dtld<br>objectClass: t=
op<br>objectClass: account<br>uid: a01<br><br>dn: uid=3Da02,ou=3Dpeople,dc=
=3Dtest,dc=3Dtld<br>objectClass: top<br>objectClass: account<br>uid: a02<br=
><br>dn: uid=3Da03,ou=3Dpeople,dc=3Dtest,dc=3Dtld<br>objectClass: top<br>ob=
jectClass: account<br>uid: a03<br><br>dn: uid=3Dtemplate1,dc=3Dtest,dc=3Dtl=
d<br>objectClass: top<br>objectClass: account<br>uid: template1<br>descript=
ion: The quick brown fox jumps over
 the lazy dog<br><br></div>=0A</div><br>=0A=0A=0A=0A      </body></html>
--0-1606789295-1272296122=:23270--