How to use authentication with negiotiation (e.g. Kerberos) to HTTP proxy? The Next CEO of Stack OverflowHow to make netcat use an existing HTTP proxyIs there any command-line, generic HTTP proxy (like Squid)?How to configure for an Authenticating Proxy ServerHow to set up a “child” proxy that doesn't need a “parent” proxysquid - ssl bumptrying to setup cntlm on ubuntu for NTLM authenticationHaving some trouble authenticating via proxy in order to use apt-get successfully on a corporate networkSimple HTTP Proxy for multiple client authenticationFedora 26: dnf update not working behind proxy - failed to synchronize cache for repo 'updates'Unable to use curl with cookie-jar
What day is it again?
Can someone explain this formula for calculating Manhattan distance?
what's the use of '% to gdp' type of variables?
Is there such a thing as a proper verb, like a proper noun?
How to get the last not-null value in an ordered column of a huge table?
Defamation due to breach of confidentiality
What connection does MS Office have to Netscape Navigator?
From jafe to El-Guest
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
How to use ReplaceAll on an expression that contains a rule
Is there a reasonable and studied concept of reduction between regular languages?
How to avoid supervisors with prejudiced views?
Why don't programming languages automatically manage the synchronous/asynchronous problem?
Help/tips for a first time writer?
Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?
Is there a difference between "Fahrstuhl" and "Aufzug"?
What flight has the highest ratio of timezone difference to flight time?
Can you teleport closer to a creature you are Frightened of?
Towers in the ocean; How deep can they be built?
Is there a way to save my career from absolute disaster?
Why the last AS PATH item always is `I` or `?`?
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
Redefining symbol midway through a document
Is "three point ish" an acceptable use of ish?
How to use authentication with negiotiation (e.g. Kerberos) to HTTP proxy?
The Next CEO of Stack OverflowHow to make netcat use an existing HTTP proxyIs there any command-line, generic HTTP proxy (like Squid)?How to configure for an Authenticating Proxy ServerHow to set up a “child” proxy that doesn't need a “parent” proxysquid - ssl bumptrying to setup cntlm on ubuntu for NTLM authenticationHaving some trouble authenticating via proxy in order to use apt-get successfully on a corporate networkSimple HTTP Proxy for multiple client authenticationFedora 26: dnf update not working behind proxy - failed to synchronize cache for repo 'updates'Unable to use curl with cookie-jar
Generally accepted is the use of HTTP_PROXY/HTTPS_PROXY environment variables to specify the use of a proxy server. Authentication can be included in this URL, e.g. HTTP_PROXY=http://user:pass@myproxy.mydomain.tld:3128/.
However, I am using Kerberos SSO to authenticate with the proxy. How do I configure that? So, suppose a Squid proxy server configuration as described here: https://wiki.squid-cache.org/ConfigExamples/Authenticate/Kerberos. It describes how Windows clients can use proxy authentication with negotiation, but there's no information how I can configure Linux/Unix clients.
For cURL, the use of --proxy-negotiate -u : does the trick, e.g.:
HTTPS_PROXY=http://myproxy.mydomain.tld:3128/ curl --proxy-negotiate -u : https://www.google.com
How do I tell non-cURL applications to use this mechanism? E.g. Debian/Ubuntu APT with Acquire::http::Proxy "http://myproxy.mydomain.tld:3128/";?
I found cntlm which acts as another locally running proxy in the middle, facilitating unauthenticated connections from localhost. However, this only works with NTLM, where I need Kerberos. Would Squid be able to connect as a client using Kerberos perhaps? It seems notoriously hard to find authentication capabilities on the outgoing connection of proxy servers. All seem to focus on authentication features on the listening socket instead.
proxy http squid kerberos http-proxy
add a comment |
Generally accepted is the use of HTTP_PROXY/HTTPS_PROXY environment variables to specify the use of a proxy server. Authentication can be included in this URL, e.g. HTTP_PROXY=http://user:pass@myproxy.mydomain.tld:3128/.
However, I am using Kerberos SSO to authenticate with the proxy. How do I configure that? So, suppose a Squid proxy server configuration as described here: https://wiki.squid-cache.org/ConfigExamples/Authenticate/Kerberos. It describes how Windows clients can use proxy authentication with negotiation, but there's no information how I can configure Linux/Unix clients.
For cURL, the use of --proxy-negotiate -u : does the trick, e.g.:
HTTPS_PROXY=http://myproxy.mydomain.tld:3128/ curl --proxy-negotiate -u : https://www.google.com
How do I tell non-cURL applications to use this mechanism? E.g. Debian/Ubuntu APT with Acquire::http::Proxy "http://myproxy.mydomain.tld:3128/";?
I found cntlm which acts as another locally running proxy in the middle, facilitating unauthenticated connections from localhost. However, this only works with NTLM, where I need Kerberos. Would Squid be able to connect as a client using Kerberos perhaps? It seems notoriously hard to find authentication capabilities on the outgoing connection of proxy servers. All seem to focus on authentication features on the listening socket instead.
proxy http squid kerberos http-proxy
I usecntlmat work but not withkerberosso even I wouldn't be able to test it but a short googling led me to this: sourceforge.net/p/cntlm/feature-requests/_discuss/thread/…. Can you try it?
– Arkadiusz Drabczyk
Dec 25 '17 at 20:42
1
I applied this patch tocntlm 0.92.3, you can get the source code here drabczyk.org/cntlm-with-kerberos.tar.gz. You need to do./configure --enable-kerberos.
– Arkadiusz Drabczyk
Dec 25 '17 at 21:05
4
Looking at the code you now need to passgssto-a. Here on the bottom on the page github.com/metaphox/cntlm-gss some shows an example configuration.
– Arkadiusz Drabczyk
Dec 25 '17 at 21:10
The thing with kerberos authentication is that you need a kerberos-aware version of each application you want to use through Kerberos. In addition to that, in case of http proxies you also need the http client to be capable of handshaking the kerberos authentication to the proxy-http server using the http Negotiate protocol. Something that curl knows how to do, but I’m afraidaptdoesn’t. AFAIK,aptonly supports either plaintext http-auth or socks5
– LL3
2 days ago
add a comment |
Generally accepted is the use of HTTP_PROXY/HTTPS_PROXY environment variables to specify the use of a proxy server. Authentication can be included in this URL, e.g. HTTP_PROXY=http://user:pass@myproxy.mydomain.tld:3128/.
However, I am using Kerberos SSO to authenticate with the proxy. How do I configure that? So, suppose a Squid proxy server configuration as described here: https://wiki.squid-cache.org/ConfigExamples/Authenticate/Kerberos. It describes how Windows clients can use proxy authentication with negotiation, but there's no information how I can configure Linux/Unix clients.
For cURL, the use of --proxy-negotiate -u : does the trick, e.g.:
HTTPS_PROXY=http://myproxy.mydomain.tld:3128/ curl --proxy-negotiate -u : https://www.google.com
How do I tell non-cURL applications to use this mechanism? E.g. Debian/Ubuntu APT with Acquire::http::Proxy "http://myproxy.mydomain.tld:3128/";?
I found cntlm which acts as another locally running proxy in the middle, facilitating unauthenticated connections from localhost. However, this only works with NTLM, where I need Kerberos. Would Squid be able to connect as a client using Kerberos perhaps? It seems notoriously hard to find authentication capabilities on the outgoing connection of proxy servers. All seem to focus on authentication features on the listening socket instead.
proxy http squid kerberos http-proxy
Generally accepted is the use of HTTP_PROXY/HTTPS_PROXY environment variables to specify the use of a proxy server. Authentication can be included in this URL, e.g. HTTP_PROXY=http://user:pass@myproxy.mydomain.tld:3128/.
However, I am using Kerberos SSO to authenticate with the proxy. How do I configure that? So, suppose a Squid proxy server configuration as described here: https://wiki.squid-cache.org/ConfigExamples/Authenticate/Kerberos. It describes how Windows clients can use proxy authentication with negotiation, but there's no information how I can configure Linux/Unix clients.
For cURL, the use of --proxy-negotiate -u : does the trick, e.g.:
HTTPS_PROXY=http://myproxy.mydomain.tld:3128/ curl --proxy-negotiate -u : https://www.google.com
How do I tell non-cURL applications to use this mechanism? E.g. Debian/Ubuntu APT with Acquire::http::Proxy "http://myproxy.mydomain.tld:3128/";?
I found cntlm which acts as another locally running proxy in the middle, facilitating unauthenticated connections from localhost. However, this only works with NTLM, where I need Kerberos. Would Squid be able to connect as a client using Kerberos perhaps? It seems notoriously hard to find authentication capabilities on the outgoing connection of proxy servers. All seem to focus on authentication features on the listening socket instead.
proxy http squid kerberos http-proxy
proxy http squid kerberos http-proxy
edited 2 days ago
gertvdijk
asked Dec 22 '17 at 12:43
gertvdijkgertvdijk
7,51253045
7,51253045
I usecntlmat work but not withkerberosso even I wouldn't be able to test it but a short googling led me to this: sourceforge.net/p/cntlm/feature-requests/_discuss/thread/…. Can you try it?
– Arkadiusz Drabczyk
Dec 25 '17 at 20:42
1
I applied this patch tocntlm 0.92.3, you can get the source code here drabczyk.org/cntlm-with-kerberos.tar.gz. You need to do./configure --enable-kerberos.
– Arkadiusz Drabczyk
Dec 25 '17 at 21:05
4
Looking at the code you now need to passgssto-a. Here on the bottom on the page github.com/metaphox/cntlm-gss some shows an example configuration.
– Arkadiusz Drabczyk
Dec 25 '17 at 21:10
The thing with kerberos authentication is that you need a kerberos-aware version of each application you want to use through Kerberos. In addition to that, in case of http proxies you also need the http client to be capable of handshaking the kerberos authentication to the proxy-http server using the http Negotiate protocol. Something that curl knows how to do, but I’m afraidaptdoesn’t. AFAIK,aptonly supports either plaintext http-auth or socks5
– LL3
2 days ago
add a comment |
I usecntlmat work but not withkerberosso even I wouldn't be able to test it but a short googling led me to this: sourceforge.net/p/cntlm/feature-requests/_discuss/thread/…. Can you try it?
– Arkadiusz Drabczyk
Dec 25 '17 at 20:42
1
I applied this patch tocntlm 0.92.3, you can get the source code here drabczyk.org/cntlm-with-kerberos.tar.gz. You need to do./configure --enable-kerberos.
– Arkadiusz Drabczyk
Dec 25 '17 at 21:05
4
Looking at the code you now need to passgssto-a. Here on the bottom on the page github.com/metaphox/cntlm-gss some shows an example configuration.
– Arkadiusz Drabczyk
Dec 25 '17 at 21:10
The thing with kerberos authentication is that you need a kerberos-aware version of each application you want to use through Kerberos. In addition to that, in case of http proxies you also need the http client to be capable of handshaking the kerberos authentication to the proxy-http server using the http Negotiate protocol. Something that curl knows how to do, but I’m afraidaptdoesn’t. AFAIK,aptonly supports either plaintext http-auth or socks5
– LL3
2 days ago
I use
cntlm at work but not with kerberos so even I wouldn't be able to test it but a short googling led me to this: sourceforge.net/p/cntlm/feature-requests/_discuss/thread/…. Can you try it?– Arkadiusz Drabczyk
Dec 25 '17 at 20:42
I use
cntlm at work but not with kerberos so even I wouldn't be able to test it but a short googling led me to this: sourceforge.net/p/cntlm/feature-requests/_discuss/thread/…. Can you try it?– Arkadiusz Drabczyk
Dec 25 '17 at 20:42
1
1
I applied this patch to
cntlm 0.92.3, you can get the source code here drabczyk.org/cntlm-with-kerberos.tar.gz. You need to do ./configure --enable-kerberos.– Arkadiusz Drabczyk
Dec 25 '17 at 21:05
I applied this patch to
cntlm 0.92.3, you can get the source code here drabczyk.org/cntlm-with-kerberos.tar.gz. You need to do ./configure --enable-kerberos.– Arkadiusz Drabczyk
Dec 25 '17 at 21:05
4
4
Looking at the code you now need to pass
gss to -a. Here on the bottom on the page github.com/metaphox/cntlm-gss some shows an example configuration.– Arkadiusz Drabczyk
Dec 25 '17 at 21:10
Looking at the code you now need to pass
gss to -a. Here on the bottom on the page github.com/metaphox/cntlm-gss some shows an example configuration.– Arkadiusz Drabczyk
Dec 25 '17 at 21:10
The thing with kerberos authentication is that you need a kerberos-aware version of each application you want to use through Kerberos. In addition to that, in case of http proxies you also need the http client to be capable of handshaking the kerberos authentication to the proxy-http server using the http Negotiate protocol. Something that curl knows how to do, but I’m afraid
apt doesn’t. AFAIK, apt only supports either plaintext http-auth or socks5– LL3
2 days ago
The thing with kerberos authentication is that you need a kerberos-aware version of each application you want to use through Kerberos. In addition to that, in case of http proxies you also need the http client to be capable of handshaking the kerberos authentication to the proxy-http server using the http Negotiate protocol. Something that curl knows how to do, but I’m afraid
apt doesn’t. AFAIK, apt only supports either plaintext http-auth or socks5– LL3
2 days ago
add a comment |
0
active
oldest
votes
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412499%2fhow-to-use-authentication-with-negiotiation-e-g-kerberos-to-http-proxy%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412499%2fhow-to-use-authentication-with-negiotiation-e-g-kerberos-to-http-proxy%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown

I use
cntlmat work but not withkerberosso even I wouldn't be able to test it but a short googling led me to this: sourceforge.net/p/cntlm/feature-requests/_discuss/thread/…. Can you try it?– Arkadiusz Drabczyk
Dec 25 '17 at 20:42
1
I applied this patch to
cntlm 0.92.3, you can get the source code here drabczyk.org/cntlm-with-kerberos.tar.gz. You need to do./configure --enable-kerberos.– Arkadiusz Drabczyk
Dec 25 '17 at 21:05
4
Looking at the code you now need to pass
gssto-a. Here on the bottom on the page github.com/metaphox/cntlm-gss some shows an example configuration.– Arkadiusz Drabczyk
Dec 25 '17 at 21:10
The thing with kerberos authentication is that you need a kerberos-aware version of each application you want to use through Kerberos. In addition to that, in case of http proxies you also need the http client to be capable of handshaking the kerberos authentication to the proxy-http server using the http Negotiate protocol. Something that curl knows how to do, but I’m afraid
aptdoesn’t. AFAIK,aptonly supports either plaintext http-auth or socks5– LL3
2 days ago