LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-22-2005, 02:49 PM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Samba as Primary Domain Controller for windows network


Hello

I'm trying to setup my Linux server to host the profiles for my Windows clients. At the moment, all of my PCs and the linux server (which is the Primary Domain Controller) are connected through a Linksys router, which has DNS on it for resolving things like google etc. It does not resolve Internal PC names, as far as I know. I wouldn't expect it to.

I believe that i have set up my samba configuration correctly, as I followed a howto perfectly. However, when I try and add my Windows 2000 client to the domain, I get the error:

"The domain ZYZ is either invalid or does not exist"

It is the case that I need to set up my LInux server, which I have set up as the Primary DOmain Controller, to be a DNS server for the INTERNAL network?

Or, do I just set:
name resolve order = wins lmhosts hosts bcast

and run a WINS server on the Linux server?
When roaming profiles/active directory is setup on a Windows 2000 server, windows make that domian controller a DNS server.

If anyone can shed light for me, that would be great.

Hamish

Last edited by hamish; 07-22-2005 at 02:59 PM.
 
Old 07-23-2005, 10:33 AM   #2
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
Can I see your Samba config on this one?

In addition, if you want to do both DHCP and have DNS resolving dynamic hosts' names, there is a recipe that works using ISC dhcpd and bind 9. This is not necessary, I believe [and almost certainly overkill]. However, if you'd like to see how it's done, be my guest and ask away. Note that it's a lot of trouble to set up both bind and dhcpd, so be aware that it may not be worth it.
 
Old 07-23-2005, 01:36 PM   #3
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
hiya

I have fixed the problem. It stemmed from my firewall.

the following ports are needed to be open (i have enabled them only from sources in the local network)
udp: 137 138
tcp : 139 445
imcp: 3 and 4

Thanks
Hamish
 
Old 07-24-2005, 05:42 AM   #4
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
My next problem is that when I log in with my account "hamish" (where the whole profile folder is about 150Mb) navigation becomes very slow.

For example, when I go to My Computer, it takes about 20 seconds for My Computer to be populated with the icons, including my two automtically mounted network drives.

When I access any network drive, it is unusably slow to populate the directory.

When I log in with a different user, user1, whose profile is only 10 Mb, none of these problems occur. It runs at a native speed.

My question is:

what is causeing this slowness? Is it a result of the large profile? (althou 140Mb is not actually that much), or is there something I have to alter in my smb.conf to make it cope with large profiles?

Thanks
Hamish
 
Old 07-26-2005, 08:29 AM   #5
mpeg4codec
Member
 
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
I've seen Windows 2000 choke on large profiles. I think this is mostly your client's problem.. though I'm not sure. I haven't done any research on it, so.. Google?
 
Old 07-26-2005, 12:54 PM   #6
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
after further tests, it isn't the profile size. made a new user with a profile 2 times the size of the one I was having problems with.

It worked fine.

It might be a corrupt file in that user's account

hamish
 
  


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
windows primary domain controller with samba 3.x giorgiotheone Mandriva 1 07-04-2011 06:02 AM
Samba Primary Domain Controller for a Windows XP network benobi Linux - Networking 4 11-19-2004 02:21 PM
Samba Domain Controller for windows XP dickohead Linux - Networking 9 05-08-2004 10:11 PM
Samba as a windows domain controller twsnnva Linux - Networking 1 10-30-2003 02:26 PM
Establish a Primary Domain Controller tthai01 Linux - Networking 1 11-27-2002 10:04 AM


All times are GMT -5. The time now is 02:43 AM.

Main Menu
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