Migrate user mappings
User mappings in CDP connectors have been modified to enhance the security. When a connector is upgraded, the user mapping is automatically updated (migrated to new columns).
If a user mapping is added or updated on CipherTrust Manager (CM) 2.15 or lower, then to make that user mapping compatible with that CipherTrust Manager, run the pdbctl utility command migrateusermap
.
Note
When running the migrateusermap
command, if "Nothing to migrate" message is displayed, it means the user mapping is up-to-date and no action is required.
Steps
Navigate to the pdbctl utility directory.
To migrate user mapping, run the following command:
./pdbctl migrateusermap -a <databaseuseralias>
Flag Description
The following table describes the flags associated with this command:
Flag | Data Type | Description |
---|---|---|
-a | string | Database alias for which user mapping is to be migrated. |
-h | Flag to view help for the migrateusermap command. | |
-- verbose | Print verbose logs. |
Sample Command
Below sample command updates the user mapping:
./pdbctl migrateusermap -a demo
Output:
When this command is executed successfully, the system does not print anything and a success message is returned.
If for any user the migration fails, it will return an error message.
If the user mapping is already up to date, it will return "Nothing to migrate" message.