1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-06 08:23:50 +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 commit is contained in:
Andrew Bartlett
2007-05-21 11:57:56 +00:00
committed by Gerald (Jerry) Carter
parent c9e017c008
commit ec2014f08b

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;
}