SpnegoTAICommands group for AdminTask (deprecated)
Use the Jython or Jacl scripting languages to configure security with wsadmin. The commands and parameters in the SpnegoTAICommands group can be used to create and manage configurations that are used by the SPNEGO trust association interceptor (TAI).
In WAS V6.1, a TAI that uses the SPNEGO to securely negotiate and authenticate HTTP requests for secured resources was introduced. In WAS 7.0, this function is now deprecated. SPNEGO Web authentication has taken its place to provide dynamic reload of the SPNEGO filters and to enable fallback to the application login method. depfeat
The SpnegoTAICommands includes the following commands:
- addSpnegoTAIProperties
- deleteSpnegoTAIProperties
- modifySpnegoTAIProperties
- showSpnegoTAIProperties
- createKrbConfigFile
addSpnegoTAIProperties
The addSpnegoTAIProperties command adds properties in the configuration of the SPNEGO trust association interceptor (TAI) for the appserver.Target object
None
Parameters and return values
- -spnId
- This is the SPN identifier for the group of custom properties that are to be defined with this command. If we do not specify this parameter, an unused SPN identifier is assigned. (String, optional)
- -host
- Host name portion in the SPN used by the SPNEGO TAI to establish a Kerberos secure context. (String, required)
- -filter
- Defines the filtering criteria used by the class specified with the above attribute. If no filter is specified, all HTTP requests are subject to SPNEGO authentication. (String, optional)
- -filterClass
- Name of the Java class used by the SPNEGO TAI to select which HTTP requests will be subject to SPNEGO authentication. If no filter class is specified, the default filter class, com.ibm.ws.security.spnego.HTTPHeaderFilter, is used. (String, optional)
- -noSpnegoPage
- Specifies the URL of a resource that contains the content the SPNEGO TAI will include in the HTTP response to be displayed by the (browser) client application if it does not support SPNEGO authentication. (String, optional). If we do not specify the noSpnegoPage attribute then the default is used:
"<html><head><title>SPNEGO authentication is not supported.</title></head>" + "<body>SPNEGO authentication is not supported on this client.</body></html>";- -ntlmTokenPage
- Specifies the URL of a resource that contains the content the SPNEGO TAI will include in the HTTP response to be displayed by the (browser) client application when the SPNEGO token received by the interceptor after the challenge-response handshake contains a NT LAN manager (NTLM) token instead of the expected SPNEGO token. (String, optional). If we do not specify the ntlmTokenPage attribute then the default is used:
"<html><head><title>An NTLM Token was received.</title></head>" + "<body>Your browser configuration is correct, but we have not logged into a supported Windows Domain." + "<p>Please login to the application using the normal login page.</html>";- -trimUserName
- Specifies whether (true) or not (false) the SPNEGO TAI is to remove the suffix of the principal user name, starting from the @ that precedes the Kerberos realm name. If this attribute is set to true, the suffix of the principal user name is removed. If this attribute is set to false, the suffix of the principal name is retained. The default value used is true. (String, optional)
Examples
Batch mode example usage:
- Jacl...
$AdminTask addSpnegoTAIProperties -host myhost.ibm.com -filter user-agent%=IE 6- Use Jython string:
AdminTask.addSpnegoTAIProperties ('[-host myhost.ibm.com -filter user-agent%=IE 6]')- Use Jython list:
AdminTask.addSpnegoTAIProperties (['-host', 'myhost.ibm.com', '-filter', 'user-agent%=IE', '6'])
Interactive mode example usage:
- Jacl...
$AdminTask addSpnegoTAIProperties -interactive- Use Jython string:
AdminTask.addSpnegoTAIProperties ('[-interactive]')- Use Jython list:
AdminTask.addSpnegoTAIProperties ['-interactive'])
deleteSpnegoTAIProperties
The deleteSpnegoTAIProperties command deletes properties in the configuration of the SPNEGO trust association interceptor (TAI) for WAS.Target object
None
Parameters and return values
- -spnId
- The SPN identifier for the group of custom properties that are to be deleted with this command. If we do not specify this parameter, all SPNEGO TAI custom properties are deleted. (String, optional)
Examples
Batch mode example usage:
- Jacl...
$AdminTask deleteSpnegoTAIProperties {-spnId 2}- Use Jython string:
AdminTask.deleteSpnegoTAIProperties ('[-spnId 2]')- Use Jython list:
AdminTask.deleteSpnegoTAIProperties (['-spnId', '2'])
Interactive mode example usage:
- Jacl...
$AdminTask deleteSpnegoTAIProperties -interactive- Use Jython string:
AdminTask.deleteSpnegoTAIProperties ('[-interactive]')- Use Jython list:
AdminTask.deleteSpnegoTAIProperties ['-interactive'])
modifySpnegoTAIProperties
The modifySpnegoTAIProperties command modifies the properties in the configuration of the SPNEGO trust association interceptor (TAI) for WAS.Target object
None
Parameters and return values
- -spnId
- The SPN identifier for the group of custom properties that are to be defined with this command. (String, required)
- -host
- Host name portion in the SPN used by the SPNEGO TAI to establish a Kerberos secure context. (String, optional)
- -filter
- Defines the filtering criteria used by the class specified with the above attribute. (String, optional)
- -filterClass
- Name of the Java class used by the SPNEGO TAI to select which HTTP requests will be subject to SPNEGO authentication. If no class is specified, all HTTP requests will be subject to SPNEGO authentication. (String, optional)
- -noSpnegoPage
- Specifies the URL of a resource that contains the content the SPNEGO TAI will include in the HTTP response to be displayed by the (browser) client application if it does not support SPNEGO authentication. (String, optional)
- -ntlmTokenPage
- Specifies the URL of a resource that contains the content the SPNEGO TAI will include in the HTTP response to be displayed by the (browser) client application when the SPNEGO token received by the interceptor after the challenge-response handshake contains a NT LAN manager (NTLM) token instead of the expected SPNEGO token. (String, optional)
- -trimUserName
- Specifies whether (true) or not (false) the SPNEGO TAI is to remove the suffix of the principal user name, starting from the "@" that precedes the Kerberos realm name. If this attribute is set to true, the suffix of the principal user name is removed. If this attribute is set to false, the suffix of the principal name is retained. The default value used is true. (String, optional)
Examples
Batch mode example usage:
- Jacl...
$AdminTask modifySpnegoTAIPROPERTIES -spnId 1 -filter host==myhost.company.com- Use Jython string:
AdminTask.modifySpnegoTAIPROPERTIES ('[-spnId 1 -filter host==myhost.company.com]')- Use Jython list:
AdminTask.modifySpnegoTAIPROPERTIES (['-spnId', '1', '-filter', 'host==myhost.company.com'])
Interactive mode example usage:
- Jacl...
$AdminTask modifySpnegoTAIProperties -interactive- Use Jython string:
AdminTask.modifySpnegoTAIProperties ('[-interactive]')- Use Jython list:
AdminTask.modifySpnegoTAIProperties ['-interactive'])
showSpnegoTAIProperties
The showSpnegoTAIProperties command displays the properties in the configuration of the SPNEGO trust association interceptor (TAI) for WAS.Target object
None
Parameters and return values
- -spnId
- The service principal name (SPN) identifier for the group of custom properties that are to be displayed with this command. If we do not specify this parameter, all SPNEGO TAI custom properties are displayed. (String, optional)
Examples
Batch mode example usage:
- Jacl...
$AdminTask showSpnegoTAIProperties -spnId 1- Use Jython string:
AdminTask.showSpnegoTAIProperties ('[-spnId 1]')- Use Jython list:
AdminTask.showSpnegoTAIProperties (['-spnId', '1'])
Interactive mode example usage:
- Jacl...
$AdminTask showSpnegoTAIProperties -interactive- Use Jython string:
AdminTask.showSpnegoTAIProperties ('[-interactive]')- Use Jython list:
AdminTask.showSpnegoTAIProperties ['-interactive'])
createKrbConfigFile
The createKrbConfigFile command creates the Kerberos configuration file for use with the SPNEGO TAI for WAS.Target object
None
Parameters and return values
- -krbPath
- Provides the fully qualified file system location of the Kerberos configuration (krb5.ini or krb5.conf) file. (String, required)
- -realm
- Provides the Kerberos realm name. The value of this attribute is used by the SPNEGO TAI to form the Kerberos service principal name for each of the hosts specified with the property com.ibm.ws.security.spnego.SPN<id>.hostname (String, required)
- -kdcHost
- Provides the host name of the Kerberos Key Distribution Center (KDC). (String, required)
- -kdcPort
- Provides the port number of the KDC. The default value, if not specified, is 88. (String, optional)
- -dns
- Provides the default DNS used to produce a fully qualified host name. (String, required)
- -keytabPath
- Provides the file system location of the Kerberos keytab file. (String, required)
- -encryption
- Identifies the list of supported encryption types, separated by a space. The specified value is used for the default_tkt_enctypes and default_tgs_enctypes. The default encryption types, if not specified, are des-cbc-md5 and rc4-hmac. (String, optional)
Examples
Interactive mode example usage:
- Jacl...
$AdminTask createKrbConfigFile -interactive- Use Jython string:
AdminTask.createKrbConfigFile ('[-interactive]')- Use Jython list:
AdminTask.createKrbConfigFile ['-interactive'])
Related tasks
Use AdminTask for scripted administration
Related
Commands for AdminTask