From 7cc78826506dcb92bab77df3d79542a8f058d648 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sun, 21 Apr 2013 00:29:57 -0400 Subject: [PATCH] Update README formatting --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 74718eb..44a6d5f 100644 --- a/README.md +++ b/README.md @@ -8,19 +8,24 @@ devise-kerberos-authenticatable is a Devise exenstion that can be used to authen ###Dependencies [timfel-krb5-auth](https://github.com/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 * 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 ``` + * Rebuild your Devise views automatically or by hand. + ``` rake generate devise:views ```