We are trying to configure NXTRANSDIRECT to run as dcproxy user and using a -PF option pointing to encrypted password.
Simply adding the username and password file in the nxtransdirect.bat file seems to be getting ignored:
"%UGII_BASE_DIR%\ugmanager\run_nxtrans.bat" "-pim=yes" %* -u=dcproxy -pf=%TC_DATA%\pw\dcproxy.encpwf
SolutionHere's what we did:
Setup the password file:
Create a translator password file in the <DispatcherRoot>/DispatcherClient/cache directory (if one does not already exist).
NOTE: Translators CANNOT use the existing DispatcherClient.pwf because this file is encrypted with a different method than the translator expects
From a Teamcenter configured prompt, run the command %TC_ROOT%\install\install -encryptpwf -f=<DispatcherRoot>/DispatcherClient/cache/dcproxy.pwf
Input the password for dcproxy and confirm
(NOTE: there is no feedback from the command as you type)
Configure Translator.xml
1. Edit <DISP_ROOT>/Module/conf/translator.xml
2. Search for “nxtransdirect”
3. Comment the following three lines:
<!--<Option description="Specifies username for NX Translator login to Teamcenter." name="clientoption" optionkey="user" string="-u=" value=""/>
<Option description="Specifies password for NX Translator login to Teamcenter." name="clientoption" optionkey="password" string="-p=" value=""/>
<Option description="Specifies group for NX Translator login to Teamcenter." name="clientoption" optionkey="group" string="-g=" value=""/> -->
4. Set the password encryption to true
<Option description="Specifies whether or not password is encrypted for NX Translator login to Teamcenter." name="clientoption" optionkey="encrypted_password" string="-encrypt=" value="true"/>
5. Disable autologin
<Option description="Specifies whether to auto login as module user." name="clientoption" optionkey="use_module_user" string="-autologin=" value="false"/>
6. Set ownership of the directmodel dataset to the CAD owner (optional)
<Option description="Specifies whether to change the translated data to the same owner as source." name="clientoption" optionkey="changeOwnerToCad" string="-changeOwnerToCad=" value="true"/>
Configure Nxtransdirect.bat
1. Edit <DISP_ROOT>/Module/Translators/nxtransdirect/nxtransdirect.bat
2. Validate the paths for:
• TC_ROOT
• TC_DATA
• FMS_HOME
• TC_JRE_HOME
3. Search for %UGII_BASE_DIR%\ugmanager\run_ntrans.bat
4. Edit the line to this:"%UGII_BASE_DIR%\ugmanager\run_nxtrans.bat" "-pim=yes" -u=dcproxy -pf=<DISP_ROOT>\DispatcherClient\cache\dcproxypf.pwf -g=dba %*