Compartilhe
Ir em baixo
avatar
Mensagens : 7
Data de inscrição : 19/03/2018
Ver perfil do usuário

CSP + MySQL

em Sab 24 Mar 2018 - 19:56
ok guys after my first Release of Dream CSP i get pms about MySQL J Connector Based CSP Ok Here Yo Go Smile.and its Based On r228
Kind Regards










Default Proxy.xml

Código:
<cardserv-proxy ver="Dre@M"> 

<ca-profiles> 
<default-des-key>01 02 03 04 05 06 07 08 09 10 11 12 13 14</default-des-key> 

<extended-newcamd listen-port="15112" debug="true"/> 

<profile name="myprofile" ca-id="0000" network-id="0000" provider-idents="00 00 00" enabled="true" debug="true"> 
<newcamd listen-port="11112"> 
<no-validation>true</no-validation> 
</newcamd> 
<radegast listen-port="11113"> 
<allow-list>192.168.0.*</allow-list> 
</radegast> 
<services-file>etc/services</services-file> 
<max-cw-wait>8500 ms</max-cw-wait> 
</profile> 
</ca-profiles> 

<logging log-ecm="true" log-emm="true" log-zapping="false" hide-ip-addresses="false"> 
<log-file rotate-count="3" rotate-max-size="1024">log/cardserv.log</log-file> 
<log-level>INFO</log-level> 
<silent>true</silent> 
<debug>false</debug> 
</logging> 

<rmi> 
<display-name>Csproxy1</display-name> 
<status-web> 
<listen-port>8082</listen-port> 
<ssl enabled="false"> 
<keystore password="secret">etc/csp_keystore</keystore> 
</ssl> 
<war-file>lib/cs-status.war</war-file> 
<super-users>admin</super-users> 
</status-web> 
</rmi> 

<user-manager class="com.bowman.cardserv.SimpleUserManager"> 
<auth-config> 
<user name="admin" password="secret" max-connections="3" admin="true"/> 
<user name="user1" password="secret1" profiles="myprofile"/> 
</auth-config> 
</user-manager> 

<connection-manager> 
<reconnect-interval>60</reconnect-interval> 
<default-des-key>01 02 03 04 05 06 07 08 09 10 11 12 13 14</default-des-key> 
<default-keepalive-interval>55</default-keepalive-interval> 

<service-map> 
<mapper> 
<auto-reset-threshold>20</auto-reset-threshold> 
</mapper> 
<mapper profile="myprofile"> 
<reset-services></reset-services> 
<block-services></block-services> 
</mapper> 
</service-map> 

<cws-connectors> 

<csp-connector name="test0" enabled="false"> 
<url>https://otherproxy.host.com:8443</url> 
<user>user</user> 
<password>password</password> 
<request-cache-updates>false</request-cache-updates> 
</csp-connector> 

<newcamd-connector name="test1" profile="myprofile" enabled="false"> 
<host>192.168.0.3</host> 
<port>10001</port> 
<user>proxyuser</user> 
<password>password</password> 
<asynchronous>true</asynchronous> 
</newcamd-connector> 

<radegast-connector name="test2" profile="myprofile" enabled="false"> 
<host>192.168.0.4</host> 
<port>10003</port> 
<provider-idents>00 00 01</provider-idents> 
</radegast-connector> 

<chameleon-connector name="test3" enabled="false"> 
<host>192.168.0.5</host> 
<port>10001</port> 
<user>mgcamduser</user> 
<password>password</password> 
</chameleon-connector> 

</cws-connectors> 

</connection-manager> 

<proxy-plugins> 
<plugin class="com.bowman.cardserv.LoggingPlugin" enabled="false"> 
<plugin-config> 
<log-dir>log/traffic</log-dir> 
<log-level>ALL</log-level> 
<ip-filter>*</ip-filter> 
</plugin-config> 
</plugin> 
<plugin class="com.bowman.cardserv.DcwFilterPlugin" enabled="true" jar-file="dcwfilterplugin.jar"/> 
<plugin class="com.bowman.cardserv.ProviderIdentPlugin" enabled="true" jar-file="provideridentplugin.jar"/> 
<plugin class="com.bowman.cardserv.MySQLWebManagementPlugin" enabled="true" jar-file="mysqlwebmanagementplugin.jar"/> 
<plugin class="com.bowman.cardserv.IrdetoPlugin" enabled="true" jar-file="irdetoplugin.jar"/> 
<plugin class="com.bowman.cardserv.CacheCoveragePlugin" enabled="true" jar-file="cachecoverageplugin.jar"> 
<plugin-config> 
</plugin-config> 
</plugin> 
</proxy-plugins> 

<cache-handler class="com.bowman.cardserv.ClusteredCache"> 
<cache-config> 
<cw-max-age>19</cw-max-age> 
<max-cache-wait>40%</max-cache-wait> 
<local-port>54277</local-port> 
<sync-period>50</sync-period> 
<cw-validation checksum="true" zero-counting="true" log-warnings="true"/> 
</cache-config> 
</cache-handler> 

</cardserv-proxy>





MySQLUserManager Config




Código:
<user-manager class="com.bowman.cardserv.MySQLUserManager" allow-on-failure="true" log-failures="true">
<auth-config>
<mysql-database>
<dbhost>localhost</dbhost> [i]<!-- optional - default: 127.0.0.1 -->[/i]
<dbport>3306</dbport> [i]<!-- optional - default: 3306 -->[/i]
<dbname>csp_test</dbname> [i]<!-- optional - default: cardserverproxy -->[/i]
<dbuser>csp</dbuser>
<dbpassword>mjgkzkgkkzkkk</dbpassword>  
</mysql-database>
[i]<!-- local defined user -->[/i]
<user name="admin" password="secret" display-name="Administrator" admin="true"/>  
[i]<!-- xml source -->[/i]
<user-source name="localusers">
  <user-file-url>file:///usr/local/csp/config/users.xml</user-file-url>
</user-source>
[i]<!-- xml source update interval -->[/i]
<update-interval>5</update-interval>
</auth-config>
</user-manager>
Voltar ao Topo
Permissão deste fórum:
Você não pode responder aos tópicos neste fórum