JNDI-taglib search tag returns null

Iikku Mattila <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
I have problems with the search tag from the JNDI-taglib. The following 
bit works:

<jndi:useDirContext id="test" url="java:comp/env/ldap/portal" />
<jndi:lookup id="foo" contextRef="test" name="uid=quux, ou=Staff" />
<jndi:forEachAttribute ref="foo" id="bar">
          <%=bar%> <br/>
</jndi:forEachAttribute>

I neatly get all the stored information. However, when I try for example

<jndi:search id="baz" contextRef="test" filter="uid=quux" 
searchScope="subtree"/>

baz ends up being null. I've tried adding values to 'attributes', 
different searchScopes, looking up different contexts for use, etc. What 
am I missing?

Iikku
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.