ksetpw typo to strtok_r() prevents space delimited -e enctype_list
ksetpw.c calls strtok_r() first with `",\t,"` and then in the loop with `",\t "`. This discrepancy prevents using space as a delimiter for -e enctype_list. This typo does not appear in the Wayback-mediated archive of http://opensolaris.org/os/project/winchester/files/adjoin-s10u5.tar.gz, which appears to be an earlier, draft version of what is in illumos-gate.
$ /usr/lib/krb5/ksetpw -n -v 2 -k /tmp/krb5keytab.199qgb -e "aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96" host/host1.example.com@EXAMPLE.COM /usr/lib/krb5/ksetpw: Invalid argument Unknown or unsupported enctype aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96
Updated by Electric Monk 9 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 298aa1575e761a7d02bc7c65fa603ffd0266fcb7 Author: Chris Fraire <firstname.lastname@example.org> Date: 2021-08-10T17:08:28.000Z 13935 ksetpw passes integers to %s format specifier 13936 ksetpw typo to strtok_r() prevents space delimited -e enctype_list 13942 ksetpw salt may be used uninitialized Reviewed by: Toomas Soome <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>