Стартовая страница › Форумы › Понять, как работает ПО › Настройка LDAP (Active Directory)
- В этой теме 16 ответов, 3 участника, последнее обновление 2 года, 5 месяцев назад сделано
Mikhail.
-
АвторЗаписи
-
06.02.2024 в 19:59 #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 authenticated06.02.2024 в 22:12 #30973
JurasskParkУчастник«/opt/scada/ScadaServer/Mod/ModAutoControl.dll»
Что-то мне подсказывает, что с Linux проходить авторизацию на домене (кстати, тоже на Linux) модель не тестировался.
На Windows я тестировал. Но там и приложение, и домен был на Windows. И версия была 6.Заранее можете подсказать Михаилу:
— Какая ОС, где установлен сервер?
— На какой ОС развернут домен?07.02.2024 в 01:12 #30974
lost_postУчастникВы правильно предположили по моим логам что сервер на котором SCADA развернут на Linux (Ubuntu). Контроллер домена на Win 2012.
07.02.2024 в 14:06 #30981
MikhailМодераторДобрый день!
При входе в систему пользователь вводит username без домена. Если в работе модуля возникает ошибка, он выводит её в ScadaServer.log.Рекомендую переходить на Rapid SCADA 6, потому что в 6-й версии модуль ModActiveDirectory имеет больше настроек и выводит больше полезной информации в журнал работы.
07.02.2024 в 14:07 #30982
MikhailМодераторСделайте, пожалуйста, скриншот таблицы пользователей (убрав из него конфиденциальную информацию).
07.02.2024 в 14:29 #30985
lost_postУчастникПробую логиниться и без указания домена — такая же ситуация. Есть одно сообщение в ScadaServerSvc.log что Сheck…. Result: failed
Нашел на форуме утилиту LdapTest — смог авторизоваться только когда выбрал 2 — negotiate способ, и указал CN и DC. скопировал эти данные в строку подключения в скаде — но результат такой же.
07.02.2024 в 14:30 #30986
lost_postУчастникк сожалению на данные момент перейти на 6 версию возможности нет. в следующем квартале планируем переход.
08.02.2024 в 12:31 #31002
MikhailМодераторСоздайте пользователя с именем как у пользователя домена (без указания домена), пустым паролем и нужной ролью. В этом случае проверяется только логин и пароль — оптимально для теста.
> указал CN и DC
Да, это важно. Только не помню, можно ли их указать в 5-й версии в одной строке с хостом контроллера домена.12.02.2024 в 16:25 #31044
lost_postУчастникПопробовал создать пользователя с именем как в домене, с пустым паролем — так же failed.
Возможно есть другой способ указать CN и DC для 5й версии?
Если ли в 5й версии возможность просмотреть детальнее логи попыток подключение к LDAP что бы попробовать понять принину?
13.02.2024 в 12:22 #31058
MikhailМодераторСкопируйте больший текст из ScadaServerSvc.log
16.02.2024 в 15:53 #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.116.02.2024 в 15:58 #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В процессе старта тоже ничего более информативного нету.
19.02.2024 в 12:58 #31156
MikhailМодераторНужна часть журнала, которая записана в момент попытки входа пользователя, который содержится в Active Directory.
Включать подробный журнал в данном случае не нужно, потому что модуль Активной директории не учитывает эту настройку в своих записях.
19.02.2024 в 17:48 #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.
19.02.2024 в 17:52 #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 -
Ответ изменён 2 года, 5 месяцев назад пользователем
-
АвторЗаписи
- Для ответа в этой теме необходимо авторизоваться.
