Alchimie Digitali

Esperienze di infomatica vissuta

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase font size
  • Default font size
  • Decrease font size

apt-caher-ng dietro ISA server

E-mail Stampa PDF

Campita che si debba far aggiornare piu macchine linux dietro ad un famigerato ISA server che richiede un autenticazione al Dominio M$

Per eseguire cio biosgna installare su un server linux

1)un servizio che faccia la cache dei pacchetti scaricati (usando apt-cacher-ng)

2) un servizio che mi permetta ad apt-cacher-ng il login verso il dominio M$ (io consiglio ctlmap molto piu veloce e con meno problemi rispetto a ntlmaps)

installare  cntlm

apt-get install cntlm

installre apt-proxy-ng

apt-get install apt-proxy-ng

aprire  /etc/cntlm.conf

ed inserire i valori

Username        nome_utente_dominio
Domain          dominioM$
#Password       password_dominio              # Use hashes instead (-H)
Workstation     mettere_il_nome_di_questa_workstation # Should be auto-guessed

Proxy           IP_PROXY:8080

uscire e salvare

poi x evitare di inserire la passwrd in chiaro

lanciare il comando cntlm -I -M  http://www.libero.it

a richiesta inserire la password dell'utente che si autentica

Config profile  1/11... OK (HTTP code: 200)
----------------------------[ Profile  0 ]------
Auth            NTLMv2
PassNTLMv2      valore_alfanumerico
------------------------------------------------

copiare questi valori sul file /etc/cntlm.conf

Auth            NTLMv2
PassNTLMv2      6B88EE893CB32D74C8E188C7F4828523

installare apt-cacher-ng

aggiungere al server apt-cacher-ng il proxy cntlm

/etc/apt-cacher-ng/acng.conf

rendere attivo il apt-proxy settando AUTOSTART=1 in /etc/default/apt-cacher

Proxy: http://localhost:3128

settare nei client l'uso del serve apt-cacher

echo 'Acquire::http { Proxy "http://apt-proxy:3142";};' > /etc/apt/apt.conf.d/01proxy

 

You are here: