]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
basic_smb_auth: doesn't handle passwords with backslashes
authorJeff Licquia <jlicquia@scinet.springfieldclinic.com>
Fri, 31 Jul 2015 06:22:11 +0000 (23:22 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 31 Jul 2015 06:22:11 +0000 (23:22 -0700)
 From; Jeff Licquia <jlicquia@scinet.springfieldclinic.com>
 Subject; squid: SMB auth proxy has problems with some passwords
 Date; Tue, 18 Jul 2000 12:45:01 -0500 (CDT)

The SMB authenticator doesn't handle passwords with backslashes in them
correctly.  The fix appears to be easy; just put a -r in the "read SMBPASS"
line in smb_auth.sh.

helpers/basic_auth/SMB/basic_smb_auth.sh

index a3d035303b6dde83db38937e293660a0cb9675a3..863e941be9c29544d90d82638d93eeeeb2377986 100755 (executable)
@@ -30,7 +30,7 @@ read NMBCAST
 read AUTHSHARE
 read AUTHFILE
 read SMBUSER
-read SMBPASS
+read -r SMBPASS
 
 # Find domain controller
 echo "Domain name: $DOMAINNAME"