LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-12-2003, 04:43 PM   #1
goochster
LQ Newbie
 
Registered: Sep 2003
Posts: 8

Rep: Reputation: 0
Samba 3.01rc2 acting as a PDC


Hello all I am trying to join a Windows 2000 machine to a Linux Redhat 8.0 server Using Samba 3.01rc2 as a Domain. I created a small network with them two computers on the network. Currently I used this tutuorial
www-1.ibm.com/servers/esdd/t...amba/index.html

Which I have done to a tea. I have manually created the user accounts and machine accounts and passwords on the LInux box. When I switch over to my 2k box...I can ping the Linux box by netbois name. Problem is when I try to Join the Domain. It says Domain does not exist or could not be contacted. and also says this condition may be caused by a DNS Lookup problem. Wierd Wierd. So here is a more wierder situation. If I type the workgroup name down on my W2k box and login with same credentials as I created on my Linux Box. When I browse Network Neighborhood I can see the Linux Box and when I open it up...I can see my home directory I created. Then I can even go into the home directory and add files to it. Just whenever I try to join the Domain keeps giving me the same error message. Here is my smb.conf file.

#/etc/samba/smb.conf
#samba configuration file
#last updated: 12/12/03 by BSS

[global]
;basic server settings
workgroup = testing
wins support = yes
netbios name = dapdc
server string = Samba PDC running %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192

;sync UNIX passwords
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: *all* authentication*tokens*updated*successfully*

;PDC and master browser settings
os level = 64
preferred master = yes
local master = yes
domain master = yes

;secrity and logging settings
security = user
encrypt passwords = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
hosts allow = 127.0.0.1 192.168.111.0/255.255.255.0

;user profiles and home directory
logon home = \\%L\%U\
logon drive = M:
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 = bscarlett

Here is my log file as well

03/11/04 09:30:59, 2] nmbd/nmbd_browsesync.c:announce_local_master_browser_to_domain_master_browser(109)
announce_local_master_browser_to_domain_master_browser:
We are both a domain and a local master browser for workgroup TESTING. Do not announce to ourselves.
[2003/11/04 09:30:59, 2] nmbd/nmbd_browsesync.c:sync_with_dmb(151)
sync_with_dmb:
Initiating sync with domain master browser DAPDC<20> at IP 192.168.111.11 for workgroup TESTING
[2003/11/04 09:46:05, 2] nmbd/nmbd_browsesync.c:announce_local_master_browser_to_domain_master_browser(109)
announce_local_master_browser_to_domain_master_browser:
We are both a domain and a local master browser for workgroup TESTING. Do not announce to ourselves.
[2003/11/04 09:46:05, 2] nmbd/nmbd_browsesync.c:sync_with_dmb(151)
sync_with_dmb:
Initiating sync with domain master browser DAPDC<20> at IP 192.168.111.11 for workgroup TESTING
[2003/11/04 10:01:11, 2] nmbd/nmbd_browsesync.c:announce_local_master_browser_to_domain_master_browser(109)
announce_local_master_browser_to_domain_master_browser:
We are both a domain and a local master browser for workgroup TESTING. Do not announce to ourselves.
[2003/11/04 10:01:11, 2] nmbd/nmbd_browsesync.c:sync_with_dmb(151)
sync_with_dmb:
Initiating sync with domain master browser DAPDC<20> at IP 192.168.111.11 for workgroup TESTING
[2003/11/04 10:15:12, 2] smbd/server.c:exit_server(558)
Closing connections
[2003/11/04 10:15:12, 0] nmbd/asyncdns.c:start_async_dns(150)
started asyncdns process 29651
[2003/11/04 10:15:17, 0] nmbd/nmbd.c:terminate(54)
Got SIGTERM: going down...
[2003/11/04 10:15:17, 0] libsmb/nmblib.c:send_udp(758)
Packet send failed to 127.0.0.1(137) ERRNO=Invalid argument
[2003/11/04 10:15:17, 0] nmbd/nmbd_packets.c:send_netbios_packet(163)
send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2003/11/04 10:15:17, 0] nmbd/nmbd_namerelease.c:wins_release_name(166)
release_name: Failed to send packet trying to release name DAPDC<00> IP 192.168.111.11
[2003/11/04 10:15:17, 0] libsmb/nmblib.c:send_udp(758)
Packet send failed to 127.0.0.1(137) ERRNO=Invalid argument
[2003/11/04 10:15:17, 0] nmbd/nmbd_packets.c:send_netbios_packet(163)
send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2003/11/04 10:15:17, 0] nmbd/nmbd_namerelease.c:wins_release_name(166)
release_name: Failed to send packet trying to release name DAPDC<03> IP 192.168.111.11
[2003/11/04 10:15:17, 0] libsmb/nmblib.c:send_udp(758)
Packet send failed to 127.0.0.1(137) ERRNO=Invalid argument
[2003/11/04 10:15:17, 0] nmbd/nmbd_packets.c:send_netbios_packet(163)
send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2003/11/04 10:15:17, 0] nmbd/nmbd_namerelease.c:wins_release_name(166)
release_name: Failed to send packet trying to release name DAPDC<20> IP 192.168.111.11
[2003/11/04 10:15:17, 0] libsmb/nmblib.c:send_udp(758)
Packet send failed to 127.0.0.1(137) ERRNO=Invalid argument
[2003/11/04 10:15:17, 0] nmbd/nmbd_packets.c:send_netbios_packet(163)
send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2003/11/04 10:15:17, 0] nmbd/nmbd_namerelease.c:wins_release_name(166)
release_name: Failed to send packet trying to release name TESTING<00> IP 192.168.111.11
[2003/11/04 10:15:17, 0] libsmb/nmblib.c:send_udp(758)
Packet send failed to 127.0.0.1(137) ERRNO=Invalid argument
[2003/11/04 10:15:17, 0] nmbd/nmbd_packets.c:send_netbios_packet(163)
send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2003/11/04 10:15:17, 0] nmbd/nmbd_namerelease.c:wins_release_name(166)
release_name: Failed to send packet trying to release name TESTING<1b> IP 192.168.111.11
[2003/11/04 10:15:17, 0] libsmb/nmblib.c:send_udp(758)
Packet send failed to 127.0.0.1(137) ERRNO=Invalid argument
[2003/11/04 10:15:17, 0] nmbd/nmbd_packets.c:send_netbios_packet(163)
send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2003/11/04 10:15:17, 0] nmbd/nmbd_namerelease.c:wins_release_name(166)
release_name: Failed to send packet trying to release name TESTING<1c> IP 192.168.111.11
[2003/11/04 10:15:17, 0] libsmb/nmblib.c:send_udp(758)
Packet send failed to 127.0.0.1(137) ERRNO=Invalid argument
[2003/11/04 10:15:17, 0] nmbd/nmbd_packets.c:send_netbios_packet(163)
send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2003/11/04 10:15:17, 0] nmbd/nmbd_namerelease.c:wins_release_name(166)
release_name: Failed to send packet trying to release name TESTING<1e> IP 192.168.111.11
[2003/11/04 10:15:17, 0] libsmb/nmblib.c:send_udp(758)
Packet send failed to 192.168.111.255(138) ERRNO=Invalid argument
[2003/11/04 10:15:17, 0] libsmb/nmblib.c:send_udp(758)
Packet send failed to 192.168.111.255(138) ERRNO=Invalid argument
[2003/11/04 10:16:34, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.111.11 bcast=192.168.111.255 nmask=255.255.255.0
[2003/11/04 10:16:35, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
Registered MSG_REQ_POOL_USAGE
[2003/11/04 10:16:35, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2003/11/04 10:16:35, 2] smbd/server.cpen_sockets_smbd(318)
waiting for a connection
[2003/12/12 09:43:27, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.111.11 bcast=192.168.111.255 nmask=255.255.255.0
[2003/12/12 09:43:27, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
Registered MSG_REQ_POOL_USAGE
[2003/12/12 09:43:27, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2003/12/12 09:43:27, 2] smbd/server.cpen_sockets_smbd(318)
waiting for a connection
[2003/12/12 10:48:31, 1] smbd/server.cpen_sockets_smbd(342)
Reloading services after SIGHUP


If anyone could please shoot me some help on this I would appreciate it...Do I need to put a DNS server on my small network i created as well with entries pointing to the PDC?? Or will just a W2k box and my linux box work??
 
Old 12-13-2003, 08:55 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What is the name of the domain you are connecting to from Win2k?
 
Old 12-15-2003, 08:32 AM   #3
goochster
LQ Newbie
 
Registered: Sep 2003
Posts: 8

Original Poster
Rep: Reputation: 0
testing is the domain name I am trying to use in w2k.
 
Old 12-15-2003, 01:34 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Ah - I just noticed, you don't have:
domain logons = Yes
 
Old 12-15-2003, 01:52 PM   #5
goochster
LQ Newbie
 
Registered: Sep 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Yep that worked...had some issues afterwards about user name not found but i didn't have my root in my smbpasswd file...Now im trying to change my password in W2k..cntrl-alt-del is suppose to change my windows password as well as my unix and samba password since I have the script and password sync option in my smb.conf...but its giving me an error that I dont' have permission to change my password....Can someone explain why please.
 
Old 12-15-2003, 02:01 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Make sure that your password sync line is correct. Try it with that commented out if you want to test.
 
Old 12-15-2003, 03:19 PM   #7
goochster
LQ Newbie
 
Registered: Sep 2003
Posts: 8

Original Poster
Rep: Reputation: 0
you are da MAN!! that worked fine I commented out the line sync and was able to change all passwords using the w2k...Got one last question for you..do you think its possible to run a DHCP server on my PDC as well...if so could you point me to a good how to website... Thanks again for your help.
 
Old 12-15-2003, 03:40 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
No problem. Take a look at the dhcp howto here:
http://www.tldp.org/HOWTO/DHCP/index.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
samba PDC ilnli Linux - Software 1 11-21-2005 06:59 AM
Questions about Samba acting as a PDC Wonderm00n Linux - Software 1 12-08-2004 06:22 AM
Terrible samba performance (acting as a client) muah Linux - Networking 3 05-13-2004 03:41 AM
Samba 3.01rc2 PDC problems goochster Linux - Newbie 0 12-15-2003 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration