I am currently working on CA Siteminder R12.52 SP01 CR06 .. I am currently working audit script that check realms if correctly. I had notice that there is a search method of the SmPolicyApiImpl object.
SmApiResult search(SmObject searchObj, java.lang.String[] searchProps, java.util.Vector searchResults) throws SmApiException
May I ask how I should use the searchProps ?
I am was using the command to return all Realm OID that use this specific Agent OID. But somehow the search is returning all the Realms in the Policy Server Instance
below is a short snipit of my code
Vector v =new Vector ();
String [] strSearchProp = new String [1] ;
strSearchProp [0] = "01-00093e9e-01fa-1536-a840-57220a7d309d";
SmRealm mySMRealm = new SmRealm();
objMyPolicyAPI.search(mySMRealm, strSearchProp, chldrn);
System.out.println(chldrn.size());
I just need to a sample to properly populate the Search Proper Method of the API.