source: branches/fc11-dev/server/common/patches/openssh-4.7p1-gssapi-name-in-env.patch @ 1228

Last change on this file since 1228 was 1228, checked in by ezyang, 15 years ago
Patch SSH to add environment variable of Kerberos principal. Patch stolen from XVM.
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.