Solutions
Archived

Not a supported type: realm error with ssoadm in OpenAM 11.0.0, 11.0.1, 11.0.2 and 12.0.0

Last updated Jan 5, 2021

The purpose of this article is to provide assistance if you receive a "Not a supported type: realm" error when using ssoadm in OpenAM 11.0.0, 11.0.1, 11.0.2 and 12.0.0. This error is seen when using one of the following ssoadm commands to change realm settings: get-realm-svc-attrs, set-realm-svc-attrs, add-svc-attrs or set-svc-attrs.


1 reader recommends this article

Archived

This article has been archived and is no longer maintained by ForgeRock.

Symptoms

An error similar to the following is given in response to the ssoadm command when the -v (verbose) option is used:

Process Request ... Constructing Request Context... Validating mandatory options... Processing Sub Command ... Executing class, com.sun.identity.cli.realm.RealmSetServiceAttributeValues. Authenticating... Authenticated. com.sun.identity.cli.CLIException: Not a supported type: realm. at com.sun.identity.cli.realm.RealmSetServiceAttributeValues.handleRequest(RealmSetServiceAttributeValues.java:106) at com.sun.identity.cli.SubCommand.execute(SubCommand.java:291) at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:212) at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:134) at com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:573) at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:171) at com.sun.identity.cli.CommandManager.main(CommandManager.java:148) Not a supported type: realm.

Attempting to change the Realm specific settings can be set successfully using the OpenAM admin console. 

Recent Changes

Exported / imported service configurations using export-svc-cfg and import-svc-cfg ssoadm commands, and restarted the web application container in which OpenAM runs.

Causes

The Realm configuration object is incorrectly lost when the server is restarted following the export / import process, which causes the realm related sub-commands to fail.

Solution

This issue can be resolved by upgrading to OpenAM 11.0.3, or OpenAM 12.0.1 or later; you can download this from BackStage.

Alternatively, you can work around the lost Realm configuration object using the following ssoadm command:

$ ./ssoadm create-sub-cfg -u [adminID] -f [passwordfile] -s sunIdentityRepositoryService -g realm -b SupportedIdentities -D attrs.txt

replacing [adminID] and [passwordfile] with appropriate values. The attrs.txt file should be empty because the Realm object does not contain any attributes by default.

See Also

OpenAM Reference › OpenAM Command Line Tools › ssoadm

Related Training

N/A

Related Issue Tracker IDs

OPENAM-2348 (set-realm-svc-attrs: "Not a supported type: realm")


Copyright and Trademarks Copyright © 2021 ForgeRock, all rights reserved.