YARN-2689 improve security connection diagnostics