Removing active directory credentials using klist purge
While installing a backup solution, there was an issue where the permissions to the target share seemed to be failing. We discovered that we had connected to the share using the administrative credentials while setting things up and the software was using application specific credentials that were failing to due to the existing credentials.
It is easy to disconnect from an active directory share and remove the credentials, but it doesn't come up much, so it is easy to forget. First, run net use \\server\share /delete
for your share in question. Then, when the share is disconnected, run klist purge
. This removes the Kerberos cached credential information, which will be restored for the remaining connections that are still valid automatically. The other application can then make a connection using alternative credentials as expected.