Hello List, I am using Samba as PDC for some time now and I want do make the process of joining the domain somewhat more elegant ;) I use partimage to deploy images of my Windows XP-installation to the computers in my lab. In order to automate the process of joining these computers to the domain, I use some small perl-scripts. 1. After installing new software, etc. I have to create a new image. I have written a perlscript, which will be executed the next time, the computer starts (I've put it in the registry ->RunOnce...) 2. This script sets the hostname of the fresh installed computer via it's IP-adress. Then the script Puts another script in RunOnce, which will execute netdom.exe to join the domain after next reboot. (Changing the hostname requires a reboot ) 3. After the 2nd reboot each machine has got an unique hostname and has joined the domain. OK, this procedure may not be very elegant, but it works for me. Here are my questions: Is it possible to deliver the hostname to the WinXP-workstations via DHCP? (natively, without help of external applications) What happens to a computer which has joined my domain, when I change the hostname in my DHCP-Server? Will it remain in the domain? If this is possible, I can throw away my perlscripts ;) Greetz, Andre -- BOFH-excuse of the day: Zombie processes detected, machine is haunted.
Bruno Gimenes Pereti
2006-Feb-24 15:47 UTC
[Samba] need advise to find what is the problem
Hi all, I'm trying to substitute my samba server machine for a new one. The users here are very limited, so it must be completely transparent. My PDC is a very old RedHat 7.1 with samba 3.0.9, openldap-client 2.0.27, and cups 1.1.14. And the LDAP server is running on another computer with openldap 2.2.23. This is the option I used to compile it: # ./configure --with-smbmount --with-pam --with-ldapsam --with-ldap --with-quota --with-utmp --with-acl-support --enable-cups I installed and configure a new debian machine with samba 3.0.21a, cups 1.1.23 and openldap server 2.2.23 (the replication with the m?ster is working). Options used to compile: # ./configure --with-smbmount --with-quotas --with-acl-support This new server I configured as BDC. Copied the smb.conf from de PDC and changed: local master = no os level = 33 domain m?ster = no wins support =no wins server = <ip from PDC> imported the sid with "net rpc getsid" joined the domain with "net rpc join -U Administrator" I copied the netlogon from the PDC to the BDC. Ok, when I start it, it runs ok for a while (from a cople of hours to a couple of days) until the users start complaning that they can't print, the police is not loaded and the logon script don't run. This what I noted because when the problem start I stop samba in the BDC and the problem is gone. One think I notice in the PDC is smbd listening on localhost random udp ports like this: # netstat -atupn [...] tcp 0 0 192.168.0.2:445 192.168.0.61:1025 ESTABLISHED 22400/smbd udp 0 0 127.0.0.1:57989 0.0.0.0:* 22915/smbd udp 0 0 127.0.0.1:57735 0.0.0.0:* 22280/smbd udp 0 0 127.0.0.1:57864 0.0.0.0:* 22546/smbd udp 0 0 192.168.0.2:137 0.0.0.0:* 14222/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 14222/nmbd udp 0 0 192.168.0.2:138 0.0.0.0:* 14222/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 14222/nmbd udp 0 0 127.0.0.1:57750 0.0.0.0:* 22301/smbd udp 0 0 127.0.0.1:57752 0.0.0.0:* 22308/smbd udp 0 0 127.0.0.1:57885 0.0.0.0:* 22622/smbd [...] What must I do to find what is the problem and how to solve it? Any clue? If any body want to help but need more information, please tell me what. Please any help will be very appreciated. Thanks. Bruno Gimenes Pereti.