cli_credentials ccache semantics and test changes

Andrew Bartlett abartlet at
Wed May 23 23:26:28 MDT 2012

On Thu, 2012-05-24 at 01:02 -0400, simo wrote:
> On Thu, 2012-05-24 at 13:39 +1000, Andrew Bartlett wrote:
> Something doesn't click here,
> are you saying that if I use samba libraries in a program and user/pas
> are specified within it, it will just merrily go and blow away my
> ccache ?

No, Samba always creates an in-memory ccache for it's own operations.
We are very careful not to touch a credentials cache unless we are
actually using it. 

> That sounds quite wrong, especially if that happens with utilities like
> the net or samba-tool utilities. Can you elaborate on this ?

What it means is that if you use samba libraries in a program and
user/pass are specified within it, that these are used, irrespective of
if any kerberos credentials cache is in the environment. 

Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 

More information about the samba-technical mailing list