[Samba] Problem with 02 domains on a single PDC

Gary Dale garydale at torfree.net
Tue Mar 20 19:33:12 GMT 2007


Both of your servers have the same netbios name! This is how Windows 
distinguishes different machines on the network. The weird behaviour is 
because of this conflict. Change the name of one server and everything 
may work.


Allysson Steve Mota Lacerda wrote:
> Hi all.
>
> I have 01 Samba-LDAP Server running 02 domains on separated networks.
>
> ----------------
> |    SERVER    |
> ----------------
>  |          |
>  |          |
> ADMIN      LABI
>
> When I try to join the ADMIN domain, the machine joins the LABI 
> domain. When
> I stop the LABI domain, the machine can join the ADMIN domain normally.
>
> Does anyone know how to fix this?
>
> Thanks.
>
> My configuration files are listed below.
>
> DOMAIN 01
>
> [global]
>        workgroup = LABI
>        netbios name = FACOMP01
>        server string = Controlador de Dominio
>        domain master = yes
>        preferred master = yes
>        local master = yes
>        domain logons = yes
>        enable privileges = yes
>        encrypt passwords = yes
>        ldap passwd sync = yes
>        passdb backend = ldapsam:ldap://localhost
>        ldap suffix = dc=LABI,dc=facomp,dc=edu,dc=br
>        ldap machine suffix = ou=Computadores
>        ldap user suffix = ou=Usuarios
>        ldap group suffix = ou=Grupos
>        ldap admin dn = cn=admin,dc=facomp,dc=edu,dc=br
>        ldap ssl = no
>        logon home = \\%L\%U\.profiles
>        logon path = \\%L\profiles\%U
>        logon script = netlogon.bat
>        security = user
>        os level = 256
>        interfaces = 172.16.2.254
>        log level = 3
>
> [netlogon]
>        comment = Servico de Logon
>        path = /var/samba/netlogon/labi
>        guest ok = Yes
>        browseable = No
>
> [homes]
>        comment = Diretorio Home
>        valid users = %S
>        guest ok = Yes
>        browseable = No
>        writeable = Yes
>
> [profiles]
>        path = /var/samba/profiles/labi
>        writeable = Yes
>        browseable = No
>        create mask = 0600
>        directory mask = 0700
>
> [arquivos]
>        path = /var/samba/arquivos/labi
>        writeable = No
>        browseable = Yes
>        create mask = 0600
>        directory mask = 0700
>
> DOMAIN 02
>
> [global]
>        workgroup = ADMIN
>        netbios name = FACOMP01
>        server string = Controlador de Dominio
>        domain master = yes
>        preferred master = yes
>        local master = yes
>        domain logons = yes
>        enable privileges = yes
>        encrypt passwords = yes
>        ldap passwd sync = yes
>        passdb backend = ldapsam:ldap://localhost
>        ldap suffix = dc=ADMIN,dc=facomp,dc=edu,dc=br
>        ldap machine suffix = ou=Computadores
>        ldap user suffix = ou=Usuarios
>        ldap group suffix = ou=Grupos
>        ldap admin dn = cn=admin,dc=facomp,dc=edu,dc=br
>        ldap ssl = no
>        logon home = \\%L\%U\.profiles
>        logon path = \\%L\profiles\%U
>        logon script = netlogon.bat
>        security = user
>        os level = 256
>        interfaces = 172.16.1.254
>        log level = 3
>
> [netlogon]
>        comment = Servico de Logon
>        path = /var/samba/netlogon/admin
>        guest ok = Yes
>        browseable = No
>
> [homes]
>        comment = Diretorio Home
>        valid users = %S
>        guest ok = Yes
>        browseable = No
>        writeable = Yes
>
> [profiles]
>        path = /var/samba/profiles/admin
>        writeable = Yes
>        browseable = No
>        create mask = 0600
>        directory mask = 0700
>
> [arquivos]
>        path = /var/samba/arquivos/admin
>        writeable = No
>        browseable = Yes
>        create mask = 0600
>        directory mask = 0700
>



More information about the samba mailing list