[samba] проблема с названием домена

Yakov Hrebtov jake на generation.ru
Сб Май 22 12:22:33 MSD 2004


samba-3.0.3-alt1.1
samba-common-3.0.3-alt1.1

Поднял коетроллер домена на самба.
Есть такая проблема: в сети видится не один а 2 домена:
1-й с именем 'BMZ' -- как и должно быть, а второй -- 'BMZ      ', те в
названии домена в конце некоторое количество пробелов.
При этом если щелкнуть в клиенте под виндами на второй домен (который
неправильный), то он пустой... в первом (правильном) видятся, как и
положено, машины, включенные в домен.

при запуске smb в log.nmbd появляется следующее:

Starting CIFS services:  NetBIOS over TCP/IP server, Samba server                           [ DONE ]
[root на ibm root]# tail -50 /var/log/samba/log.nmbd
[2004/05/22 14:15:47, 0] nmbd/nmbd.c:main(664)
  Netbios nameserver version 3.0.3-ALT/alt1.1 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2004/05/22 14:15:47, 0] nmbd/nmbd_logonnames.c:add_logon_names(163)
  add_domain_logon_names:
  Attempting to become logon server for workgroup BMZ on subnet 192.168.210.14
[2004/05/22 14:15:47, 0] nmbd/nmbd_logonnames.c:add_logon_names(163)
  add_domain_logon_names:
  Attempting to become logon server for workgroup BMZ on subnet UNICAST_SUBNET
[2004/05/22 14:15:47, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(327)
  become_domain_master_browser_wins:
  Attempting to become domain master browser on workgroup BMZ, subnet UNICAST_SUBNET.
[2004/05/22 14:15:47, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(341)
  become_domain_master_browser_wins: querying WINS server from IP 127.0.0.1 for domain master browser name BMZ<1b> on workgroup BMZ
[2004/05/22 14:15:47, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(124)
  become_logon_server_success: Samba is now a logon server for workgroup BMZ on subnet UNICAST_SUBNET
[2004/05/22 14:15:47, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
  *****

  Samba server FSERVER is now a domain master browser for workgroup BMZ on subnet UNICAST_SUBNET

  *****
[2004/05/22 14:15:47, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(282)
  become_domain_master_browser_bcast:
  Attempting to become domain master browser on workgroup BMZ on subnet 192.168.210.14
[2004/05/22 14:15:47, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(295)
  become_domain_master_browser_bcast: querying subnet 192.168.210.14 for domain master browser on workgroup BMZ
[2004/05/22 14:15:47, 0] nmbd/nmbd_workgroupdb.c:create_workgroup(68)
  create_workgroup: workgroup name BMZ            s too long. Truncating to BMZ
[2004/05/22 14:15:47, 1] libsmb/cliconnect.c:cli_connect(1293)
  Error connecting to 10.10.10.1 (Connection refused)

Обратите внимение на 3-ю снизу строчку...

testparm:

Load smb config files from /etc/samba/smb.conf
Processing section "[users]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

# Global parameters
[global]
        dos charset = CP866
        unix charset = KOI8-R
        display charset = KOI8-R
        workgroup = BMZ
        netbios name = FSERVER
        server string =
        interfaces = 192.168.210.0/24, 127.0.0.1
        log file = /var/log/samba/log.%m
        max log size = 50
        add user script = /usr/sbin/useradd -d /dev/null -s /bin/false -M %u
        add group script = /usr/sbin/groupadd %g
        add machine script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M %u
        logon path =
        logon home =
        domain logons = Yes
        os level = 99
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins support = Yes
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        winbind separator = @
        admin users = @domadmins
        use sendfile = Yes

[users]
        path = /home/samba/users
        valid users = @domusers
        read only = No
        create mask = 0660
        directory mask = 0770

Пробелов в конце строки 'workgroup = BMZ' нет.
Подскажите, где ошибка, как бороться!?

Спасибо!!!

-- 
С уважением,
Yakov Hrebtov                          mailto:jake на generation.ru



Подробная информация о списке рассылки Samba