AD Domain join fails with "Failed to set servicePrincipalNames" (SAMBA)

This document (3842088) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Desktop 10
 

Situation

You are trying to join an AD Domain with Samba using the proper command. But it fails similar to this:

nil:# net ads join -U USERNAME
USERNAME's password:
Using short domain name -- MIRACLE-WORKERS
Failed to set servicePrincipalNames (Type or value exists). Please ensure that
the DNS domain of this server matches the AD domain,
Or rejoin with using Domain Admin credentials.
nil:#
 

Resolution

This behaviour can have two reasons:

Option 1: there is a setting for netbios name that differs from the hostname

e.g. the hostname of the machine would be "rumburak" and the netbios name in smb.conf would be set to"grumpfelpumpfel"

Correction: unset the netbios name or set it to the hostname

Option 2: the FQHN of the machine resolves different to the IP

.e.g. the hostname of"rumburak.miracle-workers.com" resolves to 10.10.0.1, the reverse lookup of 10.10.0.1 resolves to "bielefeld.deutschland.de"

Correction: correct the Name Server entries

Alternative: use /etc/hosts to ensure correct Name resolution and reverse lookup. In the above example the line in /etc/hosts would read

10.10.0.1 rumburak.miracle-workers.com rumburak
 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3842088
  • Creation Date: 24-Oct-2007
  • Modified Date:11-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center