summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-12-02 12:57:02 +0100
committerGünther Deschner <gd@samba.org>2008-12-02 12:59:22 +0100
commitc554080dd988791ec2db37c96ff7cc709b0ee6ab (patch)
treea7ebd609b224b6781b13bc5d149a337e9cdaf598 /source3
parentac6c003078aebee90dc5fdcd135fd13be358bab7 (diff)
downloadsamba-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')
-rw-r--r--source3/libads/kerberos_keytab.c7
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);