{"repo":"shaozi/ldap-authentication","free":true,"listed":false,"github":"https://github.com/shaozi/ldap-authentication","clone":"git clone https://github.com/shaozi/ldap-authentication.git","description":"🔐🔐🔐 A simple Nodejs Async LDAP authentication library","language":"JavaScript","stars":127,"topics":["ldap","authentication","security","nodejs","ldap-search","passport-ldap","ldap-authentication","ldap-filter"],"license":"BSD-2-Clause","category":"auth-billing-email","readme_excerpt":"A Simple node Library that Authenticates a User Against an LDAP/AD Server Goal Make authentication with an LDAP server easy. Description This library use ldapts as the underneath library. It has three modes of authentications: 1. Admin authenticate mode . If an admin user is provided, the library will login (ldap bind) with the admin user, then search for the user to be authenticated, get its DN (distinguish name), then use the user DN and password to login again. If every thing is ok, the user details will be returned. 2. Self authenticate mode . If the admin user is not provided, then the userDn and userPassword must be provided. If any of userSearchBase or usernameAttribute is missing, then the lib simply does a login with the userDn and userPassword (ldap bind), and returns true if succeeds. Otherwise, the lib does a login with the userDn and userPassword (ldap bind), then does a search on the user and return the user's details. 3. Verify user exists . If an verifyUserExists : true is provided, the library will login (ldap bind) with the admin user, then search for the user to be verified. If the user exists, user details will be returned (without verifying the user's password). Features - Can use an admin to search and authenticate a user - Can also use a regular user and authenticate the user itself - Supports ldap, ldaps, and STARTTLS - Async/Await Promise Usage Installation Examples - An example on how to use with Passport is passport-ldap-example - Another simple lib","default_branch":null,"files":null,"tree":[],"storefront":"/r/shaozi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shaozi/ldap-authentication/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}