passport-windowsauth | Windows Authentication strategy for Passport.js | Authentication library
kandi X-RAY | passport-windowsauth Summary
kandi X-RAY | passport-windowsauth Summary
This module authenticate user with a LDAP directory. It works in two modes Integrated Authentication (often refer as NTLM) or Form Authentication.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize Strategy constructor .
- Executes search
- Format a GUID .
- Verifies the user
passport-windowsauth Key Features
passport-windowsauth Examples and Code Snippets
Community Discussions
Trending Discussions on passport-windowsauth
QUESTION
(intranet application) I'm using ReactJS with NodeJS as a server side api for accessing various resources (such as user active directory profile). I need to integrate with Active Directory, without prompting the user for their credentials.
Using ActiveDirectory for Node (npm i activedirectory) I can query the AD using LDAP for a hard coded sAMAccountName using the code below.
...ANSWER
Answered 2018-Dec-20 at 13:00To answer your question as you mentioned above But what I can't figure out, is how to pick up the current user ID when they call the API.
It seems the above code is wrapped under function which is used as route handler callback fn. by saying this I mean you will definitely have access to req
and res
aka request
and response
API function argument.
for example:-
QUESTION
I have created an angular 2 application. Now, these are the requirements for windows authentication.
1) If any user within the organization access this application, he should not get the login prompt and should be able to login directly into the application.
2) If any specific user within the organization tries to access the application, then he should get the specific role(Like admin, Manager) and able to login directly.
3) If any user outside the organization tries to access the application, he should get the login prompt.
Edit: Backend will also play the significant role. I have created rest API using node js and express. So will this passport package help in my case? I have implemented the passport.js on my node js rest API, but now how to validate that thing on the angular side.
Any help will be appreciated and bounty awarded.
...ANSWER
Answered 2017-Dec-11 at 08:08For this to work the back-end will be your primary point of call, passport.js
(Implemented in your node.js
not your client) will allow you to do a lot of the heavy lifting but will still require some fundamental changes to your web server.
You are looking to implement IWA
(Integrated Windows Authentication) here, if you wish your client to know which roles the user has the way I would suggest would be to create a API on the server side that returns these variables as part of its response (then take them and store them somewhere for your angular2 to use).
For example you could have /authCheck return { role: [], username: "Username" } and if the user is not authenticated return a 401. This way if the passthrough IWA fails you can handle the 401 response by directing a user to the login page.
QUESTION
I am using express js 4.1
. I want to access the Active directory without user and admin credentials. I would simply wants to check username alone connected in the root domain. If the user exists in the domain, i will redirect my application to main page from login page. I have tried out with most of the npm's such that activedirectory
, passport-windowsauth
, passport-ldapauth
None of the above methods is working as they all requires credential details of either admin or user at some point. Please suggest me a good way to access active directory with username alone and npm absolutely suits my requirement.
...ANSWER
Answered 2017-Jan-09 at 13:24By default, Active Directory cannot be accessed anonymously. Such access as what you are looking for will not work, you must bind with full credentials, for every type of user authentication, whether it is with an individual, or some other known account.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install passport-windowsauth
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