Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails Authentication with Active Directory

In my rails app i want to authenticate with an active directory. I already take a look at Adauth, but i don't know how to do this

I can test the AD with my school Ad: exchange.nhl.nl

Can someone help me with the authentication or maybe having a good tutorial or has a better gem? And is there in the AD standing a password?

like image 608
Matt Dice Avatar asked Nov 21 '12 11:11

Matt Dice


2 Answers

Are you using devise? Then https://github.com/cschiewek/devise_ldap_authenticatable should help you to get started. Since Active Directory is an LDAP server.

There is an older gem, based on the other mentioned specifically for Active Directory: https://github.com/ajrkerr/devise_active_directory_authenticatable It doesn't seem to be maintained, but it still could be useful.

Hope this helps.

like image 80
nathanvda Avatar answered Nov 17 '22 11:11

nathanvda


Take a look at the adauth gem. It bills itself as

A Ruby interface for Microsoft's Active Directory based off ruby-net-ldap.

It comes with a generator and can be integrated with cancan.

like image 2
Michael Minton Avatar answered Nov 17 '22 13:11

Michael Minton