Subject: Re: ftp and basic auth
To: None <current-users@netbsd.org, lukem@netbsd.org>
From: Luke Mewburn <lukem@NetBSD.org>
List: current-users
Date: 08/08/2004 23:52:56
--rKOZBEg9ux5nbisz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 22, 2004 at 03:24:26PM -0500, Eric Haszlakiewicz wrote:
  |=20
  | 	I just ran into a problem with ftp and http basic authentication.
  | It appears that ftp base64 encodes username + ":" + password + "\0"
  | and sends that as the Authorization string.  This doesn't work with the
  | latest tomcat.  I looked a a couple other apps that send basic auth
  | (firebird and internet explorer) and they _don't_ include the final \0.
  |=20
  | I was going to fix ftp (fetch.c:170-183), but noticed that it _explicit=
ly_
  | keeps the \0 on there.  So, is ftp broken, or is there some reason the =
\0
  | should be on there?

ftp was broken.  I've applied a fix (ftp about:version =3D=3D 20040808).

Thanks,
Luke.

--rKOZBEg9ux5nbisz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (NetBSD)

iD8DBQFBFjA4pBhtmn8zJHIRAkQSAJsHcGy3gm6HlnqRidR97av5iX96QQCgzC4w
0oynmHoxY9XE/IlE5zpG5u0=
=2RKY
-----END PGP SIGNATURE-----

--rKOZBEg9ux5nbisz--