netwrix / pingcastle

PingCastle - Get Active Directory Security at 80% in 20% of the time
https://www.pingcastle.com
Other
2.35k stars 292 forks source link

Bug: Wrong --foreigndomain parameter ignored #219

Closed ruppde closed 4 months ago

ruppde commented 8 months ago

A wrong --foreigndomain parameter like e.g. PingCastle.exe --foreigndomain doesnt_exist.no --healthcheck is ignored and the default domain is scanned.

Alse there's no indication of the problem in the output, the only telling sign is the total number of objects found in the domain.

Preferred behavior should be to exit, if the foreign domain can't be found. Second best an error message.

vletoux commented 4 months ago

to specify the target domain, the right paramter to use is --server --foreigndomain is used for scanner