]> git.ipfire.org Git - thirdparty/squid.git/commit
basic_smb_auth: rejecting valid credentials
authorUnknown - Debian Project <>
Fri, 31 Jul 2015 06:26:38 +0000 (23:26 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 31 Jul 2015 06:26:38 +0000 (23:26 -0700)
commitf334d758ffdbd1bd981c46a8dd7c8edd80895806
tree781f325995d9a337b35309cf253bc5213909bba3
parentd65bfabaa0111a10e88719c6b9565094d319a2d4
basic_smb_auth: rejecting valid credentials

basic_smb_auth.sh delivers the credentials via environment in
a form "$USER%$PASSWORD", which is not expected from smbclient. This seem to
result from an obsolete or inferior documentation of smbclient. While it is
perfectly valid to deliver the credentials in this form via commandline
parameter -U, for example in

  smbclient //domain_controller/NETLOGON -d 0 -E -W windows_domain -c "get
  proxyauth -" -U herrmann%mysecurepassword 2>/dev/null

this form is not valid, when the credentials will be delivered via environment.

Via environment the credentials must be delivered in two separate variables
  USER=$USER%
  PASSWD=$PASSWORD.
helpers/basic_auth/SMB/basic_smb_auth.sh