1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

r23034: Thanks to metze for providing some vital clues in the 'kerberos ccache

on credentials don't do anything' bug.

The problem was simple, we didn't set the ccache as having been
initialised, so we always created a new one.

Andrew Bartlett
(This used to be commit ec2014f08b0845bc8aa0e8e6713bc4b21f430811)
This commit is contained in:
Andrew Bartlett 2007-05-21 11:57:56 +00:00 committed by Gerald (Jerry) Carter
parent 1b67925851
commit 4dbbf7fed3

View File

@ -247,6 +247,9 @@ int cli_credentials_new_ccache(struct cli_credentials *cred, struct ccache_conta
*_ccc = ccc;
}
cred->ccache_obtained = (MAX(MAX(cred->principal_obtained,
cred->username_obtained),
cred->password_obtained));
return ret;
}
@ -259,8 +262,9 @@ int cli_credentials_get_ccache(struct cli_credentials *cred,
cli_credentials_set_machine_account(cred);
}
if (cred->ccache_obtained >= (MAX(cred->principal_obtained,
cred->username_obtained))) {
if (cred->ccache_obtained >=(MAX(MAX(cred->principal_obtained,
cred->username_obtained),
cred->password_obtained))) {
*ccc = cred->ccache;
return 0;
}