net ads create keytab command crashing if you do:
$ net ads keytab create -U <username>
#0 krb5_free_principal (context=<optimized out>, val=0x7f0fcc7359b7 <__add_to_environ+983>) at kfree.c:394
#1 0x00007f0fcda0e069 in krb5_free_keytab_entry_contents (context=<optimized out>, entry=entry@entry=0x7fff4a7fca40) at ktfr_entry.c:37
#2 0x00007f0fd0482365 in smb_krb5_kt_free_entry (context=<optimized out>, kt_entry=kt_entry@entry=0x7fff4a7fca40)
#3 0x00007f0fd2a6c40d in ads_keytab_create_default (ads=<optimized out>) at ../source3/libads/kerberos_keytab.c:747
#4 0x00007f0fd443bbf0 in net_ads_keytab_create (c=0x7f0fd4c97190, argc=<optimized out>, argv=<optimized out>)
#5 0x00007f0fd4437c89 in net_ads_keytab (c=0x7f0fd4c97190, argc=1, argv=0x7f0fd4c99918) at ../source3/utils/net_ads.c:2597
#6 0x00007f0fd443e9a4 in net_ads (c=<optimized out>, argc=<optimized out>, argv=<optimized out>) at ../source3/utils/net_ads.c:3350
#7 0x00007f0fd441faea in main (argc=6, argv=0x7fff4a7fda68) at ../source3/utils/net.c:960
Patch will follow
Created attachment 11289 [details]
patch for 4.2
Created attachment 11290 [details]
patch for 4.1
Karolin, please add the patches to the relevant branches. Thanks!
As this wasn't assigned to Karolin at the time, sadly these seem to have been missed, and the fixes including 38beef2ff63664d7d5805f1032bb9f69d0b965d7 were not picked into 4.2 or 4.1 before they closed to non-security fixes.
However as the patches landed in master this is fixed in Samba 4.3.