I have upgraded vRA to 7.4 and use the embedded VRO with default plugins.
Since today each time when I try to query the AD to a specific user by the sAMAccount name:
var Users = ActiveDirectory.searchExactMatch("User" , SAM , 2, adHost);
var Users = ActiveDirectory.searchExactMatch("User" , SAM , 2); // uses default ad host
Each time I get the error: java.lang.NullPointerException
Edit: Ok so I found the casue of the issue - the AD Host I have been using does not seem to be valid - when trying to query the AD inventory by using the AD plugin, I get no results. When I use another AD host where I am able to query the inventory, the script runs.
Now the problem is, all of the AD Hosts I have configured in the plugin, are domain controllers that show no errors and can be queried usind for example ADexplorer.
Another question is - is choosing the DC based on a DNS search a valid option in the AD plugin yet? What I mean is - the DC farm for each domain contains about 10 DC's in my case. I would like to use the ldaps://domain.name:3269 FQDN for my AD queries, instead of selecting single DC's. This way I would not run into errors, when one of the DC's is offline or in maintenance. I have used it like this in vRO 6.x was hoever told that this is not a valid way to configure the AD plugin. The new 7.4 version seems to have a built in mechanism where, when configuring AD hosts, you can group them together to force a RR or Failover selection. Would configuring the Ad hosts like this be of benefit in my case?
For the misbehaving AD Host - have you tried to remove it and then add it again (just to ensure that it is not some problem with the stored plug-in configuration)?
I did. I have also added the directory using the FQDN, to automatically resolve the DC's using DNS lookup, but that did not help. I did not manage to do more sadly, because I had to roll back to 7.3 due to issues with vIDM:(
I'm bumping my own thread, because I have run into the same issue again, this time on 7.6.
Removing and re-adding the AD Hosts does not help, I've used the DNS-Lookup configuration as well as adding single hosts.
Restarting vco-server does not help.
I can query each AD Host using the AD Plugin in vRO, just using the search in the script seems to be broken.
The exact same error seems to be unavoidable now: when calling ActiveDirectory.searchExactMatch I get the java.lang.NullPointerException
Did anyone run into the same problem and found a solution, in the last 1,5 years?