ldapjs / node-ldapjs

LDAP Client and Server API for node.js
http://ldapjs.org
MIT License
1.61k stars 440 forks source link

Obtaining search entry attribute value by key #960

Closed matko031 closed 9 months ago

matko031 commented 9 months ago

I can't find any information in the documentation about obtaining the attribute value by the attribute name from search result. searchEntry.pojo contains a list of attibutes with values, but no direct mapping. Basically I would expect there to be a way of doing something like searchEntry.sn to get value(s) of sn attribute for given search entry, but I can't figure out a way to do that? Is it a framework limitation or did I miss something in the documentation?

jsumners commented 9 months ago

Duplicate of https://github.com/ldapjs/node-ldapjs/issues/841.