code: @When("^I search in LDAP using the filter '(.+?)' and the baseDn '(.+?)'$")
      public void searchLDAP(String filter, String baseDn) throws Exception {
          this.commonspec.setPreviousLdapResults(commonspec.getLdapUtils().search(new SearchRequest(baseDn, filter)));
      }
docs: Search for a LDAP object