Running the CreateUserOnActiveDirectory sample

The CreateUserOnActiveDirectory sample application creates an Entrust user in a PKI that uses Microsoft Active Directory as its X.509 certificate repository.

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.CreateUserOnActiveDirectory <user_ref> <user_auth> <epf_file> <epf_pwd> <ad_ip> <ad_port> <ra_ip> <ra_port>

Parameter

Value

<user_ref>

The user reference number provided by the PKI Administrator.

<user_auth>

The user authorization code provided by the PKI Administrator.

<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.

<ra_ip>

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

<ra_port>

The port for accessing the Registration Authority (optional).

For example:

C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.activeDirectory.CreateUserOnActiveDirectory 36714892 QBK3-G79K-3JRO ADUser.epf Passw0rd localhost 500 localhost 829
 
profile: ADUser.epf
password: Passw0rd
IP address of Entrust Certificate Authority: localhost
IP address of Active Directory SSL Proxy : localhost:443
 
Directory connection set to: http://localhost:443
Authority connection set to: localhost:829
User creation successful.