PI.cfg
PI_HSM: default
PI_NO_RESPONSE_SIGN: True
PI_LOGFILE: /var/log/privacyidea/privacyidea.log
PI_AUDIT_KEY_PUBLIC: /etc/privacyidea/public.pem
PI_PEPPER: some_value
PI_AUDIT_POOL_RECYCLE: 60
PI_ENCFILE: /etc/privacyidea/enckey
PI_EXTERNAL_LINKS: True
SQLALCHEMY_DATABASE_URI = 'oracle+cx_oracle://db_user:db_password@db_server:1521/?service_name=service_name?server=pooled’
PI_AUDIT_POOL_SIZE: 1
PI_AUDIT_MODULE: privacyidea.lib.auditmodules.sqlaudit
PI_LOGLEVEL: 40
PI_AUDIT_KEY_PRIVATE: /etc/privacyidea/private.pem
SUPERUSER_REALM: [realms_list]
This database sheme contains token database, audit log and user store (single db for all, I created user store table near privacyidea tables).
System Base Configuration
recovery.identifier: smtp_conf
sms.identifier: sms_otp
DefaultChallengeValidityTime: 600
totp.timeStep: 30
hotp.hashlib: sha1
UserCacheExpiration: 0
UiLoginDisplayRealmBox: False
AutoResync: False
splitAtSign: True
timestamp: 1523622993
PrependPin: True
sms.Provider: privacyidea.lib.smsprovider.HttpSMSProvider.HttpSMSProvider
IncFailCountOnFalsePin: False
totp.hashlib: sha1
UiLoginDisplayHelpButton: False
ReturnSamlAttributesOnFail: False
failcounter_clear_timeout: 0
email.tls: False
radius.dictfile: /etc/privacyidea/dictionary
email.validtime: 600
email.identifier: smtp_inter
AutoResyncTimeout: 600
remote.verify_ssl_certificate: False
ReturnSamlAttributes: True
As for me, there is a problem with sqlalchemy. Sessions number increase to some amount (~ 100). If you don’t use db, all sessions must be closed, but they hang in inactive status…
As I see, session.close() used in audit and sql resolver, but I don’t see mechanism the internal db work.