trouble adding an XP machine to a samba domain

Hi all,

I have a bit of a problem.
I'm trying to add 4 new pc's to our existing domain here at work. The 4 new pc's are running WinXP with SP2 and the domain is running on Ubuntu 6.06.

I have tried to add the pc's by changing the domain name under computer properties in windows and then as it wouldn't all the addition to the network i did the following:

I added the machine names to a trusted group as with all the other pc's --
# useradd -g users -d /var/lib/nobody -s /bin/false one-comp-02$

I then added this to the smbpassword db as such--
# smbpasswd -a -m one-comp-02

i then added a 'root' account needs that has the permissions to join the computers to the domain using
# smbpasswd -a root

I stopped and restarted samba
# /etc/init.d/smb stop
# /etc/init.d/smb start

Ok so when i go to add the pc to the domain i still get errors such as 'The network path was not found' and 'Login failure: unknown user name or bad password'

this is a copy of the config file:
      name resolve order = wins bcast hosts
      idmap gid = 15000-20000
      passwd chat = *password* %n\n *password* %n\n *success* .
      obey pam restrictions = yes
      passwd program = /usr/bin/passwd %u
      dns proxy = no
      printing = cups
      idmap uid = 15000-20000
      logon script = scripts/logon.bat
      workgroup = ONENERGY
      printcap name = cups
      security = user
      add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
      delete user script = /usr/sbin/userdel -r %u
      max log size = 1000
      log file = /var/log/samba/log.%m
      load printers = yes
      add group script = /usr/sbin/groupadd %g
      socket options = TCP_NODELAY
      delete group script = /usr/sbin/groupdel %g
      add user to group script = /usr/sbin/usermod -G %g %u
      logon drive = H:
      username map = /etc/samba/smbusers
      domain master = auto
      interfaces = br0
      encrypt passwords = true
      passdb backend = tdbsam
      logon home = \\%N\%U
      wins support = yes
      server string = %h server (Samba, DCServer)
      unix password sync = yes
      logon path = \\onenergy\profile\%U
      add user script = /usr/sbin/useradd -m %u
      syslog = 0
      preferred master = yes
      panic action = /usr/share/samba/panic-action %d
      bind interfaces only = true
      domain logons = yes

   comment = Network Logon Service
   path = /home/samba/netlogon
  admin users = danielg, root, Administrator
  valid users = %U
  read only = no

   comment = Users profiles
   path = /home/samba/profiles
  valid users = %U
create mode = 0600
  directory mode = 0700
  writable = yes
   guest ok = no
   browseable = no

   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

  path = /home/shares/allusers
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  writable = yes

Any suggestions or help would be greatly appreciated

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Did you receive the "welcome to domain" message?
Before you do, you have to input root's password under windows.
Everything else seems to be right.
Are you sure you're not adding the computer to a workgroup?
Because when adding to a domain, you wouldn't get those error messages on failure...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sleepless6Author Commented:
Hi there,

yeah when i try to put in user: root and password to allpw a machine to connect to the network, it gives me those two error messages.
I'm definately trying to add to a domain, not a workgroup so yeah i'm at a loss.

sleepless6Author Commented:
funny enough i found that we had been hit by a virus which stopped samba from recognising the new machines....

all fixed now.

thanx for the help though
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.