Ubuntu 20.04.01 Squid ldap ERR: Missing username
by s0ap from LinuxQuestions.org on (#58PB0)
Hello... i'm new to Linux and as of now, I will need to deploy a squid running on ubuntu 20.04.01. Basically, the rest of the configuration works but when i try to do the ldap, it has an error.
/usr/lib/squid/basic_ldap_auth -R -b dc=domain,dc=com" -D cn=Administrator,cn=Users,dc=domain,dc=com" -w password" -f sAMAccountName=%s -h 192.168.1.75
ERR message="Missing username"
but if i echo using the below commands, it is okay
echo "user password" | /usr/lib/squid/basic_ldap_auth -R -b dc=domain,dc=com" -D cn=Administrator,cn=Users,dc=domain,dc=com" -w password" -f sAMAccountName=%s -h 192.168.1.75
ERR message="Missing username"
OK
Can someone please tell me where is my mistake? i tried google but i don't know where is the issue. Please kindly assist me and thank you


/usr/lib/squid/basic_ldap_auth -R -b dc=domain,dc=com" -D cn=Administrator,cn=Users,dc=domain,dc=com" -w password" -f sAMAccountName=%s -h 192.168.1.75
ERR message="Missing username"
but if i echo using the below commands, it is okay
echo "user password" | /usr/lib/squid/basic_ldap_auth -R -b dc=domain,dc=com" -D cn=Administrator,cn=Users,dc=domain,dc=com" -w password" -f sAMAccountName=%s -h 192.168.1.75
ERR message="Missing username"
OK
Can someone please tell me where is my mistake? i tried google but i don't know where is the issue. Please kindly assist me and thank you