Define LDAPConnection in local namespace

Defining the `LDAPConnection` in global namespace is not necessary.