]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libads: Remove extra new line in keytab list output
authorPavel Filipenský <pfilipen@redhat.com>
Fri, 2 Jul 2021 07:14:18 +0000 (09:14 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 2 Jul 2021 11:45:48 +0000 (11:45 +0000)
net ads keytab list prints extra new line for uknown encoding types,
so it spans over two lines, instead over a single line:

  1  AES-128 CTS mode with 96-bit SHA-1 HMAC     ADDC$@ADDOM.SAMBA.EXAMPLE.COM
  1  UNKNOWN: 3
                                 ADDC$@ADDOM.SAMBA.EXAMPLE.COM

Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Jul  2 11:45:48 UTC 2021 on sn-devel-184

source3/libads/kerberos_keytab.c

index da363741d109e37440664794fe7943db831a4309..b7e1846bd9ff662c87bdec19094ecfe92d087465 100644 (file)
@@ -853,7 +853,7 @@ int ads_keytab_list(const char *keytab_name)
 
                ret = smb_krb5_enctype_to_string(context, enctype, &etype_s);
                if (ret &&
-                   (asprintf(&etype_s, "UNKNOWN: %d\n", enctype) == -1)) {
+                   (asprintf(&etype_s, "UNKNOWN: %d", enctype) == -1)) {
                        TALLOC_FREE(princ_s);
                        goto out;
                }