Building a Hauthtst Command from HServer.arg
book
Article ID: 206322
calendar_today
Updated On:
Feedback
Subscribe
Products
CA Harvest Software Change Manager
CA Harvest Software Change Manager - OpenMake Meister
Show More
Show Less
Issue/Introduction
Is there a way to easily create a hauthtst command from the contents of the %CA_SCM_HOME%\HServer.arg ($CA_SCM_HOME/HServer.arg on Linux/Unix)?
Environment
CA Harvest Software Change Manager all versions and platforms
Resolution
Here are the steps to follow:
Copy and paste the contents of your %CA_SCM_HOME%\HServer.arg ($CA_SCM_HOME/HServer.arg on Linux/Unix) file into a text editor
Remove all lines that don't start with "-authmode", "-ldap*", or "-tls*"
For all remaining lines, put an "=" sign between the name of the option and the value, for example:
-authmode=openldap
For any line where the value has spaces or special characters, be sure to enclose the value in double quotes, for example:
-ldapfilter="(&(objectclass=person)(sAmAccountname=<sAmAccountname>))"
At the beginning of the list, add a new line and type "hauthtst", for example: hauthtst
-authmode=openldap...
At the end of the list add a new line and type "-ldapdebuglevel=-1", for example:
... -ldapattrusrname=sAmAccountname -ldapdebuglevel=-1
Concatenate all lines together into one long string, making sure to leave a space between each option=value pair, for example:
hauthtst -authmode=openldap -ldapserver=<ldapserverhostname> -ldapport=<ldapserverport> ... -ldapdebuglevel=-1
Leave the text editor open, copy and paste the entire line into a command prompt window on the machine where SCM Broker or SCM Agent is installed, and execute it.
If the test identifies any problems, fix them in the text editor, copy and paste the updated line into the command prompt window, and execute.
When the result is successful, copy any changes back to your %CA_SCM_HOME%\HServer.arg ($CA_SCM_HOME/HServer.arg on Linux/Unix) file.
Additional Information
You can read more about the hauthtst command here: hauthtst Command-Authentication Server API Test
Feedback
thumb_up
Yes
thumb_down
No