refactoring ldap client, seperate module, bind when create pool