Ignore:
Timestamp:
Sep 21, 2009, 11:41:51 PM (15 years ago)
Author:
quentin
Message:

Ensure Kerberos tickets get passed to the ssh that ajaxterm spawns

Location:
package_branches/invirt-web/cherrypy/code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/ajaxterm.py

    r2455 r2481  
    389389                        env["TERM"]="linux"
    390390                        env["PATH"]=os.environ['PATH']
     391                        if 'KRB5CCNAME' in os.environ:
     392                                env["KRB5CCNAME"]=os.environ['KRB5CCNAME']
    391393                        os.execvpe(cmd[0],cmd,env)
    392394                else:
  • package_branches/invirt-web/cherrypy/code/main.py

    r2454 r2481  
    4949from invirt.config import structs as config
    5050from invirt.common import InvalidInput, CodeError
     51import invirt.remctl
    5152
    5253from view import View
     
    312313                else:
    313314                    print >>sys.stderr, "spawning new session for terminal to ",machine_id
     315                    invirt.remctl.checkKinit(principal='daemon/'+config.web.hostname)
    314316                    term = self.atmulti.create(
    315317                        ["ssh", "-e","none", "-l", machine.name, config.console.hostname]
     
    328330                    return dump
    329331                else:
    330                     print "Removing session for", machine_id
     332                    print "Removing session for", machine_id,"because we received",repr(dump)
    331333                    del self.atsessions[machine_id]
    332334                    return '<?xml version="1.0"?><idem></idem>'
Note: See TracChangeset for help on using the changeset viewer.