LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-29-2010, 05:31 AM   #1
Popolytho
LQ Newbie
 
Registered: Oct 2010
Posts: 11

Rep: Reputation: 0
Joining a Samba Domain/Workgroup from a remote Network


Hi guys,

Here is the scenario:

I have an OpenSuSe Server configured with DNS, Samba (PDC + WINS), LDAP, Squid

All this is in a hybrid scenario with other OpenSuse acting as clients and some Windows 7 also as clients.

Everything works perfect. Both systems are able to join and authenticate in the Samba server very smoothly.

My problem is that in my workspace I have several different subnets/VLANS.

So I have another OpenSuSe client here that needs to join the domain and authenticate with the samba server, but he just canīt find it via the Windows Domain Membership setup screen (where I usually configure the others).

The server can pe pinged, and it does resolv local domain names. It seems the problem is that I have no place to configure a PDC/WINS server in Linux Client. It only asks me for the domain to join, and then it doesnīt find it (Iīm guessing this happens because it canīt receive the broadcasts from the server network).

Is there any way to declare the Samba/PDC/WINS server on the client side?

Let me know if you need more details or info.

Thanks in advance,

Mytho
 
Old 10-30-2010, 05:56 AM   #2
feinbein
Member
 
Registered: Jan 2010
Location: Norway
Posts: 76

Rep: Reputation: 12
Try adding:

name resolve order = lmhosts host wins bcast

in smb.conf

It could also be a problem with binding samba to a certain network or interface.
 
Old 11-02-2010, 04:04 AM   #3
Popolytho
LQ Newbie
 
Registered: Oct 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by feinbein View Post
Try adding:

name resolve order = lmhosts host wins bcast

in smb.conf

It could also be a problem with binding samba to a certain network or interface.
Hello,

Thanks for your input. I have tried the resolve order and it didnīt work. What I really need is a way to bind the samba to a certain network, as youīve said.

How can I do this? I have searched for quite a while now and no cake so far...

Thanks
 
Old 11-03-2010, 11:19 AM   #4
feinbein
Member
 
Registered: Jan 2010
Location: Norway
Posts: 76

Rep: Reputation: 12
can you post your smb.conf?
 
Old 11-03-2010, 11:28 AM   #5
Popolytho
LQ Newbie
 
Registered: Oct 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by feinbein View Post
can you post your smb.conf?
I suppose you mean the clientīs smb.conf, right?

Code:
# cat /etc/samba/smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2010-09-15
[global]
        workgroup = WORKGROUP
        wins server = 172.22.110.100
        name resolve order = wins bcast host lmhosts
        passdb backend = tdbsam
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        include = /etc/samba/dhcp.conf
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        usershare allow guests = Yes
[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes
[profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        store dos attributes = Yes
        create mask = 0600
        directory mask = 0700
[users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/
[groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit acls = Yes
[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No
[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775
I have reinstalled the client (opensuse 11.3) and am trying from a clean start. I added the "wins server" option and the "name resolve order", but still no success...

the domain that I need it to join is teste.local, but I was hoping to set it using the tool Windows Domain Membership, that is why I didnīt set it up directly in the smb.conf (hopefully when it works, it will change it by itself)

Open to suggestions.

Thanks in advance
 
Old 11-04-2010, 01:18 AM   #6
feinbein
Member
 
Registered: Jan 2010
Location: Norway
Posts: 76

Rep: Reputation: 12
The binding would happen in smb.conf on the server, also you have the 'hosts allow'-directive, e.g.
Code:
interfaces = localhost 192.168.1.1/24

hosts allow = localhost, 172.16
It's also worth checking if netbios-packets are maybe filtered on your router.
 
Old 11-04-2010, 04:44 AM   #7
Popolytho
LQ Newbie
 
Registered: Oct 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by feinbein View Post
The binding would happen in smb.conf on the server, also you have the 'hosts allow'-directive, e.g.
Code:
interfaces = localhost 192.168.1.1/24

hosts allow = localhost, 172.16
It's also worth checking if netbios-packets are maybe filtered on your router.
For now and for testing purposes, I am using hosts allow = ALL

and it hasnīt worked yet, unfortunately.
The server only has one interface, but I could try that as well...

The router filter all kinds of broadcasts, that is why I need a solution that skips broadcasts.

If I actively execute an "smbclient -L //server -U user, it will work perfect, but I must specify the server. I need some kind of global variable that specifies the server in the system so that when the pc boots, it will make direct requests to it instead of sending broadcasts asking who is the samba server.

Cheers
 
Old 11-04-2010, 04:55 PM   #8
feinbein
Member
 
Registered: Jan 2010
Location: Norway
Posts: 76

Rep: Reputation: 12
Would it not be easier to tell the router to not filter netbios?
 
Old 11-05-2010, 04:36 AM   #9
Popolytho
LQ Newbie
 
Registered: Oct 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by feinbein View Post
Would it not be easier to tell the router to not filter netbios?
It truly would, but I canīt, due to company policy. Iīm not allowed to make any changes to the routers for this project. And in theory, Samba supports subnetting, I just canīt seem to make it work atm.

Thanks
 
Old 11-05-2010, 10:55 AM   #10
feinbein
Member
 
Registered: Jan 2010
Location: Norway
Posts: 76

Rep: Reputation: 12
Quote:
Originally Posted by Popolytho View Post
If I actively execute an "smbclient -L //server -U user, it will work perfect, but I must specify the server.

Cheers
You could setup domain-membership from within the samba servers vlan and then move the machines over to the other afterwards.
Or get a nic for every vlan.
 
Old 11-05-2010, 11:16 AM   #11
Popolytho
LQ Newbie
 
Registered: Oct 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by feinbein View Post
You could setup domain-membership from within the samba servers vlan and then move the machines over to the other afterwards
After that, all logins made in the remote network would be treated as offline, with no sync.

I was able to join the domain now using "net rpc join" from the remote network, now I just need to setup the system to use that in the authentication panel during login.

I guess this must be done in the PAM files, right?
 
  


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
Joining windows workgroup and samba config sportflyer Linux - Networking 7 04-16-2010 04:00 AM
joining a samba domain ikw38 Linux - Networking 20 09-22-2009 11:14 PM
joining my samba domain tude_1802 Linux - Newbie 1 08-22-2005 07:35 AM
Samba working in Domain, not in workgroup allauthors Linux - Wireless Networking 6 03-03-2005 01:33 AM
Joining a machine from another domain to my linux samba domain acummins Linux - Networking 0 09-13-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:39 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