Proxy Authentication With Squid
Proxy Authentication With Squid
Squid
Agenda
WWW/proxy authentication primer
Proxy authentication in Squid
Practical session:
configuring Squid to use proxy authentication for
end users
using the LDAP authenticator module
WWW/Proxy Authentication
Primer...
Two fundamental types
WWW:
end-to-end
authorization for accessing web resources (realms)
defined by URI(s)
proxy
hop-by-hop
authorization to use a proxy service that will fetch the
URI(s) requested by the user agent
...WWW/Proxy Authentication
Primer
Two authentication schemes
Basic
simple
implemented by all HTTP clients/servers/proxies
offers no security (passwords are sent in “clear-text”)
Digest
implemented by few HTTP clients/servers/proxies
only
offers better security than the Basic scheme
(passwords are protected (not encrypted!))
More information: RFC2617 (and 2616)
WWW Authentication
Step 1.
Step 2.
Step 3.
Step 4.
Step 1. User
GET /protected/ HTTP/1.1 requests a page
Host: www.sztaki.hu
...
HTTP/1.1 401 Authorization Required
Step 2. Server asks WWW-Authenticate: Basic realm=”Protected web"
UA to authenticate ...
Step 3. UA sends
GET /protected/ HTTP/1.1
authentication credentials
Host: www.sztaki.hu
Authorization: Basic dXNlcjpwYXNzd29yZA==
...
HTTP/1.1 200 OK
Step 4. Authentication Date: Tue, 15 Feb 2000 16:41:04 GMT
accepted and page sent Server: Apache/1.3.9 (Unix)
...
Proxy Authentication...
Step 1.
Step 2.
Step 3. Step 4.
Step 6. Step 5.