[39045] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Debugging why KRB5_KTNAME isn't working

daemon@ATHENA.MIT.EDU (Brian J. Murrell)
Thu Jan 27 13:30:47 2022

Message-ID: <0d9c6ad8baa23118afb18a9ff82e9ff99a85d7cb.camel@interlinx.bc.ca>
From: "Brian J. Murrell" <brian@interlinx.bc.ca>
To: <kerberos@mit.edu>
Date: Thu, 27 Jan 2022 13:27:07 -0500
In-Reply-To: <202201271803.20RI3uW0023229@hedwig.cmf.nrl.navy.mil>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

On Thu, 2022-01-27 at 13:03 -0500, Ken Hornstein wrote:
> 
> 
> Is it possible Postfix is clearing out the environment at startup?

As anything, I suppose it is possible.  It would be doing so in
violation of exactly the purpose of the mechanism that is being used to
set the environment though.  Meaning, the environment is not just being
set by the caller and Postfix is clearing it as a matter of good
housekeeping.  The variable is actually being specified in a for-
purpose Postfix configuration mechanism.  This mechanism is
specifically defined to set environment variables in Postfix processes.

I will ask the Postfix mailing list in any case.

> a very brief
> test suggests to me that "environ" contains the environment at
> process
> start and modification of the current environment isn't reflected
> there,

That's the result of my testing too.  I must admit to being a little
surprised at that though.  Seems to significantly diminish the
purpose/usefulness of that particular /proc entry.

> so if Postfix was resetting the environment you wouldn't know it

Indeed.

I wonder if you can suggest a simple test that would verify/demonstrate
the functionality of the KRB5_KTNAME env. var. that I can use in my
problem report to the Postfix devs.

Cheers,
b.
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post