summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-04-16 16:57:01 +0000
committerJim McDonough <jmcd@samba.org>2003-04-16 16:57:01 +0000
commitbdaac40746567bdadae1150412cdf307b6e8672d (patch)
tree1eb145a0c0288f8e4f5e2e621e9102a660691b08 /source3
parent09a50497d1360659eb8bd1b9f4be510680267bd2 (diff)
downloadsamba-bdaac40746567bdadae1150412cdf307b6e8672d.tar.gz
samba-bdaac40746567bdadae1150412cdf307b6e8672d.tar.bz2
samba-bdaac40746567bdadae1150412cdf307b6e8672d.zip
Move PAC decoding over from HEAD.
(This used to be commit b0fd4e5555dd93c584cd86eaac080663b9e4031f)
Diffstat (limited to 'source3')
-rw-r--r--source3/Makefile.in2
-rw-r--r--source3/include/ntdomain.h3
-rw-r--r--source3/libads/kerberos_verify.c6
3 files changed, 10 insertions, 1 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 5ea691f21e..3f95a6f858 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -195,7 +195,7 @@ LIBADS_OBJ = libads/ldap.o libads/ldap_printer.o libads/sasl.o \
libads/krb5_setpw.o libads/ldap_user.o \
libads/ads_struct.o libads/ads_status.o \
libads/disp_sec.o libads/ads_utils.o libads/ldap_utils.o \
- libads/ads_ldap.o
+ libads/ads_ldap.o libads/authdata.o
LIBADS_SERVER_OBJ = libads/util.o libads/kerberos_verify.o
diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h
index dc0ffc8035..b6ab4fd0c5 100644
--- a/source3/include/ntdomain.h
+++ b/source3/include/ntdomain.h
@@ -372,6 +372,9 @@ struct acct_info
/* security descriptor structures */
#include "rpc_secdes.h"
+/* pac */
+#include "authdata.h"
+
/* different dce/rpc pipes */
#include "rpc_lsa.h"
#include "rpc_netlogon.h"
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c
index 4d9a1bf765..6a50137400 100644
--- a/source3/libads/kerberos_verify.c
+++ b/source3/libads/kerberos_verify.c
@@ -148,6 +148,12 @@ NTSTATUS ads_verify_ticket(ADS_STRUCT *ads, const DATA_BLOB *ticket,
get_auth_data_from_tkt(auth_data, tkt);
+ {
+ TALLOC_CTX *ctx = talloc_init("pac data");
+ decode_pac_data(auth_data, ctx);
+ talloc_destroy(ctx);
+ }
+
#if 0
if (tkt->enc_part2) {
file_save("/tmp/authdata.dat",