LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-14-2015, 11:37 PM   #1
lesca
Member
 
Registered: Sep 2010
Posts: 58

Rep: Reputation: 0
Squid LDAP Auth: there is a space in user name


Hi genius,

I am trying to set up a Squid service with LDAP auth. All tests are passed, but I find I cannot get it work if the user name passed to the auth helper contains a space.

Here is a example:
Code:
/usr/lib64/squid/basic_ldap_auth -R -D "scan@apac.tld" -W /etc/squid/adpw -b "dc=apac,dc=tld" -f "sAMAccountName=%s" x.x.x.x
scan password
OK
name surname password
ERR Success
I've also tried:
Code:
name\ surname password
"name surname" password
"name surname" "password"
'name surname' password
'name surname' 'password'
But none of them work!

Do you have any idea to pass user name containing a space to the squid auth helper?

Many thanks!

Last edited by lesca; 02-14-2015 at 11:39 PM.
 
Old 02-14-2015, 11:48 PM   #2
lesca
Member
 
Registered: Sep 2010
Posts: 58

Original Poster
Rep: Reputation: 0
After a min I posted this thread, I found a solution:
Code:
user%20name password
Works!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LDAP -how to disable ldap auth from client side unibox Linux - Server 3 02-07-2012 06:43 AM
Squid User Auth Encrypt? Sevensins Linux - Security 2 05-14-2010 12:21 PM
Squid & SquidGuard user auth Phreedom Linux - Security 1 01-08-2009 10:29 AM
Squid proxy LDAP auth: finding one user noir911 Linux - Server 1 09-15-2008 05:42 PM
Squid Ldap Auth & Active Directory password prompt in browser ali247 Linux - Networking 3 05-05-2006 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration