[Bitbake-dev] [PATCH] Export KRB5CCNAME variable.
javier Martin
javier.martin at vista-silicon.com
Wed Feb 9 08:46:13 CET 2011
On 31 January 2011 12:27, Javier Martin <javier.martin at vista-silicon.com>wrote:
> This allows fetching git repositories using Kerberos authentication.
>
> Signed-off-by: Javier Martin <javier.martin at vista-silicon.com>
> ---
> lib/bb/fetch/__init__.py | 2 +-
> lib/bb/utils.py | 1 +
> 2 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py
> index 5729266..ed63f78 100644
> --- a/lib/bb/fetch/__init__.py
> +++ b/lib/bb/fetch/__init__.py
> @@ -426,7 +426,7 @@ def runfetchcmd(cmd, d, quiet = False):
> # rather than host provided
> # Also include some other variables.
> # FIXME: Should really include all export varaiables?
> - exportvars = ['PATH', 'GIT_PROXY_COMMAND', 'GIT_PROXY_HOST',
> 'GIT_PROXY_PORT', 'GIT_CONFIG', 'http_proxy', 'ftp_proxy', 'SSH_AUTH_SOCK',
> 'SSH_AGENT_PID', 'HOME']
> + exportvars = ['PATH', 'GIT_PROXY_COMMAND', 'GIT_PROXY_HOST',
> 'GIT_PROXY_PORT', 'GIT_CONFIG', 'http_proxy', 'ftp_proxy', 'SSH_AUTH_SOCK',
> 'SSH_AGENT_PID', 'KRB5CCNAME', 'HOME']
>
> for var in exportvars:
> val = data.getVar(var, d, True)
> diff --git a/lib/bb/utils.py b/lib/bb/utils.py
> index 477c488..a2034a3 100644
> --- a/lib/bb/utils.py
> +++ b/lib/bb/utils.py
> @@ -497,6 +497,7 @@ def preserved_envvars_list():
> 'SESSION_MANAGER',
> 'SHELL',
> 'SSH_AUTH_SOCK',
> + 'KRB5CCNAME',
> 'TERM',
> 'USER',
> 'USERNAME',
> --
> 1.7.0.4
>
>
Hi,
this patch adds the possibility of authenticating using Kerberos when
downloading a GIT repository.
This is very useful for internal repositories located in local company
networks.
Any reason for not including it? I'd gladly adapt the patch to any further
requirement you might have.
Thank you.
--
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxtogo.org/pipermail/bitbake-devel/attachments/20110209/5b7fac61/attachment.htm>
More information about the bitbake-devel
mailing list