Hi sphar,
Thank you for posting in the Microsoft Community Forums.
The DistinguishedName attribute is authenticated with Kerberos:
Each user object in Active Directory has a unique DistinguishedName (DN), which defines the object's location in the directory structure.
Kerberos authentication relies on ServicePrincipalNames (SPNs) to identify service instances.SPNs are typically associated with the DN of an account.
If the DN contains special characters (e.g., commas, spaces, etc.), this may interfere with the Kerberos authentication process because the registration and parsing of the SPNs may not be able to handle these characters correctly.
Question about CN=Smith, John:
In LDAP and Kerberos, commas (,) in DNs are typically used to separate different components (e.g., organizational units, containers, etc.). If the DN contains a comma, and that comma is not used to separate components, it may need to be escaped (e.g., by using ,).
In your example, the comma in CN=Smith, John is escaped. However, this may cause problems when parsing DNs in some cases (e.g., Kerberos authentication).
The KDC_ERR_S_PRINCIPAL_UNKNOWN error indicates that the Kerberos Key Distribution Center (KDC) was unable to find the account associated with the requested Service Principal Name (SPN). This could be because the SPN is not properly registered, or the DN is not properly resolved.
Solution:
Check and correct the DN: Ensure that all Active Directory accounts have the correct DN and do not contain any special characters that could cause parsing issues. If special characters are used, make sure they are properly escaped.
Re-register SPNs: For accounts that are experiencing problems, try manually deleting and re-registering the SPNs. this can be accomplished by deleting the existing SPNs using the setspn -D command and then re-registering them using the setspn -A command.
Check firewall and network settings: Ensure that all necessary ports (e.g. 88 for Kerberos, 445 for SMB) are correctly open on the VPN connection and that there are no firewall rules blocking communication on these ports.
Best regards
Neuvi