5 — CAS Samples


[Previous] [Next] [Contents] [Index]


This chapter provides information on deploying CAS applications and contains the following sections:

5.1 Samples Overview
5.2 Setting Up the Samples
5.3 Running the Samples

5.1 Samples Overview

The PC-DCE ADK includes compiled sample programs in install_directory\samples\cas:

The Application Developer's Kit (ADK) also includes the sample source files and a makefile in samples\cas, as well as header files in install_directory\include.

5.2 Setting Up the Samples

Before you run the samples:

  1. Move examplecass.dll to install_directory\bin.

  2. Add the following line to the cass_handlers file:

    examplecass.dll
    

    For more information, see Section 4.5 on page 19.

  3. Add the CASAUTHSVCS ERA to the principal you will use to log into DCE through the sample. The ERA should specify examplecass.dll. For more information, see Section 4.3 on page 18.

  4. Restart PC-DCE.

5.3 Running the Samples

To run the samples:

  1. Make sure PC-DCE is running.

  2. Start the sample login program either from the PC-DCE program group or by running login_pgm.exe from the command line.

  3. The program prompts you for your username followed by three challenge prompts. Enter the name of the principal you set up with the CASAUTHSVCS ERA. When the program challenges you to "enter one", enter the word "one", and so on.

    After you respond to the third challenge ("enter three"), the login program logs you into DCE and exits. You can run klist from the command line to view your credentials.


[Previous] [Next] [Contents] [Index]


To make comments or ask for help, contact support@entegrity.com.

Copyright © 1997-2003 Entegrity Solutions Corporation & its subsidiaries