Skip to content

Return attributes #8

Open
Open
@DrunkenBeetle

Description

@DrunkenBeetle

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! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions