squid_ldap_group(8) -- Linux man page
NAMEsquid_ldap_group - Squid LDAP external acl group helper
SYNOPSISsquid_ldap_group -b "base DN" -f "LDAP search filter" [options] [ldap_server_name[:port]|URI]...
DESCRIPTIONThis helper allows Squid to connect to a LDAP directory to authorize users via LDAP groups. The program operates by searching with a search filter based on the users user name and requested group, and if a match is found it is determined that the user belongs to the group.
- -b basedn (REQUIRED)
- Specifies the base DN under which the groups are located.
- -B basedn
- Specifies the base DN under which the users are located (if different)
- Specifies that the first query argument sent to the helper by Squid is a extension to the basedn and will be temporarily added in front of the global basedn for this query.
- -f filter
- LDAP search filter used to search the LDAP directory for any matching group memberships. Inthefilter%uwillbereplacedbytheusername(orDNif the -F or -u options are used) and %g by the requested group name.
- -F filter
- LDAP search filter used to search the LDAP directory for any matching users. Inthefilter%swillbereplacedbytheusername.If%istobe included literally in the filter then use %%.
- -u attr
- LDAP attribute used to construct the user DN from the user name and base dn without needing to search for the user.
- -s base|one|sub
- search scope. Defaults to 'sub'.
- base object only, one level below the base object or subtree below the base object
- -D binddn -w password
- The DN and password to bind as while performing searches. Required if the directory does not allow anonymous searches.
- As the password needs to be printed in plain text in your Squid configuration and will be sent on the command line to the helper it is strongly recommended to use a account with minimal associated privileges. This to limit the damage in case someone could get hold of a copy of your Squid configuration file or extracts the password used from a process listing.
- -D binddn -W secretfile
- The DN and the name of a file containing the password to bind as while performing searches.
- Less insecure version of the former parameter pair with two advantages: The password does not occur in the process listing, and the password is not being compromised if someone gets the squid configuration file without getting the secretfile.
- Use a persistent LDAP connection. Normally the LDAP connection is only open while verifying a users group membership to preserve resources at the LDAP server. This option causes the LDAP connection to be kept open, allowing it to be reused for further user validations. Recommended for larger installations.
- do not follow referrals
- -a never|always|search|find
- when to dereference aliases. Defaults to 'never'
- never dereference aliases (default), always dereference aliases, only while searching or only to find the base object
- -H ldapuri
- Specity the LDAP server to connect to by a LDAP URI (requires OpenLDAP libraries)
- -h ldapserver
- Specify the LDAP server to connect to
- -p ldapport
- Specify an alternate TCP port where the ldap server is listening if other than the default LDAP port 389.
- -v 2|3
- LDAP protocol version. Defaults to 2 if not specified.
- Use TLS encryption
- Enable LDAP over SSL (requires Netscape LDAP API libraries)
- Specify timeout used when connecting to LDAP servers (requires Netscape LDAP API libraries)
- Specify time limit on LDAP search operations
- Strip NT domain name component from user names (/ or \ separated)
Debug mode where each step taken will get reported in detail.
Useful for understanding what goes wrong if the results is
not what is expected.
SQUID CONFIGURATIONThis helper is intended to be used as a external_acl_type helper from squid.conf.
external_acl_type ldap_group %LOGIN /path/to/squid_ldap_group ...
acl group1 external ldap_group Group1
acl group2 external ldap_group Group2
NOTESWhen constructing search filters it is recommended to first test the filter using ldapsearch before you attempt to use squid_ldap_group. This to verify that the filter matches what you expect.
AUTHORThis manual page was written by Henrik Nordstrom <firstname.lastname@example.org> squid_ldap_group is written by Flavio Pescuma <email@example.com> and Henrik Nordstrom <firstname.lastname@example.org>, based on prior work in squid_ldap_auth by Glen Newton <email@example.com>
KNOWN LIMITATIONSMax 16 occurrences of %s in the -u argument is supported.
QUESTIONSAny questions on usage can be sent to Squid Users <firstname.lastname@example.org>, or to your favorite LDAP list/friend if the question is more related to LDAP than Squid.
REPORTING BUGSReport bugs or bug-fixes to Squid Bugs <email@example.com> or ideas for new improvements to Squid Developers <firstname.lastname@example.org>
SEE ALSOsquid_ldap_auth(8), ldapsearch(1),
Your favorite LDAP documentation
RFC2254 - The String Representation of LDAP Search Filters,