WAS v8.5 > Secure applications > Set up security > Enable security

Add a new custom property in a global security configuration or in a security domain configuration

Custom properties are arbitrary name-value pairs of data, where the name is a property key and the value is a string value that can be used to set internal system configuration properties. Defining a new property enables you to configure settings beyond those available in the dmgr console. We can add new security custom properties in a security configuration or in a security domain configuration. Add a new custom property in a global security configuration

  1. Click Security > Global security > Custom properties.

  2. Click New,

  3. Enter the property key name in the Name field.

    Each property key name must be unique. If the same name is used for multiple properties, the value specified for the first property is used.

    Do not start your property names with was, because this prefix is reserved for properties that are predefined in the application server.

  4. Enter the property value in the Value field.

  5. Click Apply or Save.

We can also use the -customProperties flag in the setAdminActiveSecuritySettings wsadmin command to add a new custom property in a global security configuration. See the SecurityConfigurationCommands command group for AdminTask article for more information about this command. For example:

wsadmin>AdminTask.setAdminActiveSecuritySettings('[-customProperties
["com.ibm.websphere.security.test=false"]]')


Add a new custom property in a security domain configuration

  1. Click Security > Security domains.

  2. Select the global security domain to add a new custom property to.

  3. Click Custom properties.

  4. Click New.

  5. Enter the property key name in the Name field.

    Each property key name must be unique. If the same name is used for multiple properties, the value specified for the first property is used.

    Do not start your property names with was, because this prefix is reserved for properties that are predefined in the application server.

  6. Enter the property value in the Value field

  7. Click Apply or Save.

We can also use the -customProperties flag in the setAppActiveSecuritySettings wsadmin command to add a new custom property in a global security domain configuration. See the SecurityConfigurationCommands command group for AdminTask article for more information about this command. Use the -securityDomainName flag to specify the security domain where the custom property is located. For example:

wsadmin>AdminTask.setAppActiveSecuritySettings('[ -securityDomainName testDomain 
-customProperties ["com.ibm.websphere.security.test=false"]]')


Related


Modify an existing custom property in a global security configuration or in a security domain configuration
Delete an existing custom property in a global security configuration or in a security domain configuration


Reference:

Security custom properties
Security custom property page
AdminTask SecurityConfigurationCommands


+

Search Tips   |   Advanced Search