IPrimaryPostgresSPLD.UseUPN

Syntax

UseUPN: Boolean;

Description

The UseUPN property determines whether domain name is added to user name during domain or integrated domain authentication.

Comments

Available values:

When setting up security unit parameters of databases, one can change the UseUPN property if redefinition of connection settings is enabled: IDatabase.UseMetabaseLogonData = False.

Example

Executing the example requires that the repository contains a database with the PG_DOMAIN_TEST identifier.

Add links to the Db and Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    DB: IDatabase;
    LogonData: IPrimaryPostgresSPLD;
Begin
    MB := MetabaseClass.Active;
    DB := MB.ItemById("PG_DOMAIN_TEST").Edit As IDatabase;
    // Redefine connection settings
    DB.UseMetabaseLogonData := False;
    DB.DriverId := "POSTGRES";
    // Enable domain integrated authentication for database
    DB.Authentication := AuthenticationMode.Domain;
    // Security module settings
    LogonData := DB.LogonData As IPrimaryPostgresSPLD;
    LogonData.Database := "Repository";
    LogonData.Server := "PGServer";
    // Send user name with domain
    LogonData.UseUPN := True;
    // Save changes
    (DB As IMetabaseObject).Save;
End Sub UserProc;

After executing the example, connection settings of the specified database are redefined. The integrated domain authentication is enabled, the server and repository, to which connection is established, are set, user names are sent with domain.

See also:

IPrimaryPostgresSPLD