Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return attributes #8

Open
DrunkenBeetle opened this issue May 13, 2013 · 0 comments
Open

Return attributes #8

DrunkenBeetle opened this issue May 13, 2013 · 0 comments

Comments

@DrunkenBeetle
Copy link

Contracting for a company that has a really slow LDAP server/network + returns massive LDAP records. I can't do anything about the slow server but it would be nice to specify the return attributes of the record instead of the whole record.

I've already modified it to work like that but the change is way too small to justify a fork (was only one line). Basically on line 119 of /lib/ldapauth.js, change:

var opts = {filter: searchFilter, scope: 'sub'};

to

var opts = {filter: searchFilter, scope: 'sub', attributes: ['Name', 'Email', 'BustSize']};

PS: The BustSize attribute is required! :)

vesse added a commit to vesse/node-ldapauth-fork that referenced this issue Aug 21, 2013
Enable defining attributes to fetch from LDAP server (see
trentm#8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant