cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

auth.properties & Trusted hosts in 10.2

davehaigh
11-Garnet

auth.properties & Trusted hosts in 10.2

Trusted Host Setup
4 REPLIES 4

Ok, I found a partial answer on the PTC Community Site.

David Haigh
TomU
23-Emerald IV
(To:davehaigh)

I haven't verified that using the hostname actually works, but the property WILL let me enter it:
xconfmanager -s wt.auth.trustedHosts=Host1 -t codebase/wt.properties -p

To enter more than one host, put the entire statement in double quotes:
xconfmanager -s "wt.auth.trustedHosts=Host1 Host2" -t codebase/wt.properties -p
(or)
xconfmanager -s "wt.auth.trustedHosts=xxx.xxx.xxx.xx yyy.yyy.yyy.yy" -t codebase/wt.properties -p

As far as auth.properties, I have that in the root Windchill folder (WT Home). The only line inside it is "auth=$user" (without the quotes).

The location of the file is set in the wvs.properties file (<wt home=">\codebase\WEB-INF\conf\wvs.properties)
publish.cadconvert.PROE=com.ptc.wvs.server.publish.CadConvertPROE,useworkerdownload\=$(wt.home)$(wvs.dir.sep)auth.properties

Tom U.
jessh
5-Regular Member
(To:davehaigh)

It's easier in cases like this to edit site.xconf yourself in my opinion.

If you do it via the command line then you need to follow appropriate
quoting practices for the platform in question to ensure that what you
want treated as one argument actually is, e.g.:

xconfmanager -s "wt.auth.trustedHosts=xxx.xxx.xxx.xx xxx.xxx.xxx.yy"
-t codebase/wt.properties -p

Also be really careful about copy/pasting to/from any Microsoft
product. These products like to turn "-" into "–", which is a
completely different character that command-line programs will not
accept as an equivalent of "-".

So then let me point out that CS182327 is incomplete. It says"
Provide multiple value with whitespace delimited.
* e.g. wt.auth.trustedHosts= <host_ip> <host2> <host3>

No double quotes shown.

When I document things, I include double quotes where ever they may be needed, even if for that specific instance I could do without them.
It eliminates a lot of confusion.

For example, in the line below, I don't really need double quotes around the yellow paths, but I do around the green path. Keeping them consistent even if it not needed is the better way to document this.
echo y|copy "P:\configs\core-config.txt"+"P:\configs\dted-config.txt"+"P:\configs\core-mapkeys.txt" "C:\ptc\Creo 2.0\Common Files\%CREOVERSION%\text\config.pro"

David Haigh
Top Tags