Hello,
I am experiencing a persistent issue with ModActiveDirectory (v6.1.1.0) while running Scada Server (v6.2.2.1) on a Windows environment (running as Local System Account).
The Problem:
Every time the Server starts, the log shows the following error:
Module ModActiveDirectory: Error creating database entities: Host can’t be null
What I have tried so far:
Database Permissions: Confirmed that the postgres user has full GRANT permissions on the public and project schemas. Other modules (like ModArcPostgreSql) connect to the database successfully.
Configuration Synchronization: Verified that ScadaInstanceConfig.xml contains the correct database connection strings (localhost / 127.0.0.1).
Manual Module Configuration: I manually edited ModActiveDirectory.xml in both the Instance folder and the main Installation folder, adding the <DbConnOptions> section as suggested by the source code found on GitHub:<DbConnOptions>
<Server>127.0.0.1</Server>
<Database>rapidscada</Database>
<Username>postgres</Username>
<Password>Password123!</Password>
<DBMS>PostgreSQL</DBMS>
</DbConnOptions>