]> git.ipfire.org Git - thirdparty/squid.git/blame - helpers/external_acl/ldap_group/squid_ldap_group.8
Upgraded squid_ldap_group to 2.12
[thirdparty/squid.git] / helpers / external_acl / ldap_group / squid_ldap_group.8
CommitLineData
5eecb267 1.TH squid_ldap_group 8 "1 Mars 2003" "Squid LDAP Match"
28e81872 2.
3.SH NAME
4squid_ldap_group - Squid LDAP external acl group helper
5.
6.SH SYNOPSIS
5eecb267 7squid_ldap_group -b "base DN" -f "LDAP search filter" [options] [ldap_server_name[:port]...|URI]
28e81872 8.
9.SH DESCRIPTION
10This helper allows Squid to connect to a LDAP directory to
11authorize users via LDAP groups.
12.P
13The program operates by searching with a search filter based
5eecb267 14on the users user name and requested group, and if a match
28e81872 15is found it is determined that the user belongs to the group.
16.
17.TP
18.BI "-b " "basedn " (REQUIRED)
19Specifies the base DN under which the groups are located.
20.
6708c52c 21.TP
22.BI "-B " "basedn "
23Specifies the base DN under which the users are located (if different)
24.
25.TP
28e81872 26.B "-g"
27Specifies that the first query argument sent to the helper by Squid is
5eecb267 28a extension to the basedn and will be temporarily added in front of the
6708c52c 29global basedn for this query.
30.
28e81872 31.TP
32.BI "-f " filter
33LDAP search filter used to search the LDAP directory for any
34matching group memberships.
35.BR
5eecb267 36In the filter %u will be replaced by the user name (or DN if
6708c52c 37the -F or -u options are used) and %g by the requested group name.
38.
39.TP
40.BI "-F " filter
41LDAP search filter used to search the LDAP directory for any
42matching users.
43.BR
5eecb267 44In the filter %s will be replaced by the user name. If % is to be
6708c52c 45included literally in the filter then use %%.
46.
47.TP
48.BI "-u " attr
5eecb267 49LDAP attribute used to construct the user DN from the user name and
50base dn without needing to search for the user.
28e81872 51.
52.TP
53.BI "-s " base|one|sub
54search scope. Defaults to 'sub'.
55.IP
56.B base
57object only,
58.B one
59level below the base object or
60.BR sub tree
61below the base object
62.
63.TP
64.BI "-D " "binddn " "-w " password
65The DN and password to bind as while performing searches. Required
66if the directory does not allow anonymous searches.
67.IP
68As the password needs to be printed in plain text in your Squid configuration
69and will be sent on the command line to the helper it is strongly recommended
70to use a account with minimal associated privileges. This to limit the damage
71in case someone could get hold of a copy of your Squid configuration file or
72extracts the password used from a process listing.
73.
74.TP
75.BI -P
76Use a persistent LDAP connection. Normally the LDAP connection
5eecb267 77is only open while verifying a users group membership to preserve
78resources at the LDAP server. This option causes the LDAP connection to
28e81872 79be kept open, allowing it to be reused for further user
80validations. Recommended for larger installations.
81.
82.TP
83.BI -R
84do not follow referrals
85.
86.TP
87.BI "-a " never|always|search|find
88when to dereference aliases. Defaults to 'never'
89.IP
90.BI never
91dereference aliases (default),
92.BI always
93dereference aliases, only while
94.BR search ing
95or only to
96.B find
97the base object
98.
99.TP
5eecb267 100.BI -H " ldapuri"
101Specity the LDAP server to connect to by a LDAP URI
102.
103.TP
28e81872 104.BI -h " ldapserver"
105Specify the LDAP server to connect to
106.TP
107.BI -p " ldapport"
108Specify an alternate TCP port where the ldap server is listening if
109other than the default LDAP port 389.
110.
6708c52c 111.TP
112.BI -S
5eecb267 113Strip NT domain name component from user names (/ or \\ separated)
6708c52c 114.
115.SH SQUID CONFIGURATION
116.
117This helper is intended to be used as a external_acl_type helper from
118squid.conf.
119.P
120.ft CR
121.nf
122external_acl_type ldap_group %LOGIN /path/to/squid_ldap_group ...
123.br
5eecb267 124acl group1 external ldap_group Group1
6708c52c 125.br
5eecb267 126acl group2 external ldap_group Group2
6708c52c 127.fi
128.ft
129.
28e81872 130.SH NOTES
131.
5eecb267 132When constructing search filters it is recommended to first test the filter
28e81872 133using ldapsearch before you attempt to use squid_ldap_group. This to verify
134that the filter matches what you expect.
135.
136.SH AUTHOR
137This manual page was written by
138.I Henrik Nordstrom <hno@marasystems.com>
139.P
140squid_ldap_group is written by
141.I Flavio Pescuma <flavio@marasystems.com>
142and
143.IR "Henrik Nordstrom <hno@squid-cache.org>" ,
144based on prior work in squid_ldap_auth by
145.I Glen Newton <glen.newton@nrc.ca>
146.
147.SH KNOWN LIMITATIONS
5eecb267 148Max 16 occurrences of %s in the -u argument is supported.
28e81872 149.
150.SH QUESTIONS
151Any questions on usage can be sent to
152.IR "Squid Users <squid-users@squid-cache.org>" ,
153or to your favorite LDAP list/friend if the question is more related to
154LDAP than Squid.
155.
156.SH REPORTING BUGS
157Report bugs or bug-fixes to
158.I Squid Bugs <squid-bugs@squid-cache.org>
159or ideas for new improvements to
160.I Squid Developers <squid-dev@squid-cache.org>
161.
162.SH "SEE ALSO"
163.BR squid_ldap_auth ( 8 ),
164.BR ldapsearch ( 1 ),
165.br
166Your favorite LDAP documentation
167.br
168.BR RFC2254 " - The String Representation of LDAP Search Filters,"