Created
April 4, 2009 18:53
-
-
Save sarahhodne/90278 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AuthType Kerberos | |
AuthName "ClueNet account shell" | |
KrbAuthRealms CLUENET.ORG | |
KrbServiceName HTTP | |
KrbMethodNegotiate on | |
KrbMethodK5Passwd on | |
Krb5Keytab /etc/apache2/http.sine.cluenet.org.keytab | |
KrbSaveCredentials On | |
# The rest is really in the VHost, but I'm putting it here for easy reading... | |
<Location /login> | |
require valid-user | |
</Location> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<%= @klist %> | |
</pre> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SessionsController < ApplicationController | |
def new | |
ENV['KRB5CCNAME'] = request.env['KRB5CCNAME'] | |
@klist = `klist 2>&1` | |
end | |
def create | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment