.
All rights reserved.
*/
/* ========================================================================== */
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code MUST retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
/* ========================================================================== */
]]>
Describe your package hereDescribe your package requirements hereCurrently there are no FAQ items provided.squidauthnoneProxy server: Authentication/usr/local/pkg/squid.incGeneral/pkg_edit.php?xml=squid.xml&id=0Remote Cache/pkg.php?xml=squid_upstream.xmlLocal Cache/pkg_edit.php?xml=squid_cache.xml&id=0Antivirus/pkg_edit.php?xml=squid_antivirus.xml&id=0ACLs/pkg_edit.php?xml=squid_nac.xml&id=0Traffic Mgmt/pkg_edit.php?xml=squid_traffic.xml&id=0Authentication/pkg_edit.php?xml=squid_auth.xml&id=0Users/pkg.php?xml=squid_users.xmlReal time/squid_monitor.phpSync/pkg_edit.php?xml=squid_sync.xmlSquid Authentication General SettingslisttopicAuthentication methodauth_methodSelect an authentication method. This will allow users to be authenticated by local or external services.selectnoneon_auth_method_changed()Authentication serverauth_serverEnter here the IP or hostname of the server that will perform the authentication.input60Authentication server portauth_server_portEnter here the port to use to connect to the authentication server. Leave this field blank to use the authentication method's default port.input60Authentication promptauth_promptThis string will be displayed at the top of the authentication request window.inputPlease enter your credentials to access the proxyAuthentication processesauth_processesThe number of authenticator processes to spawn. If many authentications are expected within a short timeframe, increase this number accordingly.input55Authentication TTLauth_ttlThis specifies for how long (in seconds) the proxy server assumes an externally validated username and password combination is valid (Time To Live). When the TTL expires, the user will be prompted for credentials again.Default value is 5.input55Requiere authentication for unrestricted hostsunrestricted_authIf this option is enabled, even users tagged as unrestricted through access control are required to authenticate to use the proxy.checkboxSubnets that don't need authenticationno_auth_hostsEnter each subnet or IP address on a new line (in CIDR format, e.g.: 10.5.0.0/16, 192.168.1.50/32) that should not be asked for authentication to access the proxy.textarea505base64Squid Authentication Ldap SettingslisttopicLDAP versionldap_versionEnter LDAP protocol version (2 or 3).select2LDAP server user DNldap_userEnter here the user DN to use to connect to the LDAP server.input60LDAP passwordldap_passEnter here the password to use to connect to the LDAP server.password20LDAP base domainldap_basedomainFor LDAP authentication, enter here the base domain in the LDAP server.input60LDAP username DN attributeldap_userattributeEnter LDAP username DN attibute.input20uidLDAP search filterldap_filterEnter LDAP search filter.input40(&(objectClass=person)(uid=%s))Squid Authentication NT Domain SettingslisttopicNT domainauth_ntdomainEnter here the NT domain.input60Secondary NT serversmsnt_secondaryComma-separated list of secondary servers to be used for NT domain authentication.input60Squid Authentication Radius SettingslisttopicRADIUS secretradius_secretThe RADIUS secret for RADIUS authentication.password20
squid_validate_auth($_POST, &$input_errors);
squid_print_javascript_auth2();
squid_resync();
squid_print_javascript_auth2();
$transparent_proxy = ($config['installedpackages']['squid']['config'][0]['transparent_proxy'] == 'on');
if($transparent_proxy and preg_match("/(local|ldap|radius|msnt|ntlm)/",$config['installedpackages']['squidauth']['config'][0]['auth_method']))
$input_errors[] = "Authentication cannot be enabled while transparent proxy mode is enabled";
squid_print_javascript_auth();