jxjj/simple-ldap-search

Should return all attributes if none are set

jxjj opened this issue · 0 comments

jxjj commented

If no attributes are set, but a filter is, we should return all attributes of an object that matches the filter.

For Example:

const ldap = new SimpleLDAP(config.ldapServer);

const filter = '(uid=ebenes)';
ldap.get(filter).then(console.log);

/*
  [{
    "dn": "uid=ebenes, dc=users, dc=localhost"
    "email": "ebenes@jpeterman.com"
    "givenName": "Elaine"
    "objectclass": "unixUser"
    "org-id": 765432
    "sn": "Benes"
    "telephoneNumber": "555-663-5246"
    "uid": "ebenes"
  }]
*/