Running the LoginActiveDirectory sample

The LoginActiveDirectory sample application starts a user session with an X.509 certificate managed by Microsoft Active Directory.

To run this sample, execute the following command line in the etjava/examples directory.

java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.activeDirectory.LoginActiveDirectory <epf_file)> <epf_pwd> [-dir <ad_ip> <ad_port>] [-pki <ra_ip>]

Parameter

Value

<epf_file>

The path of an Entrust user profile in .epf file format.

<epf_pwd>

The password for accessing the Entrust profile.

<ad_ip>

The hostname of IP address of the Microsoft Active Directory for which this application will act as a proxy.

<ad_port>

The port for accessing the Registration Authority (optional).

<ra_ip>

The IP address of the Registration Authority of the PKI to which the user belongs (optional).

For example:

C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.activeDirectory.LoginActiveDirectory ADUser.epf Passw0rd -dir localhost 443 -pki localhost
 
profile: ADUser.epf
password: Passw0rd
IP address of Entrust Certificate Authority: localhost
IP address of Active Directory SSL Proxy : localhost:500
 
Directory connection set to: http://localhost:500
Authority connection set to: localhost:829
login ONLINE
*** LOGIN COMPLETE ***
CA distinguished name: "cn=MyTestCA"
Done.