PDA

View Full Version : [ubuntu] 9.04 Samba as PDC. Join Error: Trust Relationship Failed


gaxicus
May 8th, 2009, 09:02 PM
Ubuntu Server 9.04 Samba configured as PDC according to Ubuntu Server Guide

After following the procedure in the guide I couldnt join a machine to the domain.

It would return a "User name not found" error. After checking that the user was indeed a member of admin and the sysadmin group that had been mapped to the smb group Administrators, I started looking at the machine accounts as the problem.

I tried parsing the add machine script against it and it turned out that the -n switch was unrecognized. Thinking it was a typo I changed it to -N and gave it a try.

The machine joined to the domain but encounterd a problem at the end of the process where you add the user account and assign to local group (usually administrators).

Error:
________
The user could not be added to the domain because the following error has occured:

The trust relationship between the workstation and the primary domain failed.
________

From smb.conf-

add machine script = sudo /usr/sbin/useradd -n -g machines -c Machine -d /var/lib/samba -s /bin/false %u


I changed the -n to -N and the join worked but the above error happens.

Help on this would be greatly appreciated.

trinikrono
October 11th, 2009, 02:20 PM
Hey
Did you figure this out
Heres my solution to it.
The capital N works fine but i was still not getting trough so i did a
smbpasswd -a username
And suddenly i could join the domain
Let me know if this works for you.