summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-01-28 00:33:21 +0000
committerJeremy Allison <jra@samba.org>2003-01-28 00:33:21 +0000
commit755e33ee3f25884096d3fa2ac4bd4cf64a794903 (patch)
treeab05d858bee67d931bf9f388c31b27406a9372c9 /source3/libads
parentf911f03a7db94635bf78d2c9b4748700af757bb5 (diff)
downloadsamba-755e33ee3f25884096d3fa2ac4bd4cf64a794903.tar.gz
Get smbd to link with Heimdal. Still missing some client progs...
Jeremy. (This used to be commit 85dda434763bbcea260c800599e4b6b73afcf174)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos_verify.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c
index 379525a8e3..268326fca9 100644
--- a/source3/libads/kerberos_verify.c
+++ b/source3/libads/kerberos_verify.c
@@ -114,10 +114,7 @@ NTSTATUS ads_verify_ticket(ADS_STRUCT *ads, const DATA_BLOB *ticket,
return NT_STATUS_LOGON_FAILURE;
}
- if (tkt->enc_part2) {
- *auth_data = data_blob(tkt->enc_part2->authorization_data[0]->contents,
- tkt->enc_part2->authorization_data[0]->length);
- }
+ get_auth_data_from_tkt(auth_data, tkt);
#if 0
if (tkt->enc_part2) {
@@ -127,7 +124,7 @@ NTSTATUS ads_verify_ticket(ADS_STRUCT *ads, const DATA_BLOB *ticket,
}
#endif
- if ((ret = krb5_unparse_name(context, tkt->enc_part2->client, principal))) {
+ if ((ret = krb5_unparse_name(context, get_principal_from_tkt(tkt), principal))) {
DEBUG(3,("krb5_unparse_name failed (%s)\n",
error_message(ret)));
return NT_STATUS_LOGON_FAILURE;