Re: JNDI-taglib search tag returns null

2007-07-26 Thread Iikku Mattila

On Wed, 25 Jul 2007, Henri Yandell wrote:


On 7/24/07, Iikku Mattila [EMAIL PROTECTED] wrote:

jndi:search id=baz contextRef=test filter=uid=pohjus
searchScope=subtree
/jndi:search

This seems a tad silly to me and took quite a few hours to come up with.
Well, works now!


Which server/server-version are you running it on?


Sun Java System Application Server Platform Edition 9.0_01


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDI-taglib search tag returns null

2007-07-25 Thread Iikku Mattila

I finally figured it out but only with good luck.

On Tue, 24 Jul 2007, Kris Schneider wrote:

On 7/24/07, Iikku Mattila [EMAIL PROTECTED] wrote:

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


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

Tried that, didn't help. What did help was creating an explicit end tag.

jndi:search id=baz contextRef=test filter=uid=pohjus 
searchScope=subtree

/jndi:search

This seems a tad silly to me and took quite a few hours to come up with. 
Well, works now!


Iikku

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDI-taglib search tag returns null

2007-07-25 Thread Henri Yandell

On 7/24/07, Iikku Mattila [EMAIL PROTECTED] wrote:

I finally figured it out but only with good luck.

On Tue, 24 Jul 2007, Kris Schneider wrote:
 On 7/24/07, Iikku Mattila [EMAIL PROTECTED] wrote:
 jndi:search id=baz contextRef=test filter=uid=quux
 searchScope=subtree/

 Seems like it might be a filter thing. Try filter=(uid=quux).
Tried that, didn't help. What did help was creating an explicit end tag.

jndi:search id=baz contextRef=test filter=uid=pohjus
searchScope=subtree
/jndi:search

This seems a tad silly to me and took quite a few hours to come up with.
Well, works now!


Which server/server-version are you running it on?

Hen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDI-taglib search tag returns null

2007-07-24 Thread Kris Schneider

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/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]