Only connect when interacting with LDAP server
Change the ressource with a static variable