Fernando Maidana
2002-May-04 22:34 UTC
[Samba] Samba as PDC and Win XP Pro Machine Accounts
Hi there! I'm having problems to join a Machine Acount to a Samba PDC using Samba 2.2.3a Even if I apply the registry Patch XP reports the following error: ----------------- Is possible that the Domain Name "FAMILIA" was a NetBios name. If is that the case, make sure that the Domain Name is correctly registred with WINS. If you're totaly sure that it isn't a NetBios name, the following information will help you to solve your DNS configuration problems. The following error was occured making a request to DNS for SRV used to find the Domain Controller in the FAMILIA Domain: The error was: (error code 0x000005B4 ERROR_TIMEOUT) The request was to the SRV for _ldap._tcp.dc._msdcs.FAMILIA This machine is configured to use DNS servers with the following IP addresses: 192.168.1.1 ------------------ I have been added the machine accounts and user acounts to smbpasswd and /etc/passwd. I can see the samba server in XP and all the shares work fine, but I can't join the machine to Samba server! I also try to set Samba as WINS server, to resolve the NetBios over TCP/IP and configuring the XP client DNS server to 192.168.1.1 (Samba PDC) but both things don't work. Here is my smb.conf file: ---------------- ;basic server settings workgroup = FAMILIA netbios name = LINUX server string = Samba PDC running %v socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 kernel oplocks = no ;PDC and master browser settings os level = 64 preferred master = yes local master = yes domain master = yes ;security and logging settings security = user encrypt passwords = yes wins support = yes log file = /var/log/samba/log.%m log level = 2 max log size = 50 hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0 ;user profiles and home directory logon home = \\%L\%U\ logon drive = H: logon path = \\%L\profiles\%U logon script = netlogon.bat ;==== shares ===[homes] comment = Home Directories browseable = no writeable = yes [profiles] path = /home/samba/profiles writeable = yes browseable = no create mask = 0600 directory mask = 0700 [netlogon] comment = Network Logon Service path = /home/netlogon read only = yes browseable = no write list = root ------------- Thank you all! Regards Fernando
Fernando Maidana wrote:>Hi there! >I'm having problems to join a Machine Acount to a Samba PDC using Samba >2.2.3a >Even if I apply the registry Patch XP reports the following error: > >----------------- >Is possible that the Domain Name "FAMILIA" was a NetBios name. >If is that the case, make sure that the Domain Name is correctly >registred with WINS. > >If you're totaly sure that it isn't a NetBios name, the following >information will help you to solve your DNS configuration problems. >The following error was occured making a request to DNS for SRV used to >find the Domain Controller in the FAMILIA Domain: > >The error was: (error code 0x000005B4 ERROR_TIMEOUT) > > >try configuring the clients to use the WINS server 192.168.1.1 as well you can do this by dhcp like this option domain-name-servers 192.168.1.1; option subnet-mask 255.255.255.0; default-lease-time 6000; max-lease-time 72000; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.2 192.168.1.254; option broadcast-address 192.168.1.255; option routers 192.168.1.1; option netbios-name-servers 192.168.1.1; }
Fernando Maidana wrote:> Hi Brad! > Thanks for your help!! > I try to configure de clientes to use the WINS server 192.168.1.1 in > the TCP/IP properties (Networking in the Control Panel) and the same > error occurs. But I think that your method is pretty different.... > And I don't underestand it pretty well... > The Machine IP (Windows XP Client) is 192.168.1.2 and is not using > DHCP, so the ip is Static.not really - if you make all the settings manually then we should have the same result.> > > How can I do to configure the DHCP as you suggest?see below> > option domain-name-servers 192.168.1.1; > option subnet-mask 255.255.255.0; > default-lease-time 6000; > max-lease-time 72000; > > subnet 192.168.1.0 netmask 255.255.255.0 { > range 192.168.1.2 192.168.1.254; > option broadcast-address 192.168.1.255; > option routers 192.168.1.1; > option netbios-name-servers 192.168.1.1; > } > I don't underestand the previous statments... They are from the > smb.conf??? I think the answer is not.... But I'm newbie to Samba, > yesterday was my first day using it.... Is not bad for the first time > don't u think? :)those statements are from dhcpd.conf - a separate program. I didn't realize you were so new to things - you might have other simpler problems. See below for some suggestions> > Another question, can I use Samba as DHCP server??? >Samba won't do DHCP by itself but's trivial to install a the dhcpd from the ISC for most distributions. if you're using debian just type 'apt-get install dhcpd' and modify the dhcpd.conf to look like the conf file I sent you. You don't have to do this though - it should work fine with manual configuration.> Well, thanks for your help again, and sorry to send you a personal > e-mail, but I can't find the way to post a reply in the mailing list!!! :( >just do "reply all" or type samba@samba.org in the cc line> Fernando > > Ps. Sorry about my english, is pretty bad.... Is not my native language.I also speak spanish, but I think your english is better than my spanish Are you "sure" that the registry patch worked? It says that it does but I had to do it by hand using regedit before. Looking more carefully at your config file i think you need to set domain logons=yes brad> Fernando Maidana wrote: > > >/Hi there! > />/I'm having problems to join a Machine Acount to a Samba PDC using Samba > />/2.2.3a > />/Even if I apply the registry Patch XP reports the following error: > />/ > />/----------------- > />/Is possible that the Domain Name "FAMILIA" was a NetBios name. > />/If is that the case, make sure that the Domain Name is correctly > />/registred with WINS. > />/ > />/If you're totaly sure that it isn't a NetBios name, the following > />/information will help you to solve your DNS configuration problems. > />/The following error was occured making a request to DNS for SRV used to > />/find the Domain Controller in the FAMILIA Domain: > />/ > />/The error was: (error code 0x000005B4 ERROR_TIMEOUT) > />/ > />/ > />/ > /try configuring the clients to use the WINS server > 192.168.1.1 as well > > you can do this by dhcp like this > > option domain-name-servers 192.168.1.1; > option subnet-mask 255.255.255.0; > default-lease-time 6000; > max-lease-time 72000; > > subnet 192.168.1.0 netmask 255.255.255.0 { > range 192.168.1.2 192.168.1.254; > option broadcast-address 192.168.1.255; > option routers 192.168.1.1; > option netbios-name-servers 192.168.1.1; > } > >