We are using Samba in our application and after upgrading to samba version 4.21.2 from 4.17.7 we have observed that kinit command is failing. Command : net ads kerberos kinit -d 10 -U "Username" Error : kerberos_kinit_password_ext: Missing ccache for "account" and config [(null)] failed to kinit password: NT code 0x000055da After analysing the code we found out that commit id d49de77 - s3:libads: let kerberos_kinit_password_ext() require an explicit krb5 ccache had introduced the changes to use an explicit ccache but if we see the code in file source3/utils/net_ads.c which is calling kerberos_kinit_password_ext() is still sending NULL which is resulting into this failure. Code: ret = kerberos_kinit_password_ext(principal, password, 0, NULL, NULL, NULL, true, true, 2592000, /* one month */ NULL, NULL, NULL, &status); Please have a look into this issue.
This bug was referenced in samba master: 18d0574a0fe4b5fd468f949cfaa507ab4519c9e6 8a97afdae788e8d10a51035f8b287dc00293f90d
Created attachment 18677 [details] patch from master for v4-22-test
Created attachment 18678 [details] patch from master for v4-21-test
Jule, please apply the patches to the corresponding branches. Thanks!
Pushed to autobuild-v4-{22,21}-test.
This bug was referenced in samba v4-21-test: d9fc8dc0d4b775e9b17ef8c5b7aee504ca3fafe7 9ca7d637aae14c49fa82f3a7becf9b2c1c5f5bf8
This bug was referenced in samba v4-22-test: b17dec310680ddc5f8d704e6cf3d4c6194f86acc 25f5debf01e8163d06c0039fb6a84b3ef0c4ded3
Closing out bug report. Thanks!
This bug was referenced in samba v4-22-stable (Release samba-4.22.4): b17dec310680ddc5f8d704e6cf3d4c6194f86acc 25f5debf01e8163d06c0039fb6a84b3ef0c4ded3
This bug was referenced in samba v4-21-stable (Release samba-4.21.8): d9fc8dc0d4b775e9b17ef8c5b7aee504ca3fafe7 9ca7d637aae14c49fa82f3a7becf9b2c1c5f5bf8