Only connect when interacting with LDAP server