Project

General

Profile

Actions

Feature #9217

closed

Squid LDAP Authentication - spaces in ldif values

Added by Vladimir Lind over 5 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
Squid
Target version:
-
Start date:
12/20/2018
Due date:
% Done:

100%

Estimated time:
Plus Target Version:

Description

If OU value or another ldif unit contains spaces, for example OU=all users, squid ldap auth works only if to put the whole expression in proper webgui fields (squid > Auth) between quotes.
May be it is worth to wrap the values in fields LDAP Server User DN and LDAP Base DN in quotes automatically.

This works:

auth_param basic program /usr/local/libexec/squid/basic_ldap_auth -v 3 -b 'ou=all users,dc=company,dc=local' -D 'cn=admin,ou=all users,dc=company,dc=local' -w pass -f "objectClass=user" -u sAMAccountName -P 1.1.1.1:234

This doesn't work:

auth_param basic program /usr/local/libexec/squid/basic_ldap_auth -v 3 -b ou=all users,dc=company,dc=local -D cn=admin,ou=all users,dc=company,dc=local -w pass -f "objectClass=user" -u sAMAccountName -P 1.1.1.1:234

Attached corresponding webgui config.

Ticket for reference - https://go.netgate.com/helpdesk/tickets/18080


Files

ldap_quotes.png (34.3 KB) ldap_quotes.png Vladimir Lind, 12/20/2018 12:16 AM
ldap_no_quotes.png (34.2 KB) ldap_no_quotes.png Vladimir Lind, 12/20/2018 12:17 AM
Actions #1

Updated by Jim Pingle about 5 years ago

  • Target version changed from 48 to 2.5.0
Actions #2

Updated by Jim Pingle over 4 years ago

  • Project changed from pfSense to pfSense Packages
  • Category set to Squid
  • Target version deleted (2.5.0)
Actions #4

Updated by Jim Pingle about 4 years ago

  • Status changed from New to Pull Request Review
Actions #5

Updated by Renato Botelho about 4 years ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Renato Botelho
  • % Done changed from 0 to 100

PR has been merged. Thanks!

Actions #6

Updated by Viktor Gurov almost 4 years ago

  • Status changed from Feedback to Resolved

squid pkg 0.4.44_21 - works as expected

Actions

Also available in: Atom PDF