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.
Wietse