LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-06-2004, 12:56 PM   #1
boemitsu
LQ Newbie
 
Registered: Dec 2003
Location: Zurich
Distribution: slackware 9.1, mandrake 9.1
Posts: 17

Rep: Reputation: 0
slackware 9.1 and samba as pdc


hi everyone

i've got a real problem....i want to set up samba as a pdc for my home domain called : arbeitsgruppe (well....i know, not that best name).
i have slackware 9.1 and installed samba 3 from the official slackware site...

i configured the smb.conf as described below (output from testparm), i can access the the public,netlogon share with no problem but i can't register my win2k client to the domain, i always get the error, that the domain is not available....

on my samba server, i added a group computer, added my win2k client with adduser -g computer -s /bin/false name$, added the computer to samba with smbpasswd -m -a name and created a samba user, and enabled it

i googled around for about 3 hours, but didn't find something helpful, so i really would appreciate, if you could help me....

no entry in hosts.deny, no iptables rules....

thx in advance for taking time


# Global parameters
[global]
workgroup = ARBEITSGRUPPE
server string = Samba Server
log file = /var/log/samba.%m
max log size = 50
logon path = \\%L\Profiles\%U
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
hosts allow = 192.168.1., 127.

[homes]
comment = Home Directories
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /domain/netlogon
guest ok = Yes
share modes = No

[Profiles]
path = /domain/profiles
guest ok = Yes
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[public]
comment = Public Stuff
path = /data
read only = No
guest only = Yes
guest ok = Yes
~
Read smbconfig, 43 lines, 752 chars


the log.nmbd

[2004/04/06 17:47:18, 0] nmbd/nmbd.c:terminate(54)
Got SIGTERM: going down...
[2004/04/06 17:47:20, 0] nmbd/nmbd.c:main(664)
Netbios nameserver version 3.0.2a started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
[2004/04/06 17:47:20, 0] nmbd/nmbd_logonnames.c:add_logon_names(163)
add_domain_logon_names:
Attempting to become logon server for workgroup ARBEITSGRUPPE on subnet 80.219.34.187
[2004/04/06 17:47:20, 0] nmbd/nmbd_logonnames.c:add_logon_names(163)
add_domain_logon_names:
Attempting to become logon server for workgroup ARBEITSGRUPPE on subnet 192.168.1.1
[2004/04/06 17:47:20, 0] nmbd/nmbd_logonnames.c:add_logon_names(163)
add_domain_logon_names:
Attempting to become logon server for workgroup ARBEITSGRUPPE on subnet UNICAST_SUBNET
[2004/04/06 17:47:20, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(327)
become_domain_master_browser_wins:
Attempting to become domain master browser on workgroup ARBEITSGRUPPE, subnet UNICAST_SUBNET.
[2004/04/06 17:47:20, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(341)
become_domain_master_browser_wins: querying WINS server from IP 192.168.1.1 for domain master browser name ARBEITSGRUPPE<1b>
on workgroup ARBEITSGRUPPE
[2004/04/06 17:47:20, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(124)
become_logon_server_success: Samba is now a logon server for workgroup ARBEITSGRUPPE on subnet UNICAST_SUBNET
[2004/04/06 17:47:20, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
*****

Samba server M3 is now a domain master browser for workgroup ARBEITSGRUPPE on subnet UNICAST_SUBNET

*****
[2004/04/06 17:47:20, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(282)
become_domain_master_browser_bcast:
Attempting to become domain master browser on workgroup ARBEITSGRUPPE on subnet 80.219.34.187
[2004/04/06 17:47:20, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(295)
become_domain_master_browser_bcast: querying subnet 80.219.34.187 for domain master browser on workgroup ARBEITSGRUPPE


[2004/04/06 17:47:20, 0]nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
*****

Samba server M3 is now a domain master browser for workgroup ARBEITSGRUPPE on subnet UNICAST_SUBNET

*****
[2004/04/06 17:47:20, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(282)
become_domain_master_browser_bcast:
Attempting to become domain master browser on workgroup ARBEITSGRUPPE on subnet 80.219.34.187
[2004/04/06 17:47:20, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(295)
become_domain_master_browser_bcast: querying subnet 80.219.34.187 for domain master browser on workgroup ARBEITSGRUPPE
[2004/04/06 17:47:20, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(282)
become_domain_master_browser_bcast:
Attempting to become domain master browser on workgroup ARBEITSGRUPPE on subnet 192.168.1.1
[2004/04/06 17:47:20, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(295)
become_domain_master_browser_bcast: querying subnet 192.168.1.1 for domain master browser on workgroup ARBEITSGRUPPE
[2004/04/06 17:47:24, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(124)
become_logon_server_success: Samba is now a logon server for workgroup ARBEITSGRUPPE on subnet 80.219.34.187
[2004/04/06 17:47:24, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(124)
become_logon_server_success: Samba is now a logon server for workgroup ARBEITSGRUPPE on subnet 192.168.1.1
[2004/04/06 17:47:28, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
*****

Samba server M3 is now a domain master browser for workgroup ARBEITSGRUPPE on subnet 80.219.34.187

*****
[2004/04/06 17:47:28, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
*****

Samba server M3 is now a domain master browser for workgroup ARBEITSGRUPPE on subnet 192.168.1.1

*****
[2004/04/06 17:47:43, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
*****

Samba name server M3 is now a local master browser for workgroup ARBEITSGRUPPE on subnet 80.219.34.187

*****
[2004/04/06 17:47:43, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
*****

Samba name server M3 is now a local master browser for workgroup ARBEITSGRUPPE on subnet 192.168.1.1

*****
 
Old 04-06-2004, 01:23 PM   #2
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
[MCSE Talk] What is the client dns server of the windows 2000 machine set to?? You need dns to join the domain [/MCSE Talk]

I would look to setting up bind for name resolution... I would think that is where you problem is at.
 
Old 04-06-2004, 03:08 PM   #3
boemitsu
LQ Newbie
 
Registered: Dec 2003
Location: Zurich
Distribution: slackware 9.1, mandrake 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
....hm, as far as i know...dns came with win2k, winnt used wins as its primary name resolution service....samba emulates a nt4 pdc so it uses wins...wins is activated, as we can see from the output from tesparm....[/MCSA TALK] ; )
 
Old 04-06-2004, 08:04 PM   #4
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
Quote:
Originally posted by boemitsu
....hm, as far as i know...dns came with win2k, winnt used wins as its primary name resolution service....samba emulates a nt4 pdc so it uses wins...wins is activated, as we can see from the output from tesparm....[/MCSA TALK] ; )
you do have a good point... Im thinking AD, which requires dns... *I* would also try enabling and setting up bind though...

on win2k machine
Is wins setup in the network properties on the machine??
Is netbios over tcp/ip enabled?

On Samba Server -
I would also be curious if disabling wins might work for you?
I notice there is not a netbios name for ther server? have you tried adding one?
I would also see if adding "local master = yes" changed any of your results.

I will be willing to help you out.. Let me know if these options work or not. I have a potential customer I am trying to sell on removing 2k server and going with linux samba. (been trying to talk into for almost a year now), feel free to post back up if any of the following helps you or not!

thanks
trey
 
Old 04-07-2004, 05:56 PM   #5
adler321
LQ Newbie
 
Registered: Apr 2004
Posts: 7

Rep: Reputation: 0
Try going to My Computer --> Properties
Then go to Computer name, go ahead and change settings to join your new domain. When it asks you for username and password enter ROOT and the ROOT password. It will say welcome to the domain. Would you like to restart? Click ok.
When it comes up, enter the username now that you were initially entering, it should work now.

Good luck!
 
Old 04-08-2004, 10:13 AM   #6
boemitsu
LQ Newbie
 
Registered: Dec 2003
Location: Zurich
Distribution: slackware 9.1, mandrake 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
@trey85stang

yep...the netbios name option was the missing thing i think at least, cause it's absolutely essential for the win2k client to connect to....

i used another config (where i set the netbios name) and it worked perfectly....roaming profiles, homedirectory, public...everything works

i am just working at the login scripts...but this should not be that hard,...should just find some time ... ; )

besides....i am working too on a ad win2003 infrastructure (about 150 workstations) and i am glad, not to do this with samba....but in another small enterprise (about 10 clients) which is now running an nt4 pdc, i will substitute it with samba, cause for those purposes it works greatly and saves lots of money. ! for small enterprises ad is just an overkill....
 
Old 04-08-2004, 02:18 PM   #7
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
I was curious, when you have SAMBA setup as a PDC, can Windows clients change their passwords from the workstations like they could with a normal Windows PDC?
 
Old 04-08-2004, 03:22 PM   #8
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
Quote:
Originally posted by boemitsu
@trey85stang

yep...the netbios name option was the missing thing i think at least, cause it's absolutely essential for the win2k client to connect to....

i used another config (where i set the netbios name) and it worked perfectly....roaming profiles, homedirectory, public...everything works

i am just working at the login scripts...but this should not be that hard,...should just find some time ... ; )

besides....i am working too on a ad win2003 infrastructure (about 150 workstations) and i am glad, not to do this with samba....but in another small enterprise (about 10 clients) which is now running an nt4 pdc, i will substitute it with samba, cause for those purposes it works greatly and saves lots of money. ! for small enterprises ad is just an overkill....
I agree a small office would greatly benefit from a samba server! Glad you got it working... if you dont mind me asking.. What all was diffrent with the new config file that you used?
 
Old 04-11-2004, 09:22 PM   #9
boemitsu
LQ Newbie
 
Registered: Dec 2003
Location: Zurich
Distribution: slackware 9.1, mandrake 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
hey

sry....didn't see your post..

i created the following directories:

/home/domain/profiles
/home/domain/private
/home/domain/netlogon
(take care about the access right...)

***********
groupadd computers
useradd -g computers -s /bin/false name_of_the_workstation$ (do not forget the '$')
smbpasswd -m -a name_of_the_workstation$
***********
useradd -g users -s /bin/false -d /home/domain/private/boemitsu boemitsu
smbpasswd -a boemitsu (prompt for password)
smbpasswd -e boemitsu
***********
the testparm output from the working smb.conf is:

U% is the substitute for username
L% is the netbios name of the server...(this case: SIFF)


[global]
workgroup = DERUM
netbios name = SIFF
server string = Samba Server
interfaces = 192.168.1.1/24
log file = /var/log/samba.%m
max log size = 50
logon script = %U.bat
logon path = \\%L\profiles\%U
logon drive = Z:
logon home = \\%L\private\%U
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
admin users = root
hosts allow = 192.168.1., 127.0.0.1

[private]
comment = Home Directories
path = /home/domain/private/%U
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /home/domain/netlogon
guest ok = Yes
share modes = No

[profiles]
path = /home/domain/profiles
read only = No
guest ok = Yes
browseable = No

[public]
comment = deRUM Collection
path = /data
read only = No
guest only = Yes
guest ok = Yes
 
  


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 11:39 AM
Slackware machine as SAMBA PDC and mail server MS3FGX Linux - Networking 8 04-19-2004 06:52 AM
samba as a PDC elric7 Linux - Networking 1 12-10-2002 05:37 PM
Samba PDC needamiracle Linux - Software 0 09-04-2002 11:56 AM
samba PDC help..... p_murugappan Linux - Networking 0 08-16-2001 05:09 PM


All times are GMT -5. The time now is 08:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration