背景:从生产拷贝系统搭建测试环境。文中内容仅供参考,请根据实际情况修改。
#按照本地环境修改rehost.properties 和 project.properties文件
具体配置参考/opt/ptc/windchill_10.2/Windchill/MED-61138-CD-102_M010/conf中的对应文件
project.properties
rename=InfoEngine,Database,Apache
rehost.properties
---------use case settings-------
rehost.useCase=rename
rehost.keyStore.clear=false
rehost.log.passwords=false
test.prop.values.only=false
---------Database Settings--------
target.db.hostname=localhost
target.db.port=1521
target.db.serviceName=wind
----------LDAP Settings----------
target.directory.ldap=D:\ptc\Windchill_10.2\WindchillDS
target.ldap.username=cn-Manager
target.ldap.password=manager
target.ldap.baseon=configration,cn=Windchill_10.2M010,o=ptc
target.ldap.hostname=localhost
target.ldap.port=389
------Windchill Path Settings-------
target.httpserver.port=80
target.httpserver.ssl.port=443
target.wt.home=D:\ptc\Windchill_10.2\Windchill
target.java.home=D:\ptc\Windchill_10.2\Java
target.directory.httpserver=D:\ptc\Windchill_10.2\HTTPServer
#执行Rehost命令 (Windchill/bin/adminTools)
打开Windchill shell导航至Windchill Rehost Utility安装目录
执行命令 ./rehost.sh conf/rehost.properties
#DS及LDAP配置更改
DS更改
调整<Apache>/conf/extra/app-Windchill-AuthProvider.xml中认证的Provider的顺序,使得Apache首先验证本地的WindchillDS
shell中执行
Run ant -f webAppConfig.xml regenWebAppConf
注意:调整前,要停止Apache服务器
文件修改
从WC_HOME/codebase/WEB-INFO/mapCredentials.txt文件中,移除属性mapcredentials.admin.adapters的LDAP链接适配器
从wt.properties中,移除wt.federation.org.directoryService属性LDAP的适配器
启动windhcill,通过DS用户编辑JNDI支配器,使其匹配新的ActiveDirecory用户认证
LDAP更改
注意,先停止Apache服务器
调整<Apache>/conf/extra/app-Windchill-AuthProvider.xml中认证的Provider的顺序,使得Apache首先选择LDAP
shell中执行
Run ant -f webAppConfig.xml regenWebAppConf
通过命令增加“加密”的连接串
xconfmanager add "mapcredentials.admin.adapters=com.XX.XXX jndiAdapter cn=root,dc=XX,dc=com xxxc/2345" -t "codebase/WEB-INFO/mapCredentials.txt" -p
检查Apache3个文件是否为LDAP首选,可以手动调整
app-Windchill-Auth.conf
app-Windchill-Solr-Auth.conf
app-Windchill-WHC-Auth.conf
LDAP管理器更改链接
xxx.xxx.xxx.jndiAdapter.java.naming.provider.url=ldap://ip...
3058

被折叠的 条评论
为什么被折叠?



