node-ldapauth | * * Simple node.js module | Authentication library
kandi X-RAY | node-ldapauth Summary
kandi X-RAY | node-ldapauth Summary
A simple node.js lib to authenticate against an LDAP server.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-ldapauth
node-ldapauth Key Features
node-ldapauth Examples and Code Snippets
Community Discussions
Trending Discussions on node-ldapauth
QUESTION
In my node application, I have an use case in which I need to authenticate the LDAP users belonging to a specific group only. If the user does not belong to the mentioned group, authentication should fail.
I am using the library ldapauth-fork for LDAP authentication.
I tried various approaches for the filters, but none of them are working as expected. Below are the attempts that I tried:
...ANSWER
Answered 2018-Apr-20 at 20:27I see that you want an LDAP search filter match on "username = x and group = y". To do this, you need to provide a fully distinguished name for the value of the memberOf attribute.
This should work:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-ldapauth
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page