1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +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,14 +376,12 @@ NTSTATUS ads_verify_ticket(TALLOC_CTX *mem_ctx,
goto out; goto out;
} }
/* always check secrets first in order to prevent hitting the if (lp_use_kerberos_keytab()) {
keytab until really necessary */ 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, auth_ok = ads_secrets_verify_ticket(context, auth_context, host_princ,
ticket, &packet, &tkt, &keyblock); ticket, &packet, &tkt, &keyblock);
if (!auth_ok && lp_use_kerberos_keytab()) {
auth_ok = ads_keytab_verify_ticket(context, auth_context, ticket, &packet, &tkt, &keyblock);
} }
release_server_mutex(); release_server_mutex();