summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-07-27 00:25:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:06 -0500
commit06e650a4429a54f7839eeb68c00220ac8b8b58ed (patch)
treece4c6ee274e3b314bc02d7f229e4409819d8f1e2 /source4/torture
parent0b7a3878317f87331027c80ce6d8dce83932de6e (diff)
downloadsamba-06e650a4429a54f7839eeb68c00220ac8b8b58ed.tar.gz
samba-06e650a4429a54f7839eeb68c00220ac8b8b58ed.tar.bz2
samba-06e650a4429a54f7839eeb68c00220ac8b8b58ed.zip
r8792: Clarify comments
(This used to be commit 6174cf826fac8288b6604d9140b741aab2156cb3)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/auth/pac.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/torture/auth/pac.c b/source4/torture/auth/pac.c
index 21c3119e31..59bf008970 100644
--- a/source4/torture/auth/pac.c
+++ b/source4/torture/auth/pac.c
@@ -215,6 +215,9 @@ static BOOL torture_pac_saved_check(void)
return False;
}
+ /* The krbtgt key in use when the above PAC was generated.
+ * This is an arcfour-hmac-md5 key, extracted with our 'net
+ * samdump' tool. */
krbtgt_bytes = smbpasswd_gethexpwd(mem_ctx, "B286757148AF7FD252C53603A150B7E7");
if (!krbtgt_bytes) {
DEBUG(0, ("Could not interpret krbtgt key"));
@@ -296,10 +299,9 @@ static BOOL torture_pac_saved_check(void)
dump_data(10,validate_blob.data,validate_blob.length);
- /* all we can check is the length of the buffers,
- * to check that the alignment and padding is ok,
- * we can't compare the bytes, because we use a different algorithm
- * to create the pointer values
+ /* compare both the length and the data bytes after a
+ * pull/push cycle. This ensures we use the exact same
+ * pointer, padding etc algorithms as win2k3.
*/
if (tmp_blob.length != validate_blob.length) {
DEBUG(0, ("PAC push failed: orignial buffer length[%u] != created buffer length[%u]\n",