Changeset edb8b23 for gutenbach-web/middleware.py
- Timestamp:
- Mar 25, 2009, 9:00:01 PM (16 years ago)
- Branches:
- master, debian, mac, no-cups, web
- Children:
- 57262ce
- Parents:
- 407f6f1
- git-author:
- root <root@…> (03/25/09 21:00:01)
- git-committer:
- root <root@…> (03/25/09 21:00:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach-web/middleware.py
rb748ed1 redb8b23 30 30 try: 31 31 self.keytab = config["keytab"] 32 self.krbname = config["krbname"] 32 33 except KeyError: 33 34 self.keytab = None 34 35 def __call__(self, environ, start_response): 35 36 if self.keytab: 36 subprocess.call([" /usr/kerberos/bin/kinit", "ezyang/extra", "-k", "-t", self.keytab])37 subprocess.call(["kinit", self.krbname, "-k", "-t", self.keytab]) 37 38 return self.app(environ, start_response) 38 39
Note: See TracChangeset
for help on using the changeset viewer.