add logging entries for dovecot, adjust for imap
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# This file is part of Radicale Server - Calendar Server
|
# This file is part of Radicale Server - Calendar Server
|
||||||
# Copyright © 2014 Giel van Schijndel
|
# Copyright © 2014 Giel van Schijndel
|
||||||
# Copyright © 2019 (GalaxyMaster)
|
# Copyright © 2019 (GalaxyMaster)
|
||||||
|
# Copyright © 2025-2025 Peter Bieringer <pb@bieringer.de>
|
||||||
#
|
#
|
||||||
# This library is free software: you can redistribute it and/or modify
|
# This library is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -35,9 +36,11 @@ class Auth(auth.BaseAuth):
|
|||||||
if config_family == "AF_UNIX":
|
if config_family == "AF_UNIX":
|
||||||
self.family = socket.AF_UNIX
|
self.family = socket.AF_UNIX
|
||||||
self.address = configuration.get("auth", "dovecot_socket")
|
self.address = configuration.get("auth", "dovecot_socket")
|
||||||
|
logger.info("auth dovecot socket: %r", self.address)
|
||||||
return
|
return
|
||||||
|
|
||||||
self.address = configuration.get("auth", "dovecot_host"), configuration.get("auth", "dovecot_port")
|
self.address = configuration.get("auth", "dovecot_host"), configuration.get("auth", "dovecot_port")
|
||||||
|
logger.warning("auth dovecot address: %r (INSECURE, credentials are transmitted in clear text)", self.address)
|
||||||
if config_family == "AF_INET":
|
if config_family == "AF_INET":
|
||||||
self.family = socket.AF_INET
|
self.family = socket.AF_INET
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class Auth(auth.BaseAuth):
|
|||||||
logger.info("auth imap host: %r", self._host)
|
logger.info("auth imap host: %r", self._host)
|
||||||
self._security = self.configuration.get("auth", "imap_security")
|
self._security = self.configuration.get("auth", "imap_security")
|
||||||
if self._security == "none":
|
if self._security == "none":
|
||||||
logger.info("auth imap security: %s (INSECURE, credentials are transmitted in clear text)", self._security)
|
logger.warning("auth imap security: %s (INSECURE, credentials are transmitted in clear text)", self._security)
|
||||||
else:
|
else:
|
||||||
logger.info("auth imap security: %s", self._security)
|
logger.info("auth imap security: %s", self._security)
|
||||||
if self._security == "tls":
|
if self._security == "tls":
|
||||||
|
|||||||
Reference in New Issue
Block a user