I'm developing a web app and I have an authentication method using bcrypt gem
It works fine, but I wanted to change the authentication method to LDAP because I'm using an intranet environment and want my users to be able to sign in with windows credentials.
I'm looking to use net-ldap gem
but I can't find any good toturials/explanations online on how to implement this into my web application.
- Can you help me with this?
- How can I do this?
Here's a utility class I've used in the past to do multi-server LDAP check:
If you're fairly new, I'd avoid homebrewing authentication. Check out either
I started with Devise, and still use it for a few projects, but Omniauth is super powerful and more versatile in my opinion. You have to do more yourself though.
Further reading should include CanCanCan for authorization within your app, unless everybody gets everything that is.