1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r17972: revert accidental commit to ads_verify_ticket()

This commit is contained in:
Gerald Carter 2006-08-31 18:33:50 +00:00 committed by Gerald (Jerry) Carter
parent fa05708789
commit 95f6b22e51

View File

@ -376,15 +376,13 @@ NTSTATUS ads_verify_ticket(TALLOC_CTX *mem_ctx,
goto out;
}
/* always check secrets first in order to prevent hitting the
keytab until really necessary */
auth_ok = ads_secrets_verify_ticket(context, auth_context, host_princ,
ticket, &packet, &tkt, &keyblock);
if (!auth_ok && lp_use_kerberos_keytab()) {
if (lp_use_kerberos_keytab()) {
auth_ok = ads_keytab_verify_ticket(context, auth_context, ticket, &packet, &tkt, &keyblock);
}
if (!auth_ok) {
auth_ok = ads_secrets_verify_ticket(context, auth_context, host_princ,
ticket, &packet, &tkt, &keyblock);
}
release_server_mutex();
got_replay_mutex = False;