ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaha_5.4.0.1/rzahajgssdownloadsourceexmp.htm

84 lines
4.8 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Example: Running the non-JAAS sample" />
<meta name="DC.Relation" scheme="URI" content="rzahajgssdownloadsource.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahajgssdownloadsource10.htm" />
<meta name="DC.Relation" scheme="URI" content="rzahajgssdownloadsource.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzahajgssdownloadsourceexmp" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Example: Running the non-JAAS sample</title>
</head>
<body id="rzahajgssdownloadsourceexmp"><a name="rzahajgssdownloadsourceexmp"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: Running the non-JAAS sample</h1>
<div><div class="section"><p>To run a sample, you need to download and modify the sample source
code. For more information, see <a href="rzahajgssdownloadsource.htm">Downloading
and running the sample programs</a>.</p>
</div>
<div class="section"><h4 class="sectiontitle">Starting the primary server</h4><p>Use the following command
to start a non-JAAS server that listens on port 4444. The server runs as
the principal (superSecureServer) and uses a secondary server (backupServer).
The server also displays application and credential debugging information.</p>
<pre> java -classpath ibmjgsssample.jar
-Dcom.ibm.security.jgss.debug="app, cred"
com.ibm.security.jgss.test.Server -p 4444
-n superSecureServer -s backupServer</pre>
<p>Successfully
running this example displays the following message:</p>
<pre> listening on port 4444</pre>
</div>
<div class="section"><h4 class="sectiontitle">Starting the secondary server</h4><p>Use the following
command to start a non-JAAS secondary server that listens on port 3333
and runs as principal backupServer:</p>
<pre> java -classpath ibmjgsssample.jar
com.ibm.security.jgss.test.Server -p 3333
-n backupServer</pre>
</div>
<div class="section"><h4 class="sectiontitle">Starting the client</h4><p>Use the following command (typed
on a single line) to run JAAS-enabled client (myClient). The client communicates
with the primary server on the host (securityCentral). The client runs
with the default security manager enabled, uses the JAAS configuration
and policy files and the Java™ policy file from the config directory.
For more information about the config directory, see <a href="rzahajgssdownloadsource10.htm">Downloading
the IBM<sup>®</sup> JGSS
samples</a>.</p>
<pre> java -classpath ibmjgsssample.jar
-Djava.security.manager
-Djava.security.auth.login.config=config/jaas.conf
-Djava.security.policy=config/java.policy
-Djava.security.auth.policy=config/jaas.policy
com.ibm.security.jgss.test.JAASClient -n myClient
-s superSecureServer -h securityCentral:4444</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzahajgssdownloadsource.htm" title="This topic contains instructions for downloading and running the sample javadoc information.">Samples: Downloading and running the sample programs</a></div>
</div>
<div class="linklist"><strong>Collected links</strong><br />
<div><a href="rzahajgssdownloadsource.htm" title="This topic contains instructions for downloading and running the sample javadoc information.">Downloading and running
the sample programs</a></div>
<div><a href="rzahajgssdownloadsource10.htm" title="This topic contains instructions for downloading the sample javadoc information to your iSeries server.">Downloading the IBM
JGSS samples</a></div></div>
</div>
</body>
</html>