How to solve samba join active directory - Our netbios name can be at most 15 chars long
HTML-код
- Опубликовано: 11 сен 2024
- when trying to join samba active directory using this command:
net ads join -U Administrator
its getting this error:
Our netbios name can be at most 15 chars long, "IP-172-31-25-163" is 16 chars long.
Invalid configuration. Exiting....
Failed to join domain: The format of the specified computer name is invalid.
---
That error is caused by your hostname in ubuntu is too long (in this case the hostname is IP-172-31-25-163)
Windows only accepted netbios name (computer name/hostname) max 15 digit characters. So your ubuntu must follow windows rule.
Resolution:
change your ubuntu hostname with smaller characters (no more than 15 characters). Example: 72-31-25-163