[Samba] Trying to add machine accounts on the fly,
DSanchez
myjunkacct at gmail.com
Thu Oct 6 01:34:17 GMT 2005
I have Fedora Core 4 installed and have configured the smb.conf file as a
PDC.
the problem i have is that i will be adding 250 win XP sp2 machines to this
PDC
and I need to be able to create the machine account on the fly.
However no matter what i do i can't get my Win XP machines to connect
without
manuelly adding the machine accounts which will not work for me.
When i try and connect from the XP machines i get the following error.
The following error occured attempting to join the domain "etnet"
the user name could not be found
Also i did do "smbpasswd -a root and added a password.
Also, when i check out /var/log/samba i see a log file with the ip address
of my test XP box. Also there is a log file with the machine name of the
same box. When i cat both files they are empty.
here is the smb.conf
Note that i have the add user script, group 501 is a group i created named
"machines"
# Global parameters
[global]
workgroup = ETNET
server string = ETNET PDC
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*success fully*
username map = /etc/samba/smbusers
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
add user script = /usr/sbin/useradd -d /dev/null -g 501 -s /bin/false -M %u
domain logons = Yes
os level = 33
preferred master = Yes
domain master = Yes
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
hosts allow = 10.78., 127.
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[netlogon]
comment = Network Logon Service
path = /home/netlogon
guest ok = Yes
share modes = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
More information about the samba
mailing list