Re: [exim-dev] [Debian issue #299733] exim4: $primary_hostna…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: Marc Haber
Kopio: exim-dev, Marc Haber, 299733
Uudet otsikot: Bug#299733: Info received (was [exim-dev] [Debian issue #299733] exim4: $primary_hostname not expanded in cyrus_sasl authenicator)
Aihe: Re: [exim-dev] [Debian issue #299733] exim4: $primary_hostname not expanded in cyrus_sasl authenicator
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@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book