1
0
Fork 0
Devise extension to authenticate against MIT Kerberos
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andrew Tomaka 31411d22ae Merge pull request #1 from paulrw/master
Bumped devise dependency version and fixed kerberos adapter returning true for invalid credentials
9 years ago
lib Bumped devise dependency version and fixed kerberos adapter return true for invalid credentials 10 years ago
.gitignore Initial gem code 10 years ago
LICENSE Initial gem code 10 years ago
README.md Index on a blank field will cause issues 10 years ago
devise-kerberos-authenticatable.gemspec Bumped devise dependency version and fixed kerberos adapter return true for invalid credentials 10 years ago

README.md

#devise-kerberos-authenticatable

##Description

devise-kerberos-authenticatable is a Devise exenstion that can be used to authenticate against Kerberos as setup in your local krb5.conf file.

##Installation

###Dependencies timfel-krb5-auth depends on the headers and development libraries for MIT Kerberos.

sudo apt-get install libkrb5-dev ###Server Setup Modify your /etc/krb5.conf file as necessary to authenticate against your Kerberos server.

###Rails Setup

  • Update your gemfile

gem 'devise-kerberos-authenticatable', :git => 'git://github.com/atomaka/devise-kerberos-authenticatable.git'

  • Edit config/initializers/devise.rb to use a username instead of email for login.

config.authentication_keys = [ :username ]

  • Update your Devise model app/models/user.rb
devise :kerberos_authenticatable
attr_accessible :username
  • Update your User table in your database to include the username field and remove the index from the email field.
  • Rebuild your Devise views automatically or by hand.
rake generate devise:views

##Other

  • Currently only supports authentication and does not include password modification functionality.
  • Initial code based largely on devise_pam_authenticatable