[Samba] Problems with a trust relation between samba and sambadifferent subnet

Alberto Moreno portsbsd at gmail.com
Fri Jan 21 15:51:28 MST 2011


On Fri, Jan 21, 2011 at 10:46 AM,  <tms3 at tms3.com> wrote:
>
>
> My friends I want to make to domains running samba+ldap to share
> resources, I want to create a trust relation in two directions. Both
> domains have wins enable but are on different subnet.
>
> MUST use the same WINS server for trusts to work. Why have two domains?
>
>
> Domain Name: DOM1 Netbios Name = DOM1PDC 192.168.50.0/24
> Domain Name: DOM2 Netbios Name = DOM2PDC 192.168.40.0/24
>
> Both networks are separate, each one with his own switch, a FW is what
> help me they can communicate.
>
> OS: Centos 5.5
> Samba 3.3.x.
>
> First, I follow the instructions from the bible of samba and say that
> I need to create the Interdomain account on each network:
>
> smbldap-useradd -a -i DOMAIN-NAME
>
> Done.
>
> smbldap-usershow I have the I flag on each account.
>
> I have enable the ports in my fw to communicate both domainsm done.
>
> Now went I run the command:
>
> net rpc trustdom establish DOM1 on PDC DOM2 I got the error
>
> net rpc trustdom establish DOM1 running on PDC DOM2
>
> [2011/01/21 07:17:16, 0] libsmb/namequery.c:internal_resolve_name(1609)
>    resolve_name: unknown name switch type lmhost
> [2011/01/21 07:17:16, 0] utils/net_rpc.c:rpc_trustdom_establish(5565)
>    Couldn't find domain controller for domain DOM1
>
> Some search pages point me that in this case I need to setup the file
> lmhosts to make this happen because no service is helping my PDC to
> reach the other end, I read the MS KB where it say how to setup a
> LMHOSTS and have this
> on my PDC DOM2:
>
> 127.0.0.1 localhost
> 192.168.50.3 "DOM1 \0x1b" #PRE
> 192.168.50.3 DOM1PDC #PRE #DOM:DOM1
>
> on DOM1 I have
>
> 192.168.40.3 "DOM2 \0x1b" #PRE
> 192.168.40.3 DOM2PDC #PRE #DOM:DOM2
>
> In samba smb.conf I have:
>
> hosts allow = 192.168.40. 192.168.50. 127.
> name resolve order = wins hosts bcast lmhost
>
> nsswitch have the line:
>
> hosts: files wins dns
>
> I try again and in DOM1 PDC:
>
> net rpc trustdom establish DOM2
>
> [2011/01/21 07:22:13, 0] libsmb/namequery.c:internal_resolve_name(1609)
>    resolve_name: unknown name switch type lmhost
> [2011/01/21 07:22:13, 0] utils/net_rpc.c:rpc_trustdom_establish(5565)
>    Couldn't find domain controller for domain DOM2
>
> There is something I forget to setup or what I'm doing wrong, hope
> some could give some tips and point my errors, I will appreciated,
> thanks!!!
>
> --
> LIving the dream...
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
>

Two domains.

Well this is a test systems.

But my current production system are separate by a P2P link. What u recommend?

Location A --> PDC Wins Server
Location B --> BDC
?

Them, u say 1 wins to rule them all mmmm I have to work with this.

Thanks!!!

-- 
LIving the dream...


More information about the samba mailing list