There appears to be a bug in the ActiveDirectory 2.0 plugin, or I'm doing something wrong.
When I try to pass a specific host in the function ActiveDirectory.serachExactMatch, it doesn't seem to use it. For example:
var user = ActiveDirectory.searchExactMatch("User","myusername",1,ad_host);
If I do not have a default AD provider configured, this call fails to find a user. If I have a default provider config'ed, it can then find my user in that default domain, but fails to use the domain I passed.
Doing other calls defining the host seem to work like:
var computer = ActiveDirectory.getComputerAD("mycomputername",ad_host);
This works fine, returns my expected computer object in the correct domain, only the serachExactMatch seems to have a problem.
While i could constantly switch my default domain to whatever domain I'm currently working against, that's a hack and I'd rather see it fixed (if it indeed is an issue)
Can others repo this issue?
-James