This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (C) <year> <name of author> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2020-04-24 17:29:57,728][6537][139756680177472][DEBUG][privacyidea.api.before_after:84] Begin handling of request '/auth?' | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.api.lib.utils:254] Can not get param: Expecting value: line 1 column 1 (char 0) | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.audit:189] Entering getAudit with arguments HIDDEN and keywords HIDDEN | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.utils:1198] klass: <class 'privacyidea.lib.auditmodules.loggeraudit.Audit'> | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.audit:198] Exiting getAudit with result <privacyidea.lib.auditmodules.loggeraudit.Audit object at 0x7f1b92906860> | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.config:186] Entering get_from_config with arguments ('OverrideAuthorizationClient',) and keywords {} | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.config:323] Cloning request-l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2020-04-24 17:29:57,728][6537][139756680177472][DEBUG][privacyidea.api.before_after:84] Begin handling of request '/auth?' | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.api.lib.utils:254] Can not get param: Expecting value: line 1 column 1 (char 0) | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.audit:189] Entering getAudit with arguments HIDDEN and keywords HIDDEN | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.utils:1198] klass: <class 'privacyidea.lib.auditmodules.loggeraudit.Audit'> | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.audit:198] Exiting getAudit with result <privacyidea.lib.auditmodules.loggeraudit.Audit object at 0x7f1b92906860> | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.config:186] Entering get_from_config with arguments ('OverrideAuthorizationClient',) and keywords {} | |
[2020-04-24 17:29:57,729][6537][139756680177472][DEBUG][privacyidea.lib.config:323] Cloning request-l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~$ privacyidea -n -U http://localhost:5000 -a admin -p test token list | |
No cryptography package available. You can not enroll yubikeys with static password. | |
Traceback (most recent call last): | |
File "/path/to/privacyideaadm/venv/bin/privacyidea", line 7, in <module> | |
exec(compile(f.read(), __file__, 'exec')) | |
File "/path/to/privacyideaadm/scripts/privacyidea", line 134, in <module> | |
main() | |
File "/path/to/privacyideaadm/scripts/privacyidea", line 126, in main | |
cli(obj={}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2020-04-17 17:44:36,067][13845][139848312690496][INFO][privacyidea.lib.auditmodules.loggeraudit:85] {"action": "POST /auth", "action_detail": "", "administrator": "admin", "client": "127.0.0.1", "client_user_agent": null, "info": "internal admin", "policies": "", "privacyidea_server": "localhost:5000", "realm": null, "success": true, "timestamp": "2020-04-17T15:44:36.067535", "user": ""} | |
[2020-04-17 17:44:36,067][13845][139848312690496][DEBUG][privacyidea.api.lib.utils:254] Can not get param: No JSON object could be decoded | |
[2020-04-17 17:44:36,069][13845][139848312690496][DEBUG][privacyidea.api.before_after:90] End handling of request u'/auth?' | |
[2020-04-17 17:44:36,072][13845][139848312690496][DEBUG][privacyidea.api.before_after:84] Begin handling of request u'/token/?' | |
[2020-04-17 17:44:36,073][13845][139848312690496][ERROR][privacyidea.app:1892] Exception on /token/ [GET] | |
Traceback (most recent call last): | |
File "/home/henning/Dokumente/Dev/test/venv2/local/lib/python2.7/site-packages/flask/app.py", line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/privacyidea/logging_logstash_simple.cfg | |
[handlers] | |
keys=logstash_async | |
[handler_logstash_async] | |
# https://python-logstash-async.readthedocs.io/en/latest/usage.html#usage-with-logging-file-config | |
class=logstash_async.handler.AsynchronousLogstashHandler | |
level=INFO | |
args=('%(host)s', %(port)s,'%(database_path)s') | |
host=192.168.56.150 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# logging configuration file /etc/privacyidea/logging.yml for privacyIDEA 3.3 | |
# as given for the guide given at privacyidea.org | |
# https://www.privacyidea.org/event-based-logging-with-privacyidea-and-logstash | |
version: 1 | |
formatters: | |
detail: | |
class: privacyidea.lib.log.SecureFormatter | |
format: >- | |
[%(asctime)s][%(process)d][%(thread)d][%(levelname)s][%(name)s:%(lineno)d] | |
%(message)s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1 | |
formatters: | |
detail: | |
class: privacyidea.lib.log.SecureFormatter | |
format: >- | |
[%(asctime)s][%(process)d][%(thread)d][%(levelname)s][%(name)s:%(lineno)d] | |
%(message)s | |
handlers: | |
logfile: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/privacyidea/logging.yml | |
version: 1 | |
formatters: | |
detail: | |
class: privacyidea.lib.log.SecureFormatter | |
format: >- | |
[%(asctime)s][%(process)d][%(thread)d][%(levelname)s][%(name)s:%(lineno)d] | |
%(message)s | |
handlers: |
NewerOlder