ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexander Bokovoy <ab@altlinux.org>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Вопрос по SAMBA
Date: Fri, 15 Jul 2011 14:25:50 +0300
Message-ID: <CAG0OwAF540=r2+75cYzJxu5xco6AuU9e-k3v4iSdRt6-G+kfoA@mail.gmail.com> (raw)
In-Reply-To: <201107151438.32589.serpiph@nikiet.ru>

2011/7/15 Sergei Epiphanov <serpiph@nikiet.ru>:
> Судя по tcpdump:
>
> В сообщении от 15 июля 2011 11:44:38 автор Alexander Bokovoy написал:
>> В случае -M, nmblookup выполняет следующее:
>> 1. Открывает сокет на "вход", согласно socket address (по умолчанию,
>> 0.0.0.0).
>
> Открывает адрес, привязанный только к одному интерфейсу.
Значит в smb.conf переопределен socket address.
const char *lp_socket_address(void)
{
        char *sock_addr = Globals.szSocketAddress;

        if (sock_addr[0] == '\0'){
                string_set(&Globals.szSocketAddress, "0.0.0.0");
        }
        return  Globals.szSocketAddress;
}

>> В этом есть смысл, потому что мы запрашиваем имя по широковещательному
>> каналу и не ожидаем, что на это имя могут откликнуться многие. Так
>> устроен протокол NMB. Для других ситуаций я уже давал ссылку на Samba 3
>> by Example, где описана конфигурация, похожая на вашу.
>
> Задача команды 'nmblookup -M -- -' как раз найти ВСЕ компьютеры, числящиеся
> ведущими доменов или групп.
Я специально спросил на #samba-technical у коллег, которые занимаются
кодом nmbd, и мне подтвердили, что согласно указаным выше по треду
настройкам Самба ведет себя так как и должна вести и что конфигурация
неверна.


-- 
/ Alexander Bokovoy

      reply	other threads:[~2011-07-15 11:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-14  4:53 Sergei Epiphanov
2011-07-14 10:01 ` Alexander Bokovoy
2011-07-15  6:47   ` Sergei Epiphanov
2011-07-15  7:44     ` Alexander Bokovoy
2011-07-15 10:38       ` Sergei Epiphanov
2011-07-15 11:25         ` Alexander Bokovoy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG0OwAF540=r2+75cYzJxu5xco6AuU9e-k3v4iSdRt6-G+kfoA@mail.gmail.com' \
    --to=ab@altlinux.org \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git