1.10 Шаг 6: Тестируем Samba в роли AD DC

1.10 Шаг 6: Тестируем Samba в роли AD DC

First check you have the right version of smbclient by running the following command:

Проверим версию клиента smbclient, запустив следующую команду: Eng.

  $ /usr/local/samba/bin/smbclient --version

This should show you a version starting with «Version 4.0.XXXXX».

Версия должна начинаться с «Version 4.0.XXXXX». Eng.

Now run this command to list the shares on your Samba server:

А теперь дадим команду для просмотра общих ресурсов, доступных на нашем сервере Samba: Eng.

 $ /usr/local/samba/bin/smbclient -L localhost -U%

The output of the command should be similar to what is shown below:

Результат должен быть похож на то, что вы видете ниже: Eng.

        Sharename       Type      Comment
        ---------       ----      -------
        netlogon        Disk
        sysvol          Disk
        IPC$            IPC       IPC Service (Samba 4.0.0)

The netlogon and sysvol shares are basic shares needed for Active Directory server operation.

Общие ресурсы netlogon и sysvol это базовые шары которые должны присутствовать на сервере Active Directory. Eng.

If the command failed, restart samba by running the following:

Если вы получили ошибку, перезапустите Samba, выполнив следующие команды: Eng.

 # killall samba
 # rm -v -- /usr/local/samba/var/run/smbd-fileserver.conf.pid
 # /usr/local/samba/sbin/samba

To test that authentication is working, you should try to connect to the netlogon share
using the Administrator password you set earlier:

Необходимо подключиться к ресурсу netlogon, использовав пароль пользователя Administrator. Таким образом мы проверим работу системы авторизации. Выполните команду ниже: Eng.

 $ smbclient //localhost/netlogon -UAdministrator%'p4$$word' -c 'ls'

The output of the command should be similar to what is shown below:

Вывод команду будет похож на приведенный ниже: Eng.

 Domain=[SAMDOM] OS=[Unix] Server=[Samba 4.0.0beta9-GIT-e4677e3]
   .                                   D        0  Wed Sep 12 21:00:36 2012
   ..                                  D        0  Wed Sep 12 21:02:28 2012