Skip to content

Issue with domain join if domain has multiple dots #3

Description

@bwuch

I was working on setting this up in a lab with a domain name similar to lab.example.com. The domain join is failing when attempting to calculate the workgroup name. I believe the error is on this line

Line 487: sed -i "2 s/.workgroup./workgroup = ${domainrealm%.*}/" /etc/samba/smb.conf

The replacement results in an attempt to set the workgroup to LAB.EXAMPLE instead of just lab.

Instead of changing the replacement logic, I would suggest prompting for the NetBIOS domain name as a separate input in the domainProperties function. I've seen domains where the DNS Domain Name would be something like current-company-name.com and the NetBIOS/Pre-Win2k domain name was OLD-COMPANY. Doesn't apply in my lab, but for sure something I've seen a handful of times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions