OverviewActive Authentication is a modified version of acts_as_authentication designed to authenticate users against Active Directory and automatically adds them to the database.
InstallationInstallation is similar to acts_as_authenticated, first you install the plugin:
./script/plugin install http://activeauthentication.googlecode.com/svn/trunk/activeauthenticationNext generate your model and migrate the database:
./script/generate authenticated user account
rake db:migrateNow include the authenticated system in your application.rb file:
include AuthenticatedSystemAdd a filter to any controller you want to protect:
before_filter :login_requiredAnd finally, modify config/active_directory.yml to match your environment.
TroubleshootingIf you are experiencing problems such as
MissingSourceFile (no such file to load -- ldap):
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
.//app/controllers/account_controller.rb:2You may need to install the ruby ldap libraries. On Ubuntu that can be accomplished with the following command:
sudo apt-get install libldap-ruby1.8FedoraFor those of you using Fedora, Geoffrey Gouez has the following advice (Thanks Geoffrey!):
For fedora 7 (and maybe core 5 and 6), using activeauthentication throws missing file exception.
This files are include in previous version of openssl rpm and are replaced by .so.6
For resolve problem, just links files in /lib directory like this :
Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis
Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!
Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis
Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!
This site uses cookies to give you the best possible experience.
By using the site, you consent to our use of cookies.
For more information, please see our
Privacy Policy