Portal Installation
Table of contents
Installation
Version: 4.2 or above
Prerequisites
- MIM Service and Portal (2016 R2 or later)
- .Net Core 3.1 Hosting Bundle
- IIS Rewrite Module (install through Web Platform Installer)
- Lithnet PowerShell Module
- .Net Framework 4.8 (if not yet installed with windows update)
- MIMWAL Workflow (for backup workflow)
Schema Extension
Add the following attributes and bindings in MIM Portal.
Alternatively you can import the OCG Schema file (MIM2016R2SP1_SchemaOnly_ChangeSet_V2.xml), which already includes the schema extension.
Attribute Name | System Name | Type | Multivalued | Bind to |
---|---|---|---|---|
OCG Configuration XML | ocgConfigurationXML | Unindexed string | No | Person, Set |
OCG Admin View Sets | ocgAdminViewSetRefs | Reference | Yes | Person |
OCG Primary View Set | ocgPrimaryViewSetRef | Reference | No | Person |
OCG Object Type | ocgObjectType | Indexed string | No | Set |
OCG Object Scope | ocgObjectScope | Indexed string | No | Set |
OCG Object Status | ocgObjectStatus | Indexed string | No | Set |
OCG Object Source | ocgObjectSource | Indexed string | No | Set |
OCG Is Active | ocgIsActive | Boolean | No | Set |
Administrators Set should have full access to OCG extension types and attributes. Additionally, ocgObjectType, ocgObjectStatus, ocgObjectScope and ocgObjectSource should be added to filter permissions
Make sure to run iisreset after extending schema
Sets and MPRs
Add the following Sets and MPRs in MIM Portal
Alternatively you can import the OCG Sets and MPRs file (MIM2016R2SP2_UISetsMPRs_ChangeSet.xml), which already includes the Sets and MPRs.
Sets
- OCG UI: All UI Sets
- UI - Standard View
Input “uibase” in the “OCG Object Type” attribute Copy the content of “ui-config-example.json” from the installation package in the the “OCG Configuration XML” attribute
If you get a 10000 character limitation error, you can use the “importUISettings.ps1” to import the “ui-config-example.json” file
MPRs
- OCG UI: Users can control UI attributes of their own
- OCG UI: Users can control UI Sets of their own
- OCG UI: Users can read UI Sets
- OCG UI: Users can read selected attributes of Sets, where they are a member of
Backup Workflow for UI settings
Refer to Sets based UI Settings to learn how UI setting works. This section only shows how to deploy workflows to backup different UI settings
Get MIMWAL version and token
Go to MIM Portal -> Administration -> All Resources -> Activity Information Configuration (AIC), open any MIMWAL AIC (display name starts with “WAL:”) and write down the version number and the token displayed in the “Assembly Name” field.
Get Micrsoft.ResourceManagement Version
Navigate to C:\Windows\Assembly and find the version number to the Microsoft.ResourceManagement library
Import Backup Workflow
Open the file “UISettingBackup_ChangeSet.xml” from the installation package and replace !mimWalVersion!, !token! and !resourceManagementVersion! with the real data from the above steps. Import this file into MIM Portal, you should get 4 new objects:
- OCG UI: Create ocgConfiguration Object for UISettingBackup This is the Workflow for the backup process
- OCG UI: Create ocgConfiguration Object for UISettingBackup on ocgConfigurationXML change This is the MPR for the backup process
- OCG UI: Backup Setting - Backup per Day This is a configuration object of type ocgConfiguration, defines how many backups should be made for each UI Set every day. Default is 5
- OCG UI: Backup Setting - Days to Backup This is a configuration object of type ocgConfiguration, defines how long the backups should be held in MIM Portal before they are expired and deleted. Default is 30
After importing the backup workflow, a backup object of type ocgConfiguration will be created every time UI Setting is changed. The display name of the backup object has the format
“UI Setting Backup -- "
Publish OCG Data Service and OCG UI
- Copy the OCGUI folder from the installation package to C:\inetpub
- Add a website “OCGUI” in IIS with 8088 as port number, “C:\inetpub\OCGUI” as physical path and “.Net v4.5” as application pool
- Convert “service” to application
- Enable “Anonymous Authentication” and “Windows Authentication” for “OCGUI” website
- Enable “Anonymous Authentication” and “Windows Authentication” for “service” application
- Exclude */service from the URL of OCGUI using URL Rewrite
In real production environment you may need additional settings in IIS like Host Name; Application Pool with Service Account, which has SPN registered; Negotiate only Authentication, etc.