From afc984af2e055b33f7c7b06ccacaf00103d4ce5e Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 9 Sep 2011 15:59:26 +0200 Subject: [PATCH] virnetsocket: Pass KRB5CCNAME env variable So we can allow GSSAPI authentication for ssh. Signed-off-by: Matthias Witte --- AUTHORS | 1 + src/rpc/virnetsocket.c | 1 + 2 files changed, 2 insertions(+) diff --git a/AUTHORS b/AUTHORS index dcbb711e2f..de2288d94f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -194,6 +194,7 @@ Patches have also been contributed by: Steve Hodgson Xu He Jie Lei Li + Matthias Witte [....send patches to get your name here....] diff --git a/src/rpc/virnetsocket.c b/src/rpc/virnetsocket.c index 275b70d5c8..88dc2a4f7a 100644 --- a/src/rpc/virnetsocket.c +++ b/src/rpc/virnetsocket.c @@ -615,6 +615,7 @@ int virNetSocketNewConnectSSH(const char *nodename, cmd = virCommandNew(binary ? binary : "ssh"); virCommandAddEnvPassCommon(cmd); + virCommandAddEnvPass(cmd, "KRB5CCNAME"); virCommandAddEnvPass(cmd, "SSH_AUTH_SOCK"); virCommandAddEnvPass(cmd, "SSH_ASKPASS"); virCommandAddEnvPass(cmd, "DISPLAY");