s4: add a minimal ktutil for selftest
authorRalph Boehme <slow@samba.org>
Fri, 22 Apr 2016 20:05:54 +0000 (22:05 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 25 Apr 2016 08:35:14 +0000 (10:35 +0200)
commit3116e8d3beaba0b28d0226fcc7625783e6b32694
tree91b6f6d15851c2c1a2fb24fc005815378986ac0d
parentdeab6c6df76180f875c411c3f6b1a9cf6696b88c
s4: add a minimal ktutil for selftest

This minimalistic version of ktutil dumps all principal names and
encryption types from a keytab, eg:

./bin/samba4ktutil test.keytab
ktpassuser@HILLHOUSE.SITE (arcfour-hmac-md5)
ktpassuser@HILLHOUSE.SITE (aes256-cts-hmac-sha1-96)
ktpassuser@HILLHOUSE.SITE (aes128-cts-hmac-sha1-96)
ktpassuser@HILLHOUSE.SITE (des-cbc-md5)
ktpassuser@HILLHOUSE.SITE (des-cbc-crc)

This is all we need to run some tests against keytabs exported with
`samba-tool domain exportkeytab`.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/kdc/ktutil.c [new file with mode: 0644]
source4/kdc/wscript_build