Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article describes the setup of a UMS database using a Microsoft SQL server, the configuration of the database login, and the connection of the IGEL Universal Management Suite (UMS) to the database using Active Directory (AD) authentication via Kerberos.

Note

Using Microsoft Active Directory (AD) to connect your UMS to a Microsoft SQL server requires a deep understanding of your environment. For most environments, it is recommended to use native SQL authentication.

...

Prerequisites

For connecting the UMS Server to your UMS database with Microsoft Active Directory (AD) Kerberos authentication, the following components must be available:

  • A Windows domain server

  • The Microsoft SQL server on which the UMS database is running is located in the Windows domain

  • The UMS Server and the UMS Administrator have access to the Windows domain

  • The SQL service account has local administration rights to the UMS Server

Creating a Kerberos Configuration File

The Kerberos configuration file contains the data the system needs to access the domain information. 

To learn how a Kerberos configuration file looks, see the following example:

Code Block
[libdefaults]
default_realm = HEX.LOCAL
ticket_lifetime = 24h
[realms]
HEX.LOCAL = { kdc = 111.111.111.111 default_domain = HEX.LOCAL } 
[domain_realm] 
.hex.local = HEX.LOCAL 
[appdefaults]

For a detailed description of the content,

...

see https://web.mit.edu/kerberos/krb5-1.12/doc/admin/conf_files/krb5_conf.html.

Info

The domain does not have to be identical to the domain where the UMS is installed.

Saving the Kerberos Configuration File

...

→ Save the Kerberos configuration file in the

...

directory <UMS installation directory>/rmguiserver/conf

...

 with the

...

name krb5.conf

Creating the UMS Database
Anchor
CreatingtheUMSDatabase
CreatingtheUMSDatabase

It is recommended to create a separate database with a specific schema for the UMS.

title
Note

Configuration Hints

The UMS Server application runs several services in parallel to provide the required functionality. These services establish separate connections to the database. The database must therefore allow a certain number of connections. The expected maximum number of connections is 128 * [number of UMS Servers].

Please make sure that your database can handle these connections.

Using the SQL Management Console

...

→ In the SQL Management Console,

...

select New Query

...

 and enter the script below; replace the placeholders accordingly.

Note

Do NOT use the schema schema dbo for  for the UMS database tables!

  • <database_name>: The name for the UMS database

  • <schema_name>: The name of the schema for the UMS database

    Code Block
    USE [master]
    GO
    CREATE DATABASE [<database_name>];
    GO
    USE [<database_name>];
    GO
    CREATE SCHEMA [<schema_name>];
    GO

Using the GUI

  1. In SQL Server Management Studio, right-

...

  1. click Databases and select New Database.

...

  1. Under General, give the database a name.

  2. Optionally set additional parameters according to your company requirements.

...

  1. Image Added

Adding Users and a Group to the Windows Domain

...

→  Make sure that your Windows domain contains users who have the following permissions:

  • Log in to the database server

  • Log in to the database that is connected to the UMS

  • Log in to the server with the UMS components

Info

It is recommended to create a group in the Windos domain that will contain the users for the database and put the users for the UMS into this group. This group will become the owner of the UMS database, allowing all users in the group to work with the database.

Adding the User or Group to SQL

Info

Note: If the AD user you are going to use to connect to the Microsoft SQL Server already has an SQL login entry, or is in a group with login access, you can skip this step and continue with with Configuring the UMS User, Schema, and Database Permissions.

Using the SQL Management Console

  1. In SQL Server Management Studio,

...

  1. select New Query.

  2. Use the following script to create the database login;

...

  1. replace <ad_user>

...

  1.  with the AD user you want to use for connecting.

    Code Block
    USE [master]
    GO
    CREATE LOGIN [[<ad_user>]] FROM WINDOWS;
    GO

Using the SQL Server Management Studio (GUI Mode)

  1. Connect to the database with the SQL Server Management Studio.

  2. Open

...

  1. the Security

...

  1.  branch, right-click

...

  1. on Logins and select New Login.

...

  1. Choose Windows Authentication

...

  1.  for the login, and click Search.

  2. Click Object Types…,

...

  1.  select Groups and Users, and

...

  1. click OK.

...

  1. Image Added

...

  1. Click Locations..., to choose the location wherein your user or group

...

  1. is residing, and

...

  1. click OK.

...

  1. Image Added

  2. Enter the name of the group or user, click Check Names, select the name of your user or group,

...

  1. and click OK.

...

  1. Image Added


     If you have selected a group, all

...

  1. users in this group will be able to access the databases where this group is defined as the database owner. Also, if you selected a group, you should add at least one user who will become the main database owner.

Configuring the UMS User, Schema, and Database Permissions
Anchor
ADKerberosAuthUserSchemaDBPermissions
ADKerberosAuthUserSchemaDBPermissions

Using the SQL Management Console

...

→ In the SQL Management Console,

...

select New Query

...

 and enter the script below; please note the following.

  • <ums_user>: The local alias in the

...

  • database <database_name>

...

  •  of the real

...

  • user <ad_user>

  • According to the Microsoft SQL Server documentation,

...

  • the <ums_user>

...

  •  must be db_owner

...

  •  to create and alter tables.

Code Block
USE [<database_name>]
GO
CREATE USER [<ums_user>] FOR LOGIN [<ad_user];
GO
ALTER ROLE [db_owner] ADD MEMBER [<ums_user>];
GO
ALTER USER [<ums_user>] WITH DEFAULT_SCHEMA = [<schema_name>];
GO
ALTER AUTHORIZATION ON SCHEMA::[<schema_name>] TO [<ums_user>]
GO

Using the GUI

  1. In SQL Server Management Studio, open the database that was created in

...

  1.  Creating the UMS Database.

...

  1. Under Security > Users, right-

...

  1. click New User.

...

  1. Under General, search for your login name (<ad_user>) and give the user a name.

...

  1. Image Added

  2. In

...

  1. the Membership

...

  1.  area, give the user

...

  1. the db_owner

...

  1.  role.

...

  1. Image Added

  2. Go

...

  1. to Security > Schemas and right-click

...

  1. on New Schema.

  2. Search for the <ums_user> as

...

  1. the Schema owner

...

  1.  and provide

...

  1. Schema name.

...

  1. Image Added

...

  1. Under Security > Users

...

  1.  in your UMS database, double-click on the <ums_user>.

...

  1. Under General, set the default schema to <schema_name>.

...

  1. Image Added

...

  1. Under Security > Logins > Users, double-click on the <ad_user>.

  2. In

...

  1. the User Mapping

...

  1.  area, check the mapping of the UMS database, the user, and the default schema.

...

  1. Image Added

Configuring the UMS Services

  1. Log into the UMS Server with the credentials configured for connecting to the UMS database on the Microsoft SQL Server.

...

  1. Open services.msc

...

  1.  and right-click

...

  1. the IGEL Remote Manager Server

...

  1.  service.

...

  1. Select Properties

...

  1.  and navigate to

...

  1. the Log On

...

  1.  tab.

...

  1. Select This Account

...

  1.  and use

...

  1. the Browse

...

  1.  button to find the one that owns the SQL database.

...

  1. Image Added

  2. Depending on whether you are using a single server or a cluster for your Microsoft SQL database, continue

...

  1. with Connecting the UMS to the Database (Single Server Instance)

...

  1.  or Connecting the UMS to the Database (Cluster)

Connecting the UMS to the Database (Single Instance)
Anchor
ADNativeAuthConnectSingle
ADNativeAuthConnectSingle

  1. Set up a

...

  1. new SQL Server AD Kerberos

...

  1.  type data source.

...

  1. Image Added

...

  1. Image Added

  2. Edit the data as follows:

    • Host: The Fully Qualified Host Name (FQDN) of the Microsoft SQL server. If you deploy MS SQL Server Always On Availability Groups, enter the domain name of the Always On Availability Group listener.

    • Domain: The domain in which the <ad_user> is residing

    • Port: The port on which the Microsoft SQL Server listens for requests. (Default: 1433)

    • User: The <ad_user>; format: <domain_name>\<ad_user>

    • Schema: The database schema

    • Database / SID: The database name 

    • JDBC Parameter (double-click): 

      • sendStringParametersAsUnicode: false

      • trustServerCertificate: true

        Image Modified

...

      • Image Added

  1. Select your database configuration and

...

  1. click Activate.

...

  1. Image Added

  2. Enter the username and the password for the connection.

...

  1. Image Added

Connecting the UMS to the Database (Cluster)
Anchor
ADNativeAuthConnectCluster
ADNativeAuthConnectCluster

  1. In

...

  1. the UMS Administrator, set up a

...

  1. new SQL Server Cluster AD Kerberos

...

  1.  type data source.

...

  1. Image Added

...

  1. Image Added

  2. Edit the data as follows:

    • Host: The Fully Qualified Host Name (FQDN) of the Microsoft SQL server

    • Port: The port on which the Microsoft SQL Server listens for requests. (Default: 1433)

    • Schema: The database schema

    • Database / SID: The database name

    • Instance:  The instance for your Microsoft SQL Server Cluster 

    • JDBC Parameter (double-click): 

      • sendStringParametersAsUnicode: false

      • trustServerCertificate: true

        Image Modified

...

      • Image Added

  1. Select your database configuration and

...

  1. click Activate.

...

  1. Image Added

  2. Enter the username and the password for the connection.

...

  1. Image Added