summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-17 02:01:30 +0100
committerGünther Deschner <gd@samba.org>2008-02-17 02:12:00 +0100
commit965774fa8f78a6b0f3306d356fd0d17a2a8943df (patch)
tree5e864b692327b4da8e33a2d7452d805dad3c758f
parentc1793b2b316a8f912dde14f806c84ac7d1491bf3 (diff)
downloadsamba-965774fa8f78a6b0f3306d356fd0d17a2a8943df.tar.gz
samba-965774fa8f78a6b0f3306d356fd0d17a2a8943df.tar.bz2
samba-965774fa8f78a6b0f3306d356fd0d17a2a8943df.zip
Fix some more callers of PAC_DATA.
Guenther (This used to be commit ea609d1b0e82d7c366dd73013228003136264b64)
-rw-r--r--source3/libads/kerberos_verify.c2
-rw-r--r--source3/utils/net_ads.c8
-rw-r--r--source3/utils/ntlm_auth.c2
3 files changed, 7 insertions, 5 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c
index 5ce7aa6b45..f112dd34e3 100644
--- a/source3/libads/kerberos_verify.c
+++ b/source3/libads/kerberos_verify.c
@@ -309,7 +309,7 @@ NTSTATUS ads_verify_ticket(TALLOC_CTX *mem_ctx,
time_t time_offset,
const DATA_BLOB *ticket,
char **principal,
- PAC_DATA **pac_data,
+ struct PAC_DATA **pac_data,
DATA_BLOB *ap_rep,
DATA_BLOB *session_key,
bool use_replay_cache)
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 732ba8d8b6..fb644ba55e 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -2519,8 +2519,8 @@ static int net_ads_kerberos_renew(int argc, const char **argv)
static int net_ads_kerberos_pac(int argc, const char **argv)
{
- PAC_DATA *pac = NULL;
- PAC_LOGON_INFO *info = NULL;
+ struct PAC_DATA *pac = NULL;
+ struct PAC_LOGON_INFO *info = NULL;
TALLOC_CTX *mem_ctx = NULL;
NTSTATUS status;
int ret = -1;
@@ -2551,7 +2551,9 @@ static int net_ads_kerberos_pac(int argc, const char **argv)
info = get_logon_info_from_pac(pac);
if (info) {
- dump_pac_logon_info(0, info);
+ const char *s;
+ s = NDR_PRINT_STRUCT_STRING(mem_ctx, PAC_LOGON_INFO, info);
+ d_printf("The Pac: %s\n", s);
}
ret = 0;
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index a3a403d7bd..9e9da2a66f 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -1215,7 +1215,7 @@ static void manage_gss_spnego_request(struct ntlm_auth_state *state,
char *principal;
DATA_BLOB ap_rep;
DATA_BLOB session_key;
- PAC_DATA *pac_data = NULL;
+ struct PAC_DATA *pac_data = NULL;
if ( request.negTokenInit.mechToken.data == NULL ) {
DEBUG(1, ("Client did not provide Kerberos data\n"));