LDAP Query string

Hi,

I have below LDAP Structure:

o=org,ou=asset,ou=ActiveDirectory,cn=ActiveDirectory

under cn=Active directory I have few OUs, now I would want to display these OUs on to the user form screen. Would appreciate if any body can help me out in builiding this ldap query.

Below is the xml snippet which is presently returning an empty list:

<Rule name='getADCapabilities'>

<<defvar name='ADCapability'>

<invoke name='getResourceObjects' class='com.waveset.ui.FormUtil'>

<rule name='RuleLibrary example Logic:getCallerSession'/>

<s>Group</s>

<s>LdapUser</s>

<map>

<s>searchContext</s>

<s>cn=AD,ou=AD, ou=assets, o=org</s>

<s>searchScope</s>

<s>subTree</s>

<s>searchFilter</s>

<concat>

<s>&(objectClass=organizationalunit)</s>

</concat>

<s>searchAttrsToGet</s>

<list>

<s>ou</s>

</list>

</map>

</invoke>

</defvar>

<block>

<ref>ADCapability</ref>

<get>

<get>

<ref>ADCapability</ref>

<i>0</i>

</get>

<s>ou</s>

</get>

</block>

</block>

</Rule>

[1490 byte] By [rsdthfsth] at [2007-11-26 11:54:27]
# 1
Hello, I'm trying to find how to do a search to the ActiveDirectory Resource, I want to do a search for a user with the given email or another attribute, retrieving the DN of that user, can this be done using the getResourceObjects methods?Thanks
dieraven2003 at 2007-7-7 12:12:15 > top of Java-index,Web & Directory Servers,Directory Servers...