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 localhostprofile: ADUser.epfpassword: Passw0rdIP address of Entrust Certificate Authority: localhostIP address of Active Directory SSL Proxy : localhost:500Directory connection set to: http://localhost:500Authority connection set to: localhost:829login ONLINE *** LOGIN COMPLETE ***CA distinguished name: "cn=MyTestCA"Done.