diff options
author | Günther Deschner <gd@samba.org> | 2008-12-02 12:57:02 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-12-02 12:59:22 +0100 |
commit | c554080dd988791ec2db37c96ff7cc709b0ee6ab (patch) | |
tree | a7ebd609b224b6781b13bc5d149a337e9cdaf598 /source3/libads | |
parent | ac6c003078aebee90dc5fdcd135fd13be358bab7 (diff) | |
download | samba-c554080dd988791ec2db37c96ff7cc709b0ee6ab.tar.gz samba-c554080dd988791ec2db37c96ff7cc709b0ee6ab.tar.bz2 samba-c554080dd988791ec2db37c96ff7cc709b0ee6ab.zip |
s3-net: allow to list a keytab generated using net rpc vampire.
Guenther
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos_keytab.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c index 883f582445..c4e67091dd 100644 --- a/source3/libads/kerberos_keytab.c +++ b/source3/libads/kerberos_keytab.c @@ -725,8 +725,11 @@ int ads_keytab_list(const char *keytab_name) ret = smb_krb5_enctype_to_string(context, enctype, &etype_s); if (ret) { - SAFE_FREE(princ_s); - goto out; + if (asprintf(&etype_s, "UNKNOWN: %d\n", enctype) == -1) + { + SAFE_FREE(princ_s); + goto out; + } } printf("%3d %s\t\t %s\n", kt_entry.vno, etype_s, princ_s); |