[vlc-devel] VLC module?
SEM-Gelibredu (EDU)
gelibredu at edu.ge.ch
Thu Dec 4 09:21:13 CET 2014
Hello
Here is what I'm talking about:
The proxy.pac script file (simplified/anonimized below) gets the name of the proxy server, then the concerned application must read from the operating system (Windows 7 in this case) the authentication parameters (through ActiveDirectories information, via Microsoft NTLM ou KERBEROS)
We know it's possible to have the proxy parameters in VLC, but it's hardcoded; this script enables dynamic flexibility (end user does not have to type again the password when changed in the AD)
-------FILE proxy.pac -----------
//Etat de Geneve - IP station = 160.53.180.20 (2687874324) - proxy à utiliser : proxygeadm.etat-ge.ch:3128 //script demandé : proxy.etat-ge.ch //Copyright (c) 1997 Microsoft Corporation BackupRoute=""; UseDirectForLocal=true; function MakeIPs(){ this[0]="10.0.0.0"; this[1]="255.0.0.0"; this[2]="160.53.0.0"; this[3]="255.255.0.0"; this[4]="255.255.255.0"; cDirectIPs=4;
}
DirectIPs=new MakeIPs();
function MakeNames(){
this[0]=".geneve.ch";
this[1]=".ge.ch";
this[2]=".etat-ge.ch";
}
DirectNames=new MakeNames();
cDirectNames=2;
function IsHostAnIP(testHost) {
var validIpAddressRegex = "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$";
var expression = new RegExp(validIpAddressRegex,"i");
return expression.test(testHost);
}
function FindProxyForURL(url, host){
var urlhash, ibest, bestscore, list, i, j; if (url.substring(0, 7) == "gopher:") {
return "PROXY localhost:1";
}
if (UseDirectForLocal && isPlainHostName(host))
return "DIRECT";
for (i = 0; i < cDirectNames; i++)
if (dnsDomainIs(host, DirectNames[i]))
return "DIRECT";
if (IsHostAnIP(host))
{
for (i = 0; i < cDirectIPs; i += 2)
if (isInNet(host, DirectIPs[i], DirectIPs[i+1]))
return "DIRECT";
return "PROXY proxygeadm.etat-ge.ch:3128"; }
Thanx in advance for advises
________________________________
Cyril Roiron
Chef de projet "Standards Ouverts et Logiciels Libres"
REPUBLIQUE ET CANTON DE GENEVE
Département de l'instruction publique, de la culture et du sport
Service écoles-médias (SEM)
Bureau 155, Rue des Gazomètres 5 - 1205 Genève
Courrier : Case postale 241 - 1211
Tél. +41 (0)22 388 64 53 - Fax +41 (0)22 388 63 01
http://twitter.com/#!/gelibredu
http://icp.ge.ch/sem/gelibredu/
-----Message d'origine-----
De : vlc-devel [mailto:vlc-devel-bounces at videolan.org] De la part de Jean-Baptiste Kempf
Envoyé : lundi, 1. décembre 2014 17:57
À : vlc-devel at videolan.org
Objet : Re: [vlc-devel] VLC module?
Le 01/12/2014 16:32, SEM-Gelibredu (EDU) a écrit :
> We use proxy configured internet access, which reads parameters through
> a ".pac" file.
Please share a sample of this pac file.
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list