question: public void testFindUserGroupsActiveDirectory ( ) throws Exception { LdapManager mgr = getLdapAD ( ) ; List ret = null ; AndFilter filter = new AndFilter ( ) ; filter . and ( new EqualsFilter ( mgr . getGroupsReturningAttribute ( LdapGroupAttributeConstants . LDAP_GROUP_ATTRIBUTE_MEMBER ) , "CN=nacho,CN=Users,DC=SERVIDOR-GDOC3,DC=iecisa,DC=corp" ) ) ; try { LdapSearchManagerVO searchMgrVO = new LdapSearchManagerVO ( ) ; searchMgrVO . setFilter ( filter ) ; searchMgrVO . setAddGroupClasses ( true ) ; ret = mgr . findUserGroups ( searchMgrVO ) ; } catch ( Exception e ) { } assertEquals ( 2 , ret . size ( ) ) ; }
target:  Test de busqueda de varios grupos de usuario para Active Directory