Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
de:global_xml-example [2017/11/01 09:37] – Nach Rückmeldung noch einmal nacheditiert Silke Meyerde:global_xml-example [2020/01/09 14:17] Silke Meyer
Zeile 11: Zeile 11:
 (Klick auf den Dateinamen im Reiter startet den Download) - zurück zur [[de:shibidp3storage#datenbank-konfiguration|Übersichtsseite]] (Klick auf den Dateinamen im Reiter startet den Download) - zurück zur [[de:shibidp3storage#datenbank-konfiguration|Übersichtsseite]]
  
 +===== bis Debian 9 =====
 <file xml ./conf/global.xml> <file xml ./conf/global.xml>
 <?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
Zeile 31: Zeile 32:
          p:maxActive="100"          p:maxActive="100"
          p:maxIdle="100"          p:maxIdle="100"
-         Es ist unter Umständen nötig, dass Sie diese Werte für Ihre Installation anpassen.-->+         Es ist unter Umständen nötig, dass Sie diese Werte je nach Auslastung Ihres IdP anpassen
 +         ebenso wie die Konfiguration Ihres MySQL-Servers. -->
  
         <bean id="shibboleth.MySQLDataSource"         <bean id="shibboleth.MySQLDataSource"
               class="%{mysql.class}"               class="%{mysql.class}"
               p:driverClassName="com.mysql.jdbc.Driver"               p:driverClassName="com.mysql.jdbc.Driver"
 +              p:url="%{mysql.url}"
 +              p:username="%{mysql.username}"
 +              p:password="%{mysql.password}"
 +              p:maxWait="15000"
 +              p:testOnBorrow="true"
 +              p:maxActive="100"
 +              p:maxIdle="100"
 +              p:validationQuery="select 1"
 +              p:validationQueryTimeout="5" />
 +
 +        <bean id="shibboleth.JPAStorageService"
 +              class="org.opensaml.storage.impl.JPAStorageService"
 +              p:cleanupInterval="%{idp.storage.cleanupInterval:PT10M}"
 +              c:factory-ref="shibboleth.JPAStorageService.EntityManagerFactory" />
 +
 +        <bean id="shibboleth.JPAStorageService.EntityManagerFactory"
 +              class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
 +            <property name="packagesToScan" value="org.opensaml.storage.impl"/>
 +            <property name="dataSource" ref="shibboleth.MySQLDataSource"/>
 +            <property name="jpaVendorAdapter" ref="shibboleth.JPAStorageService.JPAVendorAdapter"/>
 +            <property name="jpaDialect">
 +                <bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" />
 +            </property>
 +        </bean>
 +
 +        <bean id="shibboleth.JPAStorageService.JPAVendorAdapter"
 +              class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
 +              p:generateDdl="true"
 +              p:database="MYSQL"
 +              p:databasePlatform="org.hibernate.dialect.MySQL5Dialect" />
 +
 +</beans>
 +</file>
 +
 +===== ab Debian 10 =====
 +<file xml ./conf/global.xml>
 +<?xml version="1.0" encoding="UTF-8"?>
 +<beans xmlns="http://www.springframework.org/schema/beans"
 +       xmlns:context="http://www.springframework.org/schema/context"
 +       xmlns:util="http://www.springframework.org/schema/util"
 +       xmlns:p="http://www.springframework.org/schema/p"
 +       xmlns:c="http://www.springframework.org/schema/c"
 +       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 +       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
 +                           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
 +                           http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
 +
 +       default-init-method="initialize"
 +       default-destroy-method="destroy">
 +
 +    <!-- Use this file to define any custom beans needed globally. -->
 +    
 +    <!-- Die folgenden Werte sind Default-Werte:
 +         p:maxActive="100"
 +         p:maxIdle="100"
 +         Es ist unter Umständen nötig, dass Sie diese Werte je nach Auslastung Ihres IdP anpassen,
 +         ebenso wie die Konfiguration Ihres MySQL-Servers. -->
 +
 +        <bean id="shibboleth.MySQLDataSource"
 +              class="%{mysql.class}"
 +              p:driverClassName="org.mariadb.jdbc.Driver"
               p:url="%{mysql.url}"               p:url="%{mysql.url}"
               p:username="%{mysql.username}"               p:username="%{mysql.username}"