Re: JNDI-taglib search tag returns null

"Kris Schneider" <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
On 7/24/07, Iikku Mattila <[email protected]> wrote:
> 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?

Seems like it might be a filter thing. Try filter="(uid=quux)".

> Iikku

-- 
Kris Schneider <mailto:[email protected]>
directThought  <http://www.directThought.com/>
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.