Настройка LDAP (Active Directory)

Просмотр 15 сообщений - с 1 по 15 (из 17 всего)
  • Автор
    Записи
  • #30972
    lost_post
    Участник

    Добрый день.
    Пытаюсь настроить LDAP, но не работает, и вроде и ошибок не дает. Версия 5, с последними всеми обновлениями.
    Что было сделано: созданы глобальные группы безопасности в домене, указан адрес контроллера домена в виде LDAP://NAME.DOMAIN.COM (также пробовал указывать IP), поставлена галочка, включен модуль ModActiveDirectory.dll .
    Пробую логиниться DOMAIN/username и username@domain.com — в логах вижу Check username and password for ….. Result: failed
    Попыток (успешных или нет) подключения к контроллеру домена в логе ScadaServerSvc.log нет. Есть успешная загрузка модуля и все.

    Возможно где то нужно указать какой тип авторизации необходимо использовать 1, 2 или 3 ? В общем ткните плиз где я ошибся.

    Логи

    2024-02-06 18:48:53 <Gacrux><root><ACT> ScadaServerService 5.1.4.2 is started
    2024-02-06 18:48:53 <Gacrux><root><ACT> Module is loaded from the file /opt/scada/ScadaServer/Mod/ModAutoControl.dll
    2024-02-06 18:48:53 <Gacrux><root><ACT> Module is loaded from the file /opt/scada/ScadaServer/Mod/ModDbExport.dll
    2024-02-06 18:48:53 <Gacrux><root><ACT> Module is loaded from the file /opt/scada/ScadaServer/Mod/ModActiveDirectory.dll
    2024-02-06 18:48:53 <Gacrux><root><ACT> Check the existence of the data directories is completed successfully
    2024-02-06 18:48:53 <Gacrux><root><ACT> Check the existence of the configuration database files is completed successfully
    2024-02-06 18:48:54 <Gacrux><root><ACT> Input channels are read from the configuration database. Active channel count: 1545
    2024-02-06 18:48:54 <Gacrux><root><ACT> Ouput channels are read from the configuration database
    2024-02-06 18:48:54 <Gacrux><root><ACT> Users are read from the configuration database
    2024-02-06 18:48:54 <Gacrux><root><ACT> Formulas are read from the configuration database
    2024-02-06 18:48:54 <Gacrux><root><ACT> The formulas source code has been compiled
    2024-02-06 18:48:55 <Gacrux><root><ACT> Connection listener is started
    2024-02-06 18:48:55 <Gacrux><root><ACT> Start server
    2024-02-06 18:48:55 <Gacrux><root><ACT> Current data are loaded
    2024-02-06 18:48:56 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-06 18:48:56 <Gacrux><root><ACT> The user ScadaComm is successfully authenticated
    2024-02-06 18:49:36 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-06 18:49:36 <Gacrux><root><ACT> The user ScadaWeb is successfully authenticated
    #30973
    JurasskPark
    Участник

    «/opt/scada/ScadaServer/Mod/ModAutoControl.dll»
    Что-то мне подсказывает, что с Linux проходить авторизацию на домене (кстати, тоже на Linux) модель не тестировался.
    На Windows я тестировал. Но там и приложение, и домен был на Windows. И версия была 6.

    Заранее можете подсказать Михаилу:
    — Какая ОС, где установлен сервер?
    — На какой ОС развернут домен?

    #30974
    lost_post
    Участник

    Вы правильно предположили по моим логам что сервер на котором SCADA развернут на Linux (Ubuntu). Контроллер домена на Win 2012.

    #30981
    Mikhail
    Модератор

    Добрый день!
    При входе в систему пользователь вводит username без домена. Если в работе модуля возникает ошибка, он выводит её в ScadaServer.log.

    Рекомендую переходить на Rapid SCADA 6, потому что в 6-й версии модуль ModActiveDirectory имеет больше настроек и выводит больше полезной информации в журнал работы.

    #30982
    Mikhail
    Модератор

    Сделайте, пожалуйста, скриншот таблицы пользователей (убрав из него конфиденциальную информацию).

    #30985
    lost_post
    Участник

    Пробую логиниться и без указания домена — такая же ситуация. Есть одно сообщение в ScadaServerSvc.log что Сheck…. Result: failed

    Нашел на форуме утилиту LdapTest — смог авторизоваться только когда выбрал 2 — negotiate способ, и указал CN и DC. скопировал эти данные в строку подключения в скаде — но результат такой же.

    Таблица пользователей стандартная Screenshot-2024-02-07-at-1-28-39-PM

    #30986
    lost_post
    Участник

    к сожалению на данные момент перейти на 6 версию возможности нет. в следующем квартале планируем переход.

    #31002
    Mikhail
    Модератор

    Создайте пользователя с именем как у пользователя домена (без указания домена), пустым паролем и нужной ролью. В этом случае проверяется только логин и пароль — оптимально для теста.

    > указал CN и DC
    Да, это важно. Только не помню, можно ли их указать в 5-й версии в одной строке с хостом контроллера домена.

    #31044
    lost_post
    Участник

    Попробовал создать пользователя с именем как в домене, с пустым паролем — так же failed.

    Возможно есть другой способ указать CN и DC для 5й версии?

    Если ли в 5й версии возможность просмотреть детальнее логи попыток подключение к LDAP что бы попробовать понять принину?

    #31058
    Mikhail
    Модератор

    Скопируйте больший текст из ScadaServerSvc.log

    #31147
    lost_post
    Участник

    Да нету там ничего про LDAP

    2024-02-12 16:54:05 <Gacrux><root><ACT> ScadaServerService 5.1.4.2 is started
    2024-02-12 16:54:06 <Gacrux><root><ACT> Module is loaded from the file /opt/scada/ScadaServer/Mod/ModAutoControl.dll
    2024-02-12 16:54:06 <Gacrux><root><ACT> Module is loaded from the file /opt/scada/ScadaServer/Mod/ModDbExport.dll
    2024-02-12 16:54:06 <Gacrux><root><ACT> Module is loaded from the file /opt/scada/ScadaServer/Mod/ModActiveDirectory.dll
    2024-02-12 16:54:06 <Gacrux><root><ACT> Check the existence of the data directories is completed successfully
    2024-02-12 16:54:06 <Gacrux><root><ACT> Check the existence of the configuration database files is completed successfully
    2024-02-12 16:54:06 <Gacrux><root><ACT> Input channels are read from the configuration database. Active channel count: 1548
    2024-02-12 16:54:06 <Gacrux><root><ACT> Ouput channels are read from the configuration database
    2024-02-12 16:54:06 <Gacrux><root><ACT> Users are read from the configuration database
    2024-02-12 16:54:06 <Gacrux><root><ACT> Formulas are read from the configuration database
    2024-02-12 16:54:06 <Gacrux><root><ACT> The formulas source code has been compiled
    2024-02-12 16:54:07 <Gacrux><root><ACT> Connection listener is started
    2024-02-12 16:54:07 <Gacrux><root><ACT> Start server
    2024-02-12 16:54:07 <Gacrux><root><ACT> Current data are loaded
    2024-02-12 16:54:09 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-12 16:54:09 <Gacrux><root><ACT> The user ScadaComm is successfully authenticated
    2024-02-12 16:54:16 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-12 16:54:16 <Gacrux><root><ACT> The user ScadaWeb is successfully authenticated
    2024-02-12 16:56:07 <Gacrux><root><ACT> Disconnect client 127.0.0.1
    2024-02-13 02:15:13 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-13 02:15:13 <Gacrux><root><ACT> The user ScadaComm is successfully authenticated
    2024-02-13 02:16:10 <Gacrux><root><ACT> Disconnect client 127.0.0.1
    2024-02-13 12:49:45 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-13 12:49:45 <Gacrux><root><ACT> The user ScadaWeb is successfully authenticated
    2024-02-13 12:49:53 <Gacrux><root><ACT> Check username and password for admin. Result: passed
    2024-02-13 14:27:41 <Gacrux><root><ACT> Disconnect client 127.0.0.1
    2024-02-13 15:07:15 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-13 15:07:15 <Gacrux><root><ACT> The user ScadaWeb is successfully authenticated
    2024-02-13 15:41:43 <Gacrux><root><ACT> Disconnect client 127.0.0.1
    2024-02-14 02:15:07 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-14 02:15:07 <Gacrux><root><ACT> The user ScadaComm is successfully authenticated
    2024-02-14 02:16:06 <Gacrux><root><ACT> Disconnect client 127.0.0.1
    2024-02-15 02:15:09 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-15 02:15:09 <Gacrux><root><ACT> The user ScadaComm is successfully authenticated
    2024-02-15 02:16:07 <Gacrux><root><ACT> Disconnect client 127.0.0.1
    2024-02-16 02:15:09 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-16 02:15:09 <Gacrux><root><ACT> The user ScadaComm is successfully authenticated
    2024-02-16 02:16:07 <Gacrux><root><ACT> Disconnect client 127.0.0.1
    #31149
    lost_post
    Участник

    Включаю подробный журнал — так же ничего понятнее не становится.

    момент попытки авторизации через ldap

    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x03 (write current data) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x01 (check user name and password) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> The user ScadaWeb is successfully authenticated
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x0C (request files modification time) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Obtaining the modification time of the file /opt/scada/BaseDAT/incnl.dat
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x01 (check user name and password) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Check username and password for semjon.kogan. Result: failed
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x03 (write current data) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:22 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:23 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:23 <Gacrux><root><ACT> Writing snapshot in the current data table is completed
    2024-02-16 14:56:23 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:23 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:23 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1
    2024-02-16 14:56:23 <Gacrux><root><ACT> Command 0x07 (request command) is received from the client 127.0.0.1

    В процессе старта тоже ничего более информативного нету.

    #31156
    Mikhail
    Модератор

    Нужна часть журнала, которая записана в момент попытки входа пользователя, который содержится в Active Directory.

    Включать подробный журнал в данном случае не нужно, потому что модуль Активной директории не учитывает эту настройку в своих записях.

    #31158
    lost_post
    Участник

    В этом логе она есть — 2024-02-16 14:56:22 <Gacrux><root><ACT> Check username and password for semjon.kogan. Result: failed

    больше никаких сообщений в момент попытки логина не появляется

    • Ответ изменён 2 года, 5 месяцев назад пользователем lost_post.
    #31160
    lost_post
    Участник

    еще раз снял логи. попытка логина пользователес LDAP а после логин локальным пользователем скады.

    2024-02-19 16:50:32 <Gacrux><root><ACT> Connect to client 127.0.0.1
    2024-02-19 16:50:32 <Gacrux><root><ACT> The user ScadaWeb is successfully authenticated
    2024-02-19 16:50:41 <Gacrux><root><ACT> Check username and password for semjon.kogan. Result: failed
    2024-02-19 16:50:55 <Gacrux><root><ACT> Check username and password for admin. Result: passed
Просмотр 15 сообщений - с 1 по 15 (из 17 всего)
  • Для ответа в этой теме необходимо авторизоваться.