How to configure ISA Proxy/Auth Setting For Yum
Problem:
I was running centos in Lan for my persoanl use and there are MS ISA servers for proxying and each user has to use his/her user name & password for Internet so I used my credentials but no success, remember in Firefox I have no problem but when i was going to do yum no success after the expert suggestion i read the following thread you can also and then I come to the solution
https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=6556&forum=32
WHAT IS 'NTLM Authorization Proxy Server'?
'NTLM Authorization Proxy Server' (APS) is a proxy software that allows you to authenticate via an MS Proxy Server using the proprietary NTLM protocol. Since version 0.9.5 APS has an ability to behave as a standalone proxy server and authenticate http clients at web servers using NTLM method. It can change arbitrary values in your client's request header so that those requests will look like they were created by MS IE. It is written in Python
Main features:
· supports NTLM authentication via parent proxy server (Error 407 Proxy Authentication Required);
· supports NTLM authentication at web servers (Error 401 Access Denied/Unauthorized);
· supports translation of NTLM scheme to standard "Basic" authentication scheme;
· supports the HTTPS 'CONNECT' method for transparent tunnelling through parent proxy server;
· has ability to change arbitrary values in client's request headers;
· supports unlimited number of client connections;
· supports connections from external hosts;
· supports HTTP 1.1 persistent connections;
· stores user's credentials in config file or requests password from a console during the start time;
· supports intelligent failure detection and failover between multiple upstream proxies;
Download ntlm rpm via browser because in my case Internet is working in firefox but not for yum you can also download on other pc and after that scp is the option for you.
Just do copy paste in browser
Open terminal
rpm -Uvh ntlmaps-0.9.9.6-1.i386.rpm
after that just edit server.cfg you can find all related files by typing
rpm -ql ntlmaps
in my case
vi /etc/ntlmaps/server.cfg
and change following parameters as per your requirment
PARENT_PROXY:That_will_b_your_MS-Prosy_IP
PARENT_PROXY_PORT:That_will_b_your_MS-Proxy_Server_Port
NT_DOMAIN: That_will_b_Your_windows_Domain_name
USER:That_will_b_your_proxy-user
PASSWORD: That_will_b_your_Proxy-user_Password
save & exit
now run ntlmaps deamon
/opt/ntlmaps/main.py
you will see the following output
NTLM authorization Proxy Server v0.9.9.6
Copyright (C) 2001-2005 by Dmitry Rozmanov, Darryl Dixon, and others.
Now listening at Testbed.abc.com on port 5865
if you see congratulation you done other wise troubleshot it
Now you have to export proxy for yum
http_proxy=http://127.0.0.1:5865
export http_proxy
done
0 comments:
Post a Comment