Feature #9217
closedSquid LDAP Authentication - spaces in ldif values
100%
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
       Updated by Jim Pingle about 6 years ago
      Updated by Jim Pingle about 6 years ago
      
    
    - Project changed from pfSense to pfSense Packages
- Category set to Squid
- Target version deleted (2.5.0)
       Updated by Viktor Gurov almost 6 years ago
      Updated by Viktor Gurov almost 6 years ago
      
    
    
    
       Updated by Jim Pingle almost 6 years ago
      Updated by Jim Pingle almost 6 years ago
      
    
    - Status changed from New to Pull Request Review
       Updated by Renato Botelho almost 6 years ago
      Updated by Renato Botelho almost 6 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!
       Updated by Viktor Gurov over 5 years ago
      Updated by Viktor Gurov over 5 years ago
      
    
    - Status changed from Feedback to Resolved
squid pkg 0.4.44_21 - works as expected