Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Created April 4, 2009 18:53
Show Gist options
  • Save sarahhodne/90278 to your computer and use it in GitHub Desktop.
Save sarahhodne/90278 to your computer and use it in GitHub Desktop.
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>
<pre>
<%= @klist %>
</pre>
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