Bug#299733: [exim-dev] [Debian issue #299733] exim4: $primary_hostname not expanded in cyrus_sasl authenicator

Philip Hazel exim-dev@exim.org, 299733@bugs.debian.org
Wed, 16 Mar 2005 11:12:03 +0000 (GMT)


On Wed, 16 Mar 2005, Marc Haber wrote:

> this is issue #299733 from the Debian BTS. I am not sure whether this
> is an issue with exim, but since the authenticators doesn't set any
> server_hostname itself, I suspect the issue is with not expanding the
> default.

Looks like a trivial typo; it does expand server_hostname, but then it 
doesn't use the result! (And as this was not my original code, I refuse 
to take the blame... :-)

The fix would seem to be to find these lines:

rc=sasl_server_new(CS ob->server_service, CS ob->server_hostname,
                   CS ob->server_realm, NULL, NULL, NULL, 0, &conn);
                    
and replease "ob->server_hostname" by "hname".

Not tested, but I'll look at it in due course.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@cus.cam.ac.uk      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book