kadmin or keytab extraction

Andrew Bartlett abartlet at samba.org
Mon Nov 28 22:25:25 MST 2011


On Sun, 2011-11-27 at 22:15 +0100, Gémes Géza wrote:

> >
> Hi,
> 
> Unfortunately after a few days spent it still segfaults at
> krb5_kt_get_entry.
> The code is a shameless copy of the libnet_export_keytab, with some
> modifications (I've created a struct libnet_ext_keytab with the in part
> having a keytab, a principal a kvno and an enctype), the fprintf's are
> to know where it does fail:

I've written this up today, and the patch I've submitted to autobuild is attached.

Try out the attached patch, and 'samba-tool domain
exportkeytab /tmp/keytab --principal=cifs/foo' (or any other valid
service principal name). 

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s4-samba-tool-Add-principal-argument-to-samba-tool-d.patch
Type: text/x-patch
Size: 13865 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20111129/57f14eee/attachment.bin>


More information about the samba-technical mailing list