Changeset 2764 for package_branches


Ignore:
Timestamp:
Dec 21, 2009, 1:12:15 AM (15 years ago)
Author:
broder
Message:

Ensure Kerberos tickets get passed to the ssh that ajaxterm spawns

Location:
package_branches/invirt-web/ajaxterm-rebased/code
Files:
2 edited

Legend:

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

    r2762 r2764  
    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/ajaxterm-rebased/code/main.py

    r2761 r2764  
    3939from invirt.config import structs as config
    4040from invirt.common import InvalidInput, CodeError
     41import invirt.remctl
    4142
    4243from view import View, revertStandardError
     
    421422                else:
    422423                    print >>sys.stderr, "spawning new session for terminal to ",machine_id
     424                    invirt.remctl.checkKinit(principal='daemon/'+config.web.hostname)
    423425                    term = self.atmulti.create(
    424426                        ["ssh", "-e","none", "-l", machine.name, config.console.hostname]
     
    437439                    return dump
    438440                else:
    439                     print "Removing session for", machine_id
     441                    print "Removing session for", machine_id,"because we received",repr(dump)
    440442                    del self.atsessions[machine_id]
    441443                    return '<?xml version="1.0"?><idem></idem>'
Note: See TracChangeset for help on using the changeset viewer.