How to search costemplates entries

Hi all,

does someone know why I can't see cos entries in o=mailuser,o=costemplates inside the rootdn? I created a cos using this ldif:

dn: cn=platinum,o=mailuser,o=cosTemplates,dc=dummy

changetype: add

objectclass: top

objectclass: LDAPsubentry

objectclass: extensibleobject

objectclass: cosTemplate

cn: platinum

mailMsgMaxBlocks: -1

mailquota: -1

mailmsgquota: -1

mailAllowedServiceAccess: +imap:ALL$+pop:ALL$+smtp:ALL$+http:ALL

daServiceType: mail user

but if I then do an ldapsearch using cn=platinum (or any other attribute) as the search filter, I don't find the entry.

If I use the DS console instead, I see the entry in correct tree.

[740 byte] By [claudio_tassinia] at [2007-11-27 11:24:08]
# 1

CosTemplates are also LDAPSubEntry objects which are kind of operational objectclasses.

You must include (objectclass=LdapSubEntry) in the filter to see them.

For example :

(&(objectclass=CosTemplate)(objectclass=LDAPSubEntry))

Regards,

Ludovic

ludovicpa at 2007-7-29 15:56:23 > top of Java-index,Web & Directory Servers,Directory Servers...