auth/credentials: 'workgroup' set via command line will not drop existing ccache
authorAlexander Bokovoy <ab@samba.org>
Thu, 24 May 2012 12:17:40 +0000 (15:17 +0300)
committerAlexander Bokovoy <ab@samba.org>
Thu, 24 May 2012 14:21:26 +0000 (16:21 +0200)
commitdc3f74a953de0fcf9b3f693efe2ba8dea7b93da9
treeaa6da0bd898109a9400f7d014e01302fea5f23c2
parenta95b2ba043ce843149fef4821cc25823c53cf994
auth/credentials: 'workgroup' set via command line will not drop existing ccache

The root cause for existing ccache being invalidated was use of global loadparm with
'workgroup' value set as if from command line. However, we don't really need to take
'workgroup' parameter value's nature into account when invalidating existing ccache.
When -U is used on the command line, one can specify a password to force ccache
invalidation.

The commit also reverts previous fix now that root cause is clear.
auth/credentials/credentials.c
auth/credentials/credentials_krb5.c
testprogs/blackbox/test_kinit.sh