node-radius
node-radius copied to clipboard
Active Directory integration
How should I go about authenticating with Active Directory? Thankx
Not sure exactly what you are asking. Does your active directory server support radius? If so look at the radius client example: https://github.com/retailnext/node-radius/blob/master/examples/auth_client.js
If you are asking how can you use active directory as a backend for a node-radius based radius server, you will have to implement that yourself.
A long time ago we implemented a radius server that would auth to an ldap server using http://ldapjs.org/. I would guess the flow would be similar with AD, but I don't know enough about AD to say for sure. I think the best we can offer you is to look at the example server: https://github.com/retailnext/node-radius/blob/master/examples/auth_server.js.
You might also look at packages that import node-radius: https://github.com/retailnext/node-radius/network/dependents. Just from skimming that list I see this project that might be relevant to what you are trying to do: https://github.com/nick81/radius-proxy. I can't speak for the quality/safety/correctness of any projects using node-radius, you will need to evaluate them yourself.
You can use the example here for validation with Active Directory.
https://github.com/micro23xd/radius-2fa-ad-sms