When you set the Enable Integrated Security Property for the first time in a knowledge base, the following happens:
External objects are used to access the GAM API and are consolidated in the GAM_Library folder.
GAM Examples are consolidated in the GAM_Examples folder depending on the options selected during the GAM Activation Process.
This datastore is called "GAM" and is created following these criteria:
If the Reorg Datastore is a SQLserver datastore, the default values for "GAM" datastore are as follows:
- Database Name is the same as the Database Name of the Reorganization datastore.
- Database Schema: This property is set to "gam" by default.
The GAM repository will be located by default in the same database as the default database; however, the schema will be another one named "gam".
If the Reorganization Datastore is MySQL, the default value for "GAM" datastore is as follows:
- Database Name: by default it is set to <Default datastore database name>_gam.
The GAM repository will be under a different database by default.
In an Oracle database, GeneXus does not set any default value for the Database Name; this value must be set by the user.
After pressing F5, a connection is established to the database specified in GAM datastore (using the connection properties of this datastore: database name, user ID, user password), checking for the existence of some tables and GAM version.
Given that these tables don't exist, the GAM database tables are created. So, the following happens:
- The GAM database and all its tables are created. Before the tables are created, the user is asked if he/she wants to create the GAM database structure.
Tables are populated with metadata.
The GAM Manager Repository and the working Repository are created.
Also, the administrator user and the connection user are created. The default GAM Security Policy is created, as well as the default AuthenticationType: GAM Local Authentication Type. The default GAM Roles are created.
The GAM Backend Application is created. It's populated with some permissions to allow building the Menu of the GAM Web Backoffice.
An Application is created for the Web model, and one Application is generated for each Main SD object.
Also, GAM Permissions are generated (if Integrated Security Level property = Authorization).