Fixed hang during cert check, reduced number of callouts to ldapserver