Update LdapAdapter.php

provide static function for instantiation