On Tue, 21 Jun 2011 19:20:52 -0400 (EDT)
Wietse Venema articulated:

> Sahil Tandon:
> > On Tue, 2011-06-21 at 18:45:47 -0400, Wietse Venema wrote:
> > 
> > > Peter:
> > > > The SASL_README doc has a section about doing a telnet test of
> > > > a PLAIN SASL authentication.  There are some methods suggested
> > > > for generating the base64 hash required to do the
> > > > authentication,  Of those two methods one requires downloading
> > > > a special utility to generate the auth string and the other
> > > > requires installing a perl module.  I have a third suggestion:
> > > > 
> > > > echo -ne '\000username\000password' | openssl base64
> > > > 
> > > > This method is relatively easy to do, and will work with the
> > > > programs that are already readily available on most systems.  I
> > > > think it would be good to add it to the docs.
> > > 
> > > This does not work for me. If you make a suggestion, be sure 
> > > to indicate what platform and shell this applies to.
> > 
> > Appears to work in bash and zsh; not in (t)csh.  I quickly tested on
> > FreeBSD and Darwin.  Likely related to handling of null byte/char. 
> 
> I'm away from home, so I can't quickly fire up a ksh box. It certainly
> does not work with FreeBSD8 /bin/sh.
> 
> In Postfix documentation, I try to avoid examples that are limited
> to one shell family, or examples that require mode text to describe
> where it doe/not work than the example itself. 

Using FreeBSD-8.2 with GNU bash, version 4.1.10(1)-release
(amd64-portbld-freebsd8.2) as the default shell.

echo -ne '\000username\000password' | openssl base64
AHVzZXJuYW1lAHBhc3N3b3Jk

-- 
Jerry ✌
postfix-u...@seibercom.net
_____________________________________________________________________
TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail
TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html

Reply via email to