Problems with AM Java API, AMOrganization.searchUsers()
Hi,
Following successful authentication, my application has a requirement to search for users based on modifyTimestamp attribute. It look like this:
AMOrganization org;
...
try
{
AMSearchControl sc = new AMSearchControl();
sc.setTimeOut(1200);
sc.setMaxResults(100);
AMSearchResults sr = org.searchUsers(sc, "(modifyTimestamp>=20070725120000Z)");
}
catch (Exception e)
{
System.out.println(e.getMessage());
}
So, if I have more than ~25000 users returned in search results, I get an com.iplanet.am.sdk.AMException with message "Search Failed". If serach function returned less than ~25000 users - it work fine.
Why sc.setMaxResults(100) does not work? Why AMOrganization.getUserDNs() throws AMException "Search Failed" too?
PS. I use Sun Java SystemAccess Manager 7 2005Q4 on Solaris.

