IBM Support

Use the "\20" character sequence for spaces in wsadmin commands

Troubleshooting


Problem

If you enter a user ID or password with spaces in the catalog service domain wsadmin commands, insert the "\20" character sequence for the spaces.

Symptom

If you do not use the character sequence for the user ID and password, the input values are parsed incorrectly. For example, the resulting user name for the entry "Test user" might be "Test."

Resolving The Problem

When you enter the values with the wsadmin tool, use \20 in place of spaces. For example: Test\20User

$AdminTask createXSDomain {-name TestDomain -default true -defineDomainServers 
{{host1.mycompany.com "" ,2809}} -configureClientSecurity {-securityEnabled false 
-credentialAuthentication Required -authenticationRetryCount 0 
-credentialGeneratorClass com.ibm.websphere.objectgrid.security.plugins.builtins.UserPasswordCredentialGenerator 
-credentialGeneratorProps "Test\20User Test\20User\20Pwd"}}
 

In the WebSphere Application Server administrative console, the escape characters are not required. Enter spaces as spaces. For example: Test User.

[{"Product":{"code":"SSS8GR","label":"WebSphere DataPower XC10 Appliance"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"2.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSTVLU","label":"WebSphere eXtreme Scale"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"","label":"i5\/OS"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"8.6.0.2","Edition":"Edition independent","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
22 June 2018

UID

swg21640347