HPCC-10531 Regression suite fails when authentication enabled

Fix authentication error.
Add network related connection (no connection to LDAP, wrong username, etc)
error handling and debug logs.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
Merge pull request #5231 from AttilaVamos/HPCC-10531-fix

HPCC-10531 Regression suite fails when authentication enabled

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>