简体   繁体   English

我在哪里可以找到JOSSO数据库配置文件?

[英]Where do i find the JOSSO database configuration file?

We have Josso authentication on our website and recently we changed the mysql server and now are in the process of upgrading all the mysql hostnames, usernames and passwords in the database configuration files. 我们在我们的网站上有Josso身份验证,最近我们更改了mysql服务器,现在正在升级数据库配置文件中的所有mysql主机名,用户名和密码。

However, a critical component of our site - Josso is still nonfunctional because we have no idea where the database configuration file of josso exists. 但是,我们网站的一个关键组件 - Josso仍然没有功能,因为我们不知道josso的数据库配置文件存在于何处。

I would really appreciate anything that helps me figure out where this is located. 我真的很感激任何有助于我弄清楚它位于何处的东西。

Here is the URL of the site through which it is trying to access Josso : 以下是尝试访问Josso的网站的URL:

https://www.mysite.com:8443/josso/signon/usernamePasswordLogin.do;jsessionid=97FACC232630E8A8B93B141A67FBE01C https://www.mysite.com:8443/josso/signon/usernamePasswordLogin.do;jsessionid=97FACC232630E8A8B93B141A67FBE01C

Edit : We are using Tomcat 6 located under /etc/tomcat6 and also has a server.xml file inside it. 编辑:我们正在使用位于/ etc / tomcat6下的Tomcat 6,并且里面还有一个server.xml文件。 I could not find anything relevant related to josso db settings there. 我找不到与josso db settings相关的任何相关内容。

Hopefully you've already figured this out, but this should be documented for others. 希望你已经想到了这一点,但这应该记录下来。 This documentation is available at the JOSSO wiki, database section . 该文档可在JOSSO维基数据库部分获得

Assuming JOSSO 1.8.x, there is either a file in $TOMCAT_HOME/lib, which is where we have our configuration, or in $TOMCAT_HOME/webapps/josso/WEB-INF/classes called josso-gateway-db-stores.xml . 假设JOSSO 1.8.x,$ TOMCAT_HOME / lib中有一个文件,这是我们配置的地方,或者是$ TOMCAT_HOME / webapps / josso / WEB-INF / classes,名为josso-gateway-db-stores.xml If you cannot find this file, look for josso-gateway-config.xml which will have the various import statements for the other parts of the gateway configuration. 如果找不到此文件,请查找josso-gateway-config.xml ,它将具有网关配置其他部分的各种import语句。 The store configuration contains elements which reference a dsJndiName . 商店配置包含引用dsJndiName的元素。 This is the datasource that is either defined in you META-INF/context.xml file or in Tomcat's server.xml as a Resouce element. 这是在META-INF / context.xml文件中定义的数据源,或者在Tomcat的server.xml中定义为Resouce元素的数据源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM