Samba 2.2 alpha 1 CVS unable to log into domain from W2K client
Ulrich Stärk
Staerk-Berlin at t-online.de
Sun Nov 26 20:03:53 GMT 2000
Thanks. But as you may have seen I gave an excerpt of my smbpasswd file where the machine name is correctly added. This is done automatically by samba I think.
Thanks anyway but this will not solve the problem.
Uli
P.S.: I tried setting the password for this machine to NO PASSWORD, but then it tells me that the domain is not avaiable.
----- Original Message -----
From: F.W.J.Wiegerinck
To: Ulrich Stärk
Cc: samba-ntdom at us5.samba.org
Sent: Sunday, November 26, 2000 9:05 PM
Subject: Re: Samba 2.2 alpha 1 CVS unable to log into domain from W2K client
I think you need a entry in the smbpasswd for your machine.
Only adding an account to your linux-userdatabase is not enough, also add one to your samba-userdatabase.
You can use a script like this:
#!/bin/sh
# path: /usr/local/samba/bin/addmachineaccount
accname=$1'$'
/usr/sbin/useradd -g trust -c W2KMachine -d /dev/null -s /bin/false $accname
/usr/local/samba/bin/smbpasswd -m $accname -n
(I'm not sure if it will handle the $-char correct)
And in smb.conf:
add user script = /usr/local/samba/bin/addmachineaccount %m
Good Luck!
Frank Wiegerinck
----- Original Message -----
From: Ulrich Stärk
To: samba-ntdom at samba.org
Sent: Sunday, November 26, 2000 6:06 PM
Subject: Samba 2.2 alpha 1 CVS unable to log into domain from W2K client
I just (Nov. 26 6pm MET) donwloaded the samba 2.2alpha1 CVS source, compiled and installed it. This is my smb.conf:
[global]
netbios name = SERVER
security = user
status = yes
workgroup = HALLO
encrypt passwords = yes
domain logons = yes
domain admin users = root
share modes = no
os level = 65
add user script = /usr/sbin/useradd -g trust -c W2KMachine -d /dev/null -s /bin/false %m$
I did not add share or anything else for I first wanted to make sure the PDC is working correctly. My OS is SuSE Linux 7.0 so i had to use /usr/sbin/useradd. I also added user root via smbpasswd -a root and another non-root user to the smbpasswd file. When I now want to connect to the domain from any of my six Win2K machines it prompts me for a username and password to do so. I enter root and my root pasword and after a while it tells me "Welcome to the domain HALLO." and asks me to reboot my machine. I do as asked and reboot my machine. When I reach the logon screen I try to logon as root with my root pasword I set and choose the domain HALLO from the dropdown list. I then tells me "The system could not connect to the specified domain because the machine account is missing or the password for this machine account is wrong.". One of my client's name is "embryo". This is what was generated in the /etc/passwd, /etc/shadow and the smbpasswd files:
/etc/passwd:
embryo$:x:601:102:W2KMachine:/dev/null:/bin/false
/etc/shadow:
embryo$:!:11287:0:99999:7:0::
smbpasswd:
embryo$:601:BC855AD328D492734FBF85F44FAB3902:A9D7D2C05281B7CFD265EC6EB91815F7:[W]:LCT-3A213EF0:
I would be glad if someone could help me, for I tried about three days to find a solution to this problem. Creating user and smb user account manually did not help either.
Thanks in advance
Uli Stärk
P.S.: I also tried this smb.conf file which is a modification of my samba 2.07 smb.conf file but it didn't work either.
[global]
netbios name = SERVER
security = user
status = yes
workgroup = HALLO
encrypt passwords = yes
domain logons = yes
domain admin users = root
share modes = no
os level = 65
add user script = /usr/sbin/useradd -g trust -c W2KMachine -d /dev/null -s /bin/false %m$
local master = yes
preferred master = yes
domain master = yes
wins support = yes
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the samba-ntdom
mailing list