aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/kdb/test/kdb_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/kdb/test/kdb_test.c')
-rw-r--r--src/plugins/kdb/test/kdb_test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/kdb/test/kdb_test.c b/src/plugins/kdb/test/kdb_test.c
index 8e7015d..e6d7aae 100644
--- a/src/plugins/kdb/test/kdb_test.c
+++ b/src/plugins/kdb/test/kdb_test.c
@@ -656,6 +656,14 @@ test_issue_pac(krb5_context context, unsigned int flags, krb5_db_entry *client,
data = string2data("fake");
check(krb5_pac_add_buffer(context, new_pac, KRB5_PAC_LOGON_INFO,
&data));
+
+ if (replaced_reply_key != NULL) {
+ /* Add a fake PAC_CREDENTIALS_INFO buffer so we can test whether
+ * this parameter was set. */
+ data = string2data("fake credinfo");
+ check(krb5_pac_add_buffer(context, new_pac,
+ KRB5_PAC_CREDENTIALS_INFO, &data));
+ }
return 0;
} else {
/* Field copying - my favorite! */