You perform this configuration task on the Microsoft® Active Directory domain controller machine. This task is a necessary part of preparing to process single sign on browser requests to WebSphere® Application Server and thee SPNEGO trust association interceptor (TAI).
Click Start->Programs->Administrative Tools->Active Directory Users and Computers
C:\Program Files\Support Tools> setspn -A HTTP/myappserver.austin.ibm.com myappserver
More information about the setspn command can be found here, Windows 2003 Technical Reference (setspn command)
Use the ktpass tool from the Windows Server toolkit to create the Kerberos keytab file for the service principal name (SPN). Use the latest version of the ktpass tool that matches the Windows server level that you are using. For example, use the Windows 2000 version of the tool for a Windows 2000 Server, or a Windows 2003 version of the tool for a Windows 2003 server.
To determine the appropriate parameter values for the ktpass tool, run the ktpass -? command from the command line. This command lists whether the ktpass tool, which corresponds to the particular operating system, uses the -crypto RC4-HMAC or -crypto RC4-HMAC-NT parameter value. To avoid warning messages from the toolkit, you must specify the -ptype KRB5_NT_PRINCIPAL parameter value.
The Windows 2003 server version of the ktpass tool supports the encryption type, RC4-HMAC, and Single data encryption standard (DES). The Windows 2000 server version of the ktpass tool are similar, but different options are necessary for the RC4-HMAC encryption type and single DES. For more information about the ktpass tool, see Windows 2003 Technical Reference (Kerberos keytab file and ktpass command) or Use Ktpass.exe in Windows 2000.
C:\Program Files\Support Tools>ktpass -? Command line options: ---------------------most useful args [- /] out : Keytab to produce [- /] princ : Principal name (user@REALM) [- /] pass : password to use use "*" to prompt for password. [- +] rndPass : ... or use +rndPass to generate a random password [- /] minPass : minimum length for random password (def:15) [- /] maxPass : maximum length for random password (def:256) ---------------------less useful stuff [- /] mapuser : map princ (above) to this user account (default: don't) [- /] mapOp : how to set the mapping attribute (default: add it) [- /] mapOp : is one of: [- /] mapOp : add : add value (default) [- /] mapOp : set : set value [- +] DesOnly : Set account for des-only encryption (default:don't) [- /] in : Keytab to read/digest ---------------------options for key generation [- /] crypto : Cryptosystem to use [- /] crypto : is one of: [- /] crypto : DES-CBC-CRC : for compatibility [- /] crypto : DES-CBC-MD5 : for compatibliity [- /] crypto : RC4-HMAC-NT : default 128-bit encryption [- /] ptype : principal type in question [- /] ptype : is one of: [- /] ptype : KRB5_NT_PRINCIPAL : The general ptype-- recommended [- /] ptype : KRB5_NT_SRV_INST : user service instance [- /] ptype : KRB5_NT_SRV_HST : host service instance [- /] kvno : Override Key Version Number Default: query DC for kvno. Use /kvno 1 for Win2K compat. [- +] Answer : +Answer answers YES to prompts. -Answer answers NO. [- /] Target : Which DC to use. Default:detect ---------------------options for trust attributes (Windows Server 2003 Sp1 Only [- /] MitRealmName : MIT Realm which we want to enable RC4 trust on. [- /] TrustEncryp : Trust Encryption to use; DES is default [- /] TrustEncryp : is one of: [- /] TrustEncryp : RC4 : RC4 Realm Trusts (default) [- /] TrustEncryp : DES : go back to DES
ktpass -out c:\temp\myappserver.keytab -princ HTTP/myappserver.austin.ibm.com@WSSEC.AUSTIN.IBM.COM -mapUser myappserv -mapOp set -pass was1edu -crypto DES-CBC-MD5 -pType KRB5_NT_PRINCIPAL +DesOnly
Option | Explanation |
---|---|
-out c:\temp\myappserver.keytab | The key is written to this output file. |
-princ HTTP/myappserver.austin.ibm.com@WSSEC.AUSTIN.IBM.COM | The concatenation of the user logon name, and the realm must be in uppercase. |
-mapUser | The key is mapped to the user, myappserver. |
-mapOp | This option sets the mapping. |
-pass was1edu | This option is the password for the user ID. |
-crypto DES-CBC-MD5 | This option uses the single DES encryption type. |
-pType KRB5_NT_PRINCIPAL | This option specifies the KRB5_NT_PRINCIPAL principal value. Specify this option to avoid toolkit warning messages. |
+DesOnly | This option generates only DES encryptions. |
ktpass -out c:\temp\myappserver.keytab -princ HTTP/myappserver.austin.ibm.com@WSSEC.AUSTIN.IBM.COM -mapUser myappserver -mapOp set –pass was1edu -crypto RC4-HMAC -pType KRB5_NT_PRINCIPAL
Option | Explanation |
---|---|
-out c:\temp\myappserver.keytab | The key is written to this output file. |
-princ HTTP/myappserver.austin.ibm.com@WSSEC.AUSTIN.IBM.COM | The concatenation of the user logon name, and the realm must be in uppercase. |
-mapUser | The key is mapped to the user, myappserver. |
-mapOp | This option sets the mapping. |
-pass was1edu | This option is the password for the user ID. |
-crypto RC4-HMAC | This option chooses the RC4-HMAC encryption type. |
-pType KRB5_NT_PRINCIPAL | This option specifies the KRB5_NT_PRINCIPAL principal value. Specify this option to avoid toolkit warning messages. |
ktpass -out c:\temp\myappserver.keytab -princ HTTP/myappserver.austin.ibm.com@WSSEC.AUSTIN.IBM.COM -mapUser myappserver -mapOp set -pass was1edu -crypto RC4-HMAC-NT -pType KRB5_NT_PRINCIPAL
Option | Explanation |
---|---|
-out c:\temp\myappserver.keytab | The key is written to this output file. |
-princ HTTP/myappserver.austin.ibm.com@WSSEC.AUSTIN.IBM.COM | The concatenation of the user logon name, and the realm must be in uppercase. |
-mapUser | The key is mapped to the user, myappserver. |
-mapOp | This option sets the mapping. |
-pass was1edu | This option is the password for the user ID. |
-crypto RC4-HMAC-NT | This option chooses the RC4-HMAC-NT encryption type. |
-pType KRB5_NT_PRINCIPAL | This option specifies the KRB5_NT_PRINCIPAL principal value. Specify this option to avoid toolkit warning messages. |
ftp> bin ftp> put c:\temp\KRB5_NT_SEV_HST\krb5.keytab
Your active directory domain controller is properly configured to process single sign on requests to WebSphere Application Server and the SPNEGO TAI
In this information ...Related concepts
Related tasks
Related information
| IBM Redbooks, demos, education, and more(Index) Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience. This feature requires Internet access. Most of the following links will take you to information that is not part of the formal product documentation and is provided "as is." Some of these links go to non-IBM Web sites and are provided for your convenience only and do not in any manner serve as an endorsement by IBM of those Web sites, the material thereon, or the owner thereof. |