Installing YSoft SafeQ Management Server On External MSSQL Using Domain Users-V49-20230227 - 101800
Installing YSoft SafeQ Management Server On External MSSQL Using Domain Users-V49-20230227 - 101800
DOCUMENTATION
THE SETUP, SERVICE, AND FUNCTIONS
OF THE YSOFT SAFEQ 6
1 Prerequisites 4
2 Installation of YSoft SafeQ Management Server using domain users 5
2.1 Configure SQL Server and create domain user 5
2.2 Create YSoft SafeQ database and configure access rights 7
2.3 Create YSoft SafeQ data warehouse database and configure access rights 10
2.4 Create Infrastructure Management database and configure access rights 10
2.5 Install YSoft SafeQ Management Server 12
2.6 When using external database for data warehouse on the same server 15
3 Troubleshooting 16
3.1 Management Server is not working, there are "Invalid object name" errors in the
log files 16
3.2 Management Server is not working, there is a "Could not obtain information about
Windows NT group/user" error in the log file 16
3.2.1 To check the owner of a database 17
3.3 Reports in the management interface are not working and there is a "The server
principal is not able to access the database" error in the log file 17
3.4 Installation freezes during starting services 18
3.5 ALTER USER or CREATE USER errors during installation or tenant creation 18
This page describes the installation of YSoft SafeQ Management Server on Microsoft SQL Server
database with a usage of domain users for authentication to the database engine.
1. Connect to the database server using a user account with sufficient privileges
You must be logged in into the Windows Server with a different user than the one
which will be used for communication between YSoft SafeQ installer and the
databases. But the user must be from the same domain.
Example:
• if domain user doe from domain EXAMPLE will be used for communication between
YSoft SafeQ installer and databases, then you must connect to the Windows
Server as a different user from domain EXAMPLE
• do not use System Administrator (user sa) as it is not part of any Windows domain
2. Open SQL Server Management Studio and connect to the Database Engine.
6. Under database server, expand Security, right-click Logins and select New Login...
7. Add domain user, who will be used for communication between YSoft SafeQ installer and
database. Enter Login name in following format 'domain\username' and select Windows
authentication as the authentication method.
1. Open SQL Server Management Studio and connect to the Database Engine.
4. Expand Databases, find the newly created database, under the database expand Security,
right-click Users and select New user...
5. Configure access right to the YSoft SafeQ database for the domain user. On the General tab,
change User type to "Windows user", fill the Username and Login name with the user created
This section applies only in case you plan to use external database for data warehouse.
Repeat the steps from the Create YSoft SafeQ database and configure access rights section
(previous section) and use the same user as for the main database but choose different name for
the warehouse database (for example SQDB6_DWH).
1. Open SQL Server Management Studio and connect to the Database Engine.
3. Expand (server lever) Security, expand Logins, right-click the domain user (created in the
previous section) and click Properties.
1. Log in to the server where Management Server shall be installed using the same domain user
which is used for communication between YSoft SafeQ installer and databases. Domain user
Doe is used in this example. This user account must have sufficient privileges on Management
Server to run the installer.
2. Run YSoft SafeQ Management Server installer under the domain user which is used for
communication between YSoft SafeQ installer and databases. Alternatively, you can run Server
installer under the domain user. On installation settings screen check I want to customize my
YSoft SafeQ Management Server installation and click Next.
4. Check Use Windows Authentication (instead of SQL) checkbox and fill in Domain textbox. Fill in
connection details for user. Use users and password registered in SQL Server.
5. Enter the YSoft SafeQ database name. When using the domain authentication, the database
must exist and be properly configured according to this manual.
2.6 WHEN USING EXTERNAL DATABASE FOR DATA WAREHOUSE ON THE SAME
SERVER
After YSoft SafeQ Management Server installation finishes, open SQL Server Management
Studio and connect to the Database Engine as System Administrator (user sa) and run the
following queries:
Do not forget to change the database name in the queries above. The queries have the
default data warehouse database name in them (i.e. SQDB6_DWH), change it to the
correct YSoft SafeQ data warehouse database name you have chosen for your
deployment.
Domain user used to connect to the database cannot have sysadmin rights and cannot be the
owner of the Management Server (SQDB6) database. Check effective rights of the domain user. It
may inherit sysadmin rights from assigned groups. Check the database properties and verify that
the Owner is not set to the used domain user.
You should check domain user effective rights by database query: "SELECT user_name()". If the
result will be domain name of the user and not "dbo", current effective rights are configured well.
Usually you need to remove "sysadmin" role from "NT AUTHORITY\Authenticated Users" group.
Make sure that the there is a correct database owner for both main database (e.g. SQDB6) and
data warehouse database (in case an external database for data warehouse is used, e.g.
SQDB6_DWH). It must be a domain user from the same domain as the domain user used to
connect to the database from YSoft SafeQ, but the user itself must be different (see warning at
the beginning of the Configure SQL Server and create domain user section).
In the case that the error persist even after above mentioned solution, change the database
owner of the data warehouse database to System Administrator (user sa).
1. Open SQL Server Management Studio and connect to the Database Engine.
2. Expand Databases, find the database you want to check, right-click the database and select
Properties
3.3 REPORTS IN THE MANAGEMENT INTERFACE ARE NOT WORKING AND THERE
IS A "THE SERVER PRINCIPAL IS NOT ABLE TO ACCESS THE DATABASE"
ERROR IN THE LOG FILE
Make sure you have run the queries mentioned in section "When using external database for data
warehouse on the same server" after the Management Server installation finished.
The
server principal "S-1-9-3-3170424900-1339531482-4223392158-4021304381"
is not able to access the database "SQDB6" under the current security
context.
Domain user does not have the Log on as a service right. Open Local Security Policy editor,
double-click Local Policies, User Rights Assignment, select Log on as a service and add the
domain user.
Check if the YSoft SafeQ database (e.g. SQDB6) and the database server have enabled the
Contained mode. Check if the Always On Availability Group Server was enabled during installation.