One-shot search: connect (optionally bind), search, and close in a single call.
Connection and search options combined.
The matched entries.
If a requested bind is rejected.
If the search fails.
1.0.0
const entries = await search({ hostname: 'ldap.example.com', bindDN: 'cn=admin,dc=example,dc=com', password: 'secret', base: 'dc=example,dc=com', filter: '(objectClass=person)'}); Copy
const entries = await search({ hostname: 'ldap.example.com', bindDN: 'cn=admin,dc=example,dc=com', password: 'secret', base: 'dc=example,dc=com', filter: '(objectClass=person)'});
One-shot search: connect (optionally bind), search, and close in a single call.