-
Notifications
You must be signed in to change notification settings - Fork 138
PKI TPS Profile Mapping CLI
Endi S. Dewata edited this page Jan 20, 2022
·
2 revisions
$ pki -n caadmin tps-profile-mapping-find ----------------- 3 entries matched ----------------- Profile Mapping ID: enrollProfileMappingResolver Status: Enabled Profile Mapping ID: formatProfileMappingResolver Status: Enabled Profile Mapping ID: pinResetProfileMappingResolver Status: Enabled ---------------------------- Number of entries returned 3 ----------------------------
To display profile mapping configuration:
$ pki -n caadmin tps-profile-mapping-show formatProfileMappingResolver --------------------------------------------- ProfileMapping "formatProfileMappingResolver" --------------------------------------------- Profile Mapping ID: formatProfileMappingResolver Status: Enabled Properties: mappingResolver.formatProfileMappingResolver.mapping.0.filter.appletMajorVersion: mappingResolver.formatProfileMappingResolver.mapping.0.filter.appletMinorVersion: mappingResolver.formatProfileMappingResolver.mapping.0.filter.tokenATR: mappingResolver.formatProfileMappingResolver.mapping.0.filter.tokenCUID.end: mappingResolver.formatProfileMappingResolver.mapping.0.filter.tokenCUID.start: mappingResolver.formatProfileMappingResolver.mapping.0.filter.tokenType: soCleanUserToken mappingResolver.formatProfileMappingResolver.mapping.0.target.tokenType: soCleanUserToken mappingResolver.formatProfileMappingResolver.mapping.1.filter.appletMajorVersion: mappingResolver.formatProfileMappingResolver.mapping.1.filter.appletMinorVersion: mappingResolver.formatProfileMappingResolver.mapping.1.filter.tokenATR: mappingResolver.formatProfileMappingResolver.mapping.1.filter.tokenCUID.end: mappingResolver.formatProfileMappingResolver.mapping.1.filter.tokenCUID.start: mappingResolver.formatProfileMappingResolver.mapping.1.filter.tokenType: soUserKey mappingResolver.formatProfileMappingResolver.mapping.1.target.tokenType: soUserKey mappingResolver.formatProfileMappingResolver.mapping.2.filter.appletMajorVersion: mappingResolver.formatProfileMappingResolver.mapping.2.filter.appletMinorVersion: mappingResolver.formatProfileMappingResolver.mapping.2.filter.tokenATR: mappingResolver.formatProfileMappingResolver.mapping.2.filter.tokenCUID.end: mappingResolver.formatProfileMappingResolver.mapping.2.filter.tokenCUID.start: mappingResolver.formatProfileMappingResolver.mapping.2.filter.tokenType: soKey mappingResolver.formatProfileMappingResolver.mapping.2.target.tokenType: soKey mappingResolver.formatProfileMappingResolver.mapping.3.filter.appletMajorVersion: mappingResolver.formatProfileMappingResolver.mapping.3.filter.appletMinorVersion: mappingResolver.formatProfileMappingResolver.mapping.3.filter.tokenATR: mappingResolver.formatProfileMappingResolver.mapping.3.filter.tokenCUID.end: mappingResolver.formatProfileMappingResolver.mapping.3.filter.tokenCUID.start: mappingResolver.formatProfileMappingResolver.mapping.3.filter.tokenType: userKey mappingResolver.formatProfileMappingResolver.mapping.3.target.tokenType: userKey mappingResolver.formatProfileMappingResolver.mapping.4.filter.appletMajorVersion: mappingResolver.formatProfileMappingResolver.mapping.4.filter.appletMinorVersion: mappingResolver.formatProfileMappingResolver.mapping.4.filter.tokenATR: mappingResolver.formatProfileMappingResolver.mapping.4.filter.tokenCUID.end: mappingResolver.formatProfileMappingResolver.mapping.4.filter.tokenCUID.start: mappingResolver.formatProfileMappingResolver.mapping.4.filter.tokenType: soCleanSOToken mappingResolver.formatProfileMappingResolver.mapping.4.target.tokenType: soCleanSOToken mappingResolver.formatProfileMappingResolver.mapping.5.filter.appletMajorVersion: mappingResolver.formatProfileMappingResolver.mapping.5.filter.appletMinorVersion: mappingResolver.formatProfileMappingResolver.mapping.5.filter.tokenATR: mappingResolver.formatProfileMappingResolver.mapping.5.filter.tokenCUID.end: mappingResolver.formatProfileMappingResolver.mapping.5.filter.tokenCUID.start: mappingResolver.formatProfileMappingResolver.mapping.5.filter.tokenType: cleanToken mappingResolver.formatProfileMappingResolver.mapping.5.target.tokenType: cleanToken mappingResolver.formatProfileMappingResolver.mapping.6.filter.appletMajorVersion: mappingResolver.formatProfileMappingResolver.mapping.6.filter.appletMinorVersion: mappingResolver.formatProfileMappingResolver.mapping.6.filter.tokenATR: mappingResolver.formatProfileMappingResolver.mapping.6.filter.tokenCUID.end: mappingResolver.formatProfileMappingResolver.mapping.6.filter.tokenCUID.start: mappingResolver.formatProfileMappingResolver.mapping.6.target.tokenType: tokenKey mappingResolver.formatProfileMappingResolver.mapping.order: 0,1,2,3,4,5,6
To download profile mapping configuration into a file:
$ pki -n caadmin tps-profile-mapping-show formatProfileMappingResolver --output formatProfileMappingResolver.xml ------------------------------------------------------------------------------------------- Stored profile mapping "formatProfileMappingResolver" into formatProfileMappingResolver.xml -------------------------------------------------------------------------------------------
The configuration will be stored in XML format:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ProfileMapping id="formatProfileMappingResolver" xmlns:ns2="http://www.w3.org/2005/Atom"> <Link href="https://pki.example.com:8443/tps/rest/profile-mappings/formatProfileMappingResolver" rel="self"/> <Properties> <Property name="mappingResolver.formatProfileMappingResolver.mapping.0.filter.appletMajorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.0.filter.appletMinorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.0.filter.tokenATR"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.0.filter.tokenCUID.end"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.0.filter.tokenCUID.start"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.0.filter.tokenType">soCleanUserToken</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.0.target.tokenType">soCleanUserToken</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.1.filter.appletMajorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.1.filter.appletMinorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.1.filter.tokenATR"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.1.filter.tokenCUID.end"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.1.filter.tokenCUID.start"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.1.filter.tokenType">soUserKey</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.1.target.tokenType">soUserKey</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.2.filter.appletMajorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.2.filter.appletMinorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.2.filter.tokenATR"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.2.filter.tokenCUID.end"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.2.filter.tokenCUID.start"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.2.filter.tokenType">soKey</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.2.target.tokenType">soKey</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.3.filter.appletMajorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.3.filter.appletMinorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.3.filter.tokenATR"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.3.filter.tokenCUID.end"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.3.filter.tokenCUID.start"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.3.filter.tokenType">userKey</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.3.target.tokenType">userKey</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.4.filter.appletMajorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.4.filter.appletMinorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.4.filter.tokenATR"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.4.filter.tokenCUID.end"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.4.filter.tokenCUID.start"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.4.filter.tokenType">soCleanSOToken</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.4.target.tokenType">soCleanSOToken</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.5.filter.appletMajorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.5.filter.appletMinorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.5.filter.tokenATR"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.5.filter.tokenCUID.end"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.5.filter.tokenCUID.start"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.5.filter.tokenType">cleanToken</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.5.target.tokenType">cleanToken</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.6.filter.appletMajorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.6.filter.appletMinorVersion"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.6.filter.tokenATR"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.6.filter.tokenCUID.end"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.6.filter.tokenCUID.start"></Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.6.target.tokenType">tokenKey</Property> <Property name="mappingResolver.formatProfileMappingResolver.mapping.order">0,1,2,3,4,5,6</Property> </Properties> <Status>Enabled</Status> </ProfileMapping>
To add a new profile mapping, download an existing profile mapping configuration into a file, change the profile mapping ID and make the necessary changes:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ProfileMapping id="test" xmlns:ns2="http://www.w3.org/2005/Atom"> <Link href="https://pki.example.com:8443/tps/rest/profile-mappings/test" rel="self"/> <Properties> <Property name="mappingResolver.test.mapping.0.filter.appletMajorVersion"></Property> <Property name="mappingResolver.test.mapping.0.filter.appletMinorVersion"></Property> <Property name="mappingResolver.test.mapping.0.filter.tokenATR"></Property> <Property name="mappingResolver.test.mapping.0.filter.tokenCUID.end"></Property> <Property name="mappingResolver.test.mapping.0.filter.tokenCUID.start"></Property> <Property name="mappingResolver.test.mapping.0.filter.tokenType">soCleanUserToken</Property> <Property name="mappingResolver.test.mapping.0.target.tokenType">soCleanUserToken</Property> <Property name="mappingResolver.test.mapping.1.filter.appletMajorVersion"></Property> <Property name="mappingResolver.test.mapping.1.filter.appletMinorVersion"></Property> <Property name="mappingResolver.test.mapping.1.filter.tokenATR"></Property> <Property name="mappingResolver.test.mapping.1.filter.tokenCUID.end"></Property> <Property name="mappingResolver.test.mapping.1.filter.tokenCUID.start"></Property> <Property name="mappingResolver.test.mapping.1.filter.tokenType">soUserKey</Property> <Property name="mappingResolver.test.mapping.1.target.tokenType">soUserKey</Property> <Property name="mappingResolver.test.mapping.2.filter.appletMajorVersion"></Property> <Property name="mappingResolver.test.mapping.2.filter.appletMinorVersion"></Property> <Property name="mappingResolver.test.mapping.2.filter.tokenATR"></Property> <Property name="mappingResolver.test.mapping.2.filter.tokenCUID.end"></Property> <Property name="mappingResolver.test.mapping.2.filter.tokenCUID.start"></Property> <Property name="mappingResolver.test.mapping.2.filter.tokenType">soKey</Property> <Property name="mappingResolver.test.mapping.2.target.tokenType">soKey</Property> <Property name="mappingResolver.test.mapping.3.filter.appletMajorVersion"></Property> <Property name="mappingResolver.test.mapping.3.filter.appletMinorVersion"></Property> <Property name="mappingResolver.test.mapping.3.filter.tokenATR"></Property> <Property name="mappingResolver.test.mapping.3.filter.tokenCUID.end"></Property> <Property name="mappingResolver.test.mapping.3.filter.tokenCUID.start"></Property> <Property name="mappingResolver.test.mapping.3.filter.tokenType">userKey</Property> <Property name="mappingResolver.test.mapping.3.target.tokenType">userKey</Property> <Property name="mappingResolver.test.mapping.4.filter.appletMajorVersion"></Property> <Property name="mappingResolver.test.mapping.4.filter.appletMinorVersion"></Property> <Property name="mappingResolver.test.mapping.4.filter.tokenATR"></Property> <Property name="mappingResolver.test.mapping.4.filter.tokenCUID.end"></Property> <Property name="mappingResolver.test.mapping.4.filter.tokenCUID.start"></Property> <Property name="mappingResolver.test.mapping.4.filter.tokenType">soCleanSOToken</Property> <Property name="mappingResolver.test.mapping.4.target.tokenType">soCleanSOToken</Property> <Property name="mappingResolver.test.mapping.5.filter.appletMajorVersion"></Property> <Property name="mappingResolver.test.mapping.5.filter.appletMinorVersion"></Property> <Property name="mappingResolver.test.mapping.5.filter.tokenATR"></Property> <Property name="mappingResolver.test.mapping.5.filter.tokenCUID.end"></Property> <Property name="mappingResolver.test.mapping.5.filter.tokenCUID.start"></Property> <Property name="mappingResolver.test.mapping.5.filter.tokenType">cleanToken</Property> <Property name="mappingResolver.test.mapping.5.target.tokenType">cleanToken</Property> <Property name="mappingResolver.test.mapping.6.filter.appletMajorVersion"></Property> <Property name="mappingResolver.test.mapping.6.filter.appletMinorVersion"></Property> <Property name="mappingResolver.test.mapping.6.filter.tokenATR"></Property> <Property name="mappingResolver.test.mapping.6.filter.tokenCUID.end"></Property> <Property name="mappingResolver.test.mapping.6.filter.tokenCUID.start"></Property> <Property name="mappingResolver.test.mapping.6.target.tokenType">tokenKey</Property> <Property name="mappingResolver.test.mapping.order">0,1,2,3,4,5,6</Property> </Properties> <Status>Enabled</Status> </ProfileMapping>
Then add the new profile mapping:
$ pki -n caadmin tps-profile-mapping-add --input test.xml ---------------------------- Added profile mapping "test" ----------------------------
$ pki -n caadmin tps-profile-mapping-mod test --action enable
$ pki -n caadmin tps-profile-mapping-mod test --action disable
To update profile mapping configuration, make sure the profile mapping is disabled. Download the current profile mapping configuration into a file using tps-profile-mapping-show command, make the changes, then upload the updated configuration:
$ pki -n caadmin tps-profile-mapping-mod test --input test.xml
Finally, re-enable the profile mapping configuration.
To delete a profile mapping, make sure it is disabled, then execute the following command:
$ pki -n caadmin tps-profile-mapping-del test ------------------------------ Deleted profile mapping "test" ------------------------------
Tip
|
To find a page in the Wiki, enter the keywords in search field, press Enter, then click Wikis. |