Public bug reported: **Affected environment**
- Ubuntu 26.04.1 LTS (Resolute) - Architecture: amd64 - Samba package: 2:4.23.6+dfsg-1ubuntu2.2 - Samba role: Active Directory domain member **Description** The `testparm` configuration validator incorrectly rejects multiple SPN specifiers in the `sync machine password to keytab` parameter, despite this syntax being explicitly supported by the locally installed smb.conf manual and the underlying Samba keytab synchronisation implementation. **Steps to reproduce** Run: ```bash sudo testparm -s --option='kerberos method=secrets only' --option='sync machine password to keytab=/etc/krb5.keytab:spn_prefixes=host:account_name:sync_spns:sync_kvno:machine_password' --parameter-name='sync machine password to keytab' ``` **Actual result** ``` ERROR: unknown option 'sync_spns' in line: /etc/krb5.keytab:spn_prefixes=host:account_name:sync_spns:sync_kvno:machine_password ``` **Expected result** The configuration should pass validation without errors, consistent with the documented syntax. **Additional testing** The same configuration was successfully tested using `net ads keytab create` with a separate temporary keytab on an existing Active Directory domain member. The generated keytab contained the expected machine account and service principals. Kerberos machine account authentication using `kinit` and service ticket decryption using `kvno -k` both succeeded using AES-256 encryption. This indicates that the underlying keytab synchronisation functionality works and that the problem is confined to configuration validation. **Current workaround** A single, double-quoted `spns=` specifier containing an explicit comma- separated list of required principals passes validation and successfully generates a functional keytab. However, this workaround requires hardcoding the principals rather than dynamically synchronising registered SPNs from Active Directory. **Upstream fix** A relevant upstream fix appears to be available: https://github.com/samba- team/samba/commit/67bdf268c978400ef016d34d70c21a85dbbfa9ea Upstream development mailing list reference: https://lists.samba.org/archive/samba-cvs/2025-December/124049.html **Request** Please consider backporting the upstream configuration validation fix to the Samba package in Ubuntu 26.04 LTS. ** Affects: samba (Ubuntu) Importance: Undecided Status: New ** Tags: kerberos keytab resolute samba testparm -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2178285 Title: Samba 4.23.6: testparm incorrectly rejects multiple SPN specifiers in keytab synchronisation configuration To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2178285/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
