InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.18: Securing applications >
6.6.18.9: Specifying authentication options in sas.client.props

6.6.18.9: Specifying authentication options in sas.client.props

You can use the sas.client.props file to direct WebSphere Application Server to authenticate users by prompting or by using a user ID and password set in the properties file. The following steps describe the procedure:

  1. Locate the sas.client.props file. By default, it is located in the properties directory under the <product_installation_root> of your WebSphere Application Server installation.
  2. Edit the file to set up the authentication procedure:
    • To authenticate by prompting, set the loginSource property to the value "prompt":
      com.ibm.CORBA.loginSource=prompt
      

      Note that when using prompt, a graphical panel is presented for the user for collecting the user ID and password. Pure Java clients must call the JDK API System.exit(0) at the end of the program in order to properly end the Java process. This is because the JDK starts a backward AWT thread that is not killed when the login prompt disappears. If you choose not to use a System.exit(0) call, pressing Ctrl-C ends the process.

    • To authenticate by prompting on the console (stdout), set the loginSource property to the value "stdin". The user is then prompted for user ID and password by using a non-graphical console prompt. This is currently only supported by a pure Java client.
    • To authenticate by the values configured in the file, set the loginSource property to the value "properties" and set the desired values for the loginUserid and loginPassword properties:
      com.ibm.CORBA.loginSource=properties
      com.ibm.CORBA.loginUserid=<user_ID>
      com.ibm.CORBA.loginPassword=<password>
      
  3. Save the file.

Go to previous article: Protecting individual application components and methods Go to next article: The demo keyring

 

 
Go to previous article: Protecting individual application components and methods Go to next article: The demo keyring