Stop samba from querying trusted domain servers

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Stop samba from querying trusted domain servers
# 1  
Old 06-30-2010
Stop samba from querying trusted domain servers

Hi,

We've got a samba server running in our DMZ. Our users drag & drop files on it for vendors. Everything was working perfectly until the powers that be decided to build a trust between a couple of internal domains.

Samba is now querying each server in the trust. When a user browses the directory on the mapped drive occasionally explorer will hang. The same holds true for a Unix user truing to list a directory.

After much digging, I found that the "hang" is occurring when the trusted servers are being queried. The directory listing won't show up until the queries are done. This is causing some grief for users and the scripts that run in the background.

Since the server is in the DMZ the trusted servers aren't reachable, nor are there routes back to it from these servers. So, even if I did allow the traffic, it wouldn't come back anyway.

This appears to be a winbind problem. There seems to be no problem with authentication. Only mapping Unix UID to a Windows user name.

Is there a way to stop samba from querying these servers, or limit it to just our local server? I've been through the man pages, scoured the Internet & tried several ideas that I found all to no avail.

Any Ideas?

Thanks,

MPH
# 2  
Old 07-05-2010
allow trusted domains = no

I've had similar problems and had to go back to just using the domain I'm joined to.
# 3  
Old 07-06-2010
cjcox,

Thanks for the reply. Unfortunately, allow trusted domains = no is already in the config file. It still tries to hit all the other servers. I increased the ldap timeout and it seems to be helping. It's not the answer, but it's a start.

Regards,

MPH
# 4  
Old 07-06-2010
So... you're saying that when enumerate users it's giving the list from all of the Domains? Not just the one you're joined to? Mine doesn't do this.

In my config, I only see the Domain I'm joined to now and auths are strictly going against that. Weird problem.
# 5  
Old 07-06-2010
It's not listing from all the domains. It IS trying to reach the other controllers. The problem is that there's no route to some of the servers and others there's no route back to the machine. Doing a tcpdump yields the following

From my samba machine in the DMZ to, and back from, the local AD server:
Quote:
10:45:01.170297 IP 10.xxx.xx.34.44697 > 10.xxx.x.70.389: tcp 0
10:45:01.170434 IP 10.xxx.x.70.389 > 10.xxx.xx.34.44697: tcp 1188
To other AD servers with insufficient routing:
Quote:
10:47:00.154323 IP 10.xxx.xx.34 > 10.xx.xxx.128 tcp 99
10:47:10.462745 IP 10.xxx.xx.34 > 10.x.xx.223 tcp 99
There are 5 or so more remote AD servers from other domains that never come back for due to routing. During the time that it's attempting to query or connect with these servers file listings and such "hang" until the the local machine gives up.

Using the allow trusted domains = no parameter DOES limit the connection attempts to once every half an hour or so. Before that, it would try almost every time a directory listing or anything else that needed to tie a user name to an UID was attempted. It's not the fix, but it SURE helped.

The routing is something that will not be fixed. The other domains need not access nor communicate with our DMZ.
# 6  
Old 07-23-2010
UPDATE!!!

I think I've got at least a work around. I set samba to be the master browser on the local network. The only way I could get away with it is because it's on it's own network. Otherwise, I wouldn't have taken the chance interfering with our BDC.

Since making the change, there's been no attempts to contact servers other than our domain servers.

I'll keep my eyes crossed. X^)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with accessing Samba shares on external (NON-DOMAIN) webserver(s)

Hi all, You may have seen my recent topic, where I asked for help getting some samba shares to work on our network. Now that these are working, I move on to the next hurdle! We have a few externally hosted (Windows Server 2008 R2) web servers which are not on our domain, but can still... (0 Replies)
Discussion started by: mgreen81
0 Replies

2. Windows & DOS: Issues & Discussions

Lost Domain Admin Privileges in Samba

Hello, I have apparently lost all domain admin privledges in Samba. I have had several problems ever since I installed the 1/31 Solaris patch cluster. I had to roll out one Samba update (146363-01), which denied all logons network access. However, this particular problem seems to have begun... (0 Replies)
Discussion started by: stringman
0 Replies

3. Debian

Testing a SAMBA Domain Controller

Hello,,, We have an existing(working) MS PDC in our office. I have already installed SAMBA with LDAP Authentication on a TEST machine (on same LAN). But, am unable to join a WinXP machine to this domain. in smb.conf i have: WORKGROUP = mydomain and tried to join the XP machine to... (0 Replies)
Discussion started by: coolatt
0 Replies

4. UNIX for Dummies Questions & Answers

Samba change domain controller

Hello people i have a samba and they changed domain controller from a windows 2003 to a windows 2008, there is a problem with the version of samba maybe incompatibilities i dont know what show me this domain_client_validate: unable to validate password for user xxxx in domain xxxx to Domain... (0 Replies)
Discussion started by: enkei17
0 Replies

5. Homework & Coursework Questions

cannot join xp or vista to samba domain (PDC)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I have a barebones XP Pro SP2 with no firewall. CentOS 5.xx running a Samba 3.xx Domain (PDC) The XP machine... (2 Replies)
Discussion started by: pogipants
2 Replies

6. Solaris

How to stop samba on solaris 10?

Hello to everybody from Argentina. I need to stop samba because i need to fsck a filesystem How can i do this? I presume that the version is higher than 3.0. /usr/sfw/sbin/smbd -D This is the out of ps -ef | grep smbd. Thank you very much for your time i am a litle lost. The... (4 Replies)
Discussion started by: enkei17
4 Replies

7. Red Hat

Samba: Authenticating and joining AD domain as a member

Hi all, I'm having some problems with joining an active directory domain as a member. My Linux servers using the same configuration across the board are all joining as domain controllers, which is bad. I am running Samba 3.0.25b-0.4E.6 on all of my RHEL servers. Here is my global... (1 Reply)
Discussion started by: Bert
1 Replies

8. AIX

Servers still querying old DNS server?

Hello, I've created new DNS servers and changed all of the clients /etc/resolv.conf to point to them, but when I check the old DNS logs, I see that the clients are still querying it. Does anybody know why? thanks, (2 Replies)
Discussion started by: ctcuser
2 Replies

9. UNIX for Advanced & Expert Users

Samba does not connect to domain

I have a samba server and a raid SAN which is actually running samba. Neither one lets me access anything on the samba unix side. I really do not know where to look anymore. there are no errors. When I try to connect to the samba server I get prompted with login and password repeatedly. Frank (4 Replies)
Discussion started by: frankkahle
4 Replies

10. UNIX for Dummies Questions & Answers

Using Samba to join a win 2000 Domain

I am trying to set samba up to join my windows 2000 domain and I am having troubles If anyone if familiar with this help would be greatly appreciated I issue the following command # ./smbpasswd -j DOMAIN -r DOMAINCONTROLER And the following gets returned load_client_codepage: filename... (4 Replies)
Discussion started by: gennaro
4 Replies
Login or Register to Ask a Question