source: trunk/third/openssh/gssapi-name-in-env.patch @ 2832

Last change on this file since 2832 was 2301, checked in by broder, 16 years ago

First attempt at invirtifying ssh.

This patch will set SSH_GSSAPI_NAME if GSSAPI was ever used in the
login process (including for gss-keyex). It could be the first step
towards being able to use Kerberos authentication for git commits.

File size: 496 bytes
  • openssh-4.7p1/gss-serv.c

     
    355355                child_set_env(envp, envsizep, gssapi_client.store.envvar,
    356356                    gssapi_client.store.envval);
    357357        }
     358        if (gssapi_client.exportedname.length != 0 &&
     359            gssapi_client.exportedname.value != NULL) {
     360                debug("Setting %s to %s", "SSH_GSSAPI_NAME",
     361                    gssapi_client.exportedname.value);
     362                child_set_env(envp, envsizep, "SSH_GSSAPI_NAME",
     363                    gssapi_client.exportedname.value);
     364        }
    358365}
    359366
    360367/* Privileged */
Note: See TracBrowser for help on using the repository browser.