X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Flogin%2Fauthkrb.py;h=5b9163d74cdea4f8f4ff09e09b690b5e057b5df1;hp=8069c6ad4019dd6ab8b483e1922e9a49445e69a3;hb=1d7df9dbac43b63424ee07ebfb86c6a106dcb43c;hpb=7efffe85403fbaa1335186b311ad7ac8ea19ad1e diff --git a/ipsilon/login/authkrb.py b/ipsilon/login/authkrb.py index 8069c6a..5b9163d 100755 --- a/ipsilon/login/authkrb.py +++ b/ipsilon/login/authkrb.py @@ -79,3 +79,18 @@ plugin for actual authentication. """ self.page.__dict__['negotiate'] = KrbAuth(site, self) self.page.__dict__['unauthorized'] = KrbError(site, self) return self.page + + +class Installer(object): + + def __init__(self): + self.name = 'krb' + self.ptype = 'login' + + def install_args(self, group): + group.add_argument('--krb', choices=['yes', 'no'], default='no', + help='Configure Kerberos authentication') + + def configure(self, opts): + if opts['krb'] != 'yes': + return