![]() |
Sun Java System Identity Server 2004Q2 Sample |
Authentication (LDAP module) Samples
The sample program demonstrate how to use Remote Client
API. It will authenticate user by LDAP module. It is very easy to
modify this program to use other existing or customized Authentication
module.
|
BASE | where Identity server is installed |
JAVA_HOME | where Java compiler is installed |
DOMAIN | the domain you like to login into |
AMConfig.properties
from IS server
installation machine location /etc/opt/SUNWam/config
from the server machine to the client machine
am_services.jar
, jaas.jar
,
jss3.jar
, AMConfig.properties
in your
classpath on client machine. (Note: Include jaas.jar in your classpath if you are using JDK version less than JDK1.4)
gmake
.
gmake run
.
For
SSL
mode:
-D "java.protocol.handler.pkgs=com.iplanet.services.comm"
AMConfig.properties
file
com.iplanet.am.admin.cli.certdb.dir=<ISinstall-dir>/SUNWam/servers/alias
com.iplanet.am.admin.cli.certdb.prefix=https-machine1.red.iplanet.com-machine1-
com.iplanet.am.server.protocol
to https
com.iplanet.am.server.port
to the appropriate port on the server machinemachine1
is the host name of the server
Windows2000:
In make.bat
BASE where Identity server is installed JAVA_HOME where Java compiler is installed DOMAIN the domain you like to login into
AMConfig.properties
from IS server installation machine location
/etc/opt/SUNWam/config
from the server machine to
the client machine
am_services.jar
, jaas.jar
,
jss3.jar
, AMConfig.properties
in your classpath on client machine. (Note: Include jaas.jar in your classpath if you are using JDK version less than JDK1.4)
make
.
make run
.
For
SSL
mode:
-D "java.protocol.handler.pkgs=com.iplanet.services.comm"
AMConfig.properties
file
com.iplanet.am.admin.cli.certdb.dir=<ISinstall-dir>\SUN\IdentityServer6\Servers\alias
com.iplanet.am.admin.cli.certdb.prefix=https-machine1.red.iplanet.com-machine1-
com.iplanet.am.server.protocol
to https
com.iplanet.am.server.port
to the appropriate
port on the server machineFor the details, please reference the Remote Client API Java Docs.