]> git.ipfire.org Git - thirdparty/squid.git/blame - helpers/external_acl/mswin_lm_group/readme.txt
Correct execute and write permissions from some files.
[thirdparty/squid.git] / helpers / external_acl / mswin_lm_group / readme.txt
CommitLineData
736a9a4d 1
2This is the readme.txt file for mswin_check_lm_group, an external
1d09e43e 3helper for the External ACL Scheme for Squid.
736a9a4d 4
5
1d09e43e
GS
6This helper must be used in with an authentication scheme (tipically
7basic or NTLM) based on Windows NT/2000 domain users (LM mode).
736a9a4d 8It reads from the standard input the domain username and a list of groups
9and tries to match it against the groups membership of the specified
10username.
11
12
13==============
14Program Syntax
15==============
16
17mswin_check_lm_group [-D domain][-G][-P][-c][-d][-h]
18
19-D domain specify the default user's domain
20-G start helper in Domain Global Group mode
21-P use ONLY PDCs for group validation
22-c use case insensitive compare
23-d enable debugging
24-h this message
25
26
27================
28squid.conf usage
29================
30
31external_acl_type NT_global_group %LOGIN c:/squid/libexec/mswin_check_lm_group.exe -G
32external_acl_type NT_local_group %LOGIN c:/squid/libexec/mswin_check_lm_group.exe
33
34acl GProxyUsers external NT_global_group GProxyUsers
35acl LProxyUsers external NT_local_group LProxyUsers
36acl password proxy_auth REQUIRED
37
38http_access allow password GProxyUsers
39http_access allow password LProxyUsers
40http_access deny all
41
42In the previous example all validated NT users member of GProxyUsers Global
43domain group or member of LProxyUsers machine local group are allowed to
44use the cache.
45
46Groups with spaces in name, for example "Domain Users", must be quoted and
47the acl data ("Domain Users") must be placed into a separate file included
48by specifying "/path/to/file". The previous example will be:
49
50acl ProxyUsers external NT_global_group "c:/squid/etc/DomainUsers"
51
52and the DomainUsers files will contain only the following line:
53
54"Domain Users"
55
56NOTES:
1d09e43e 57- The standard group name comparison is case sensitive, so group name
736a9a4d 58 must be specified with same case as in the NT/2000 Domain.
1d09e43e
GS
59 It's possible to enable case insensitive group name comparison (-c),
60 but on some not-english locales, the results can be unexpected.
736a9a4d 61- Native WIN32 NTLM and Basic Helpers must be used without the
62 -A & -D switches.
63
64Refer to Squid documentation for the more details on squid.conf.
65
66
67=======
68Testing
69=======
70
71I strongly reccomend that mswin_check_lm_group is tested prior to being used in a
72production environment. It may behave differently on different platforms.
73To test it, run it from the command line. Enter username and group
1d09e43e 74pairs separated by a space (username must entered with domain%5cusername
736a9a4d 75syntax). Press ENTER to get an OK or ERR message.
76Make sure pressing <CTRL><D> behaves the same as a carriage return.
77Make sure pressing <CTRL><C> aborts the program.
78
79Test that entering no details does not result in an OK or ERR message.
80Test that entering an invalid username and group results in an ERR message.
81Test that entering an valid username and group results in an OK message.
82