Skip to content

Commit

Permalink
Merge pull request #1682 from pbiering/minor-changes
Browse files Browse the repository at this point in the history
add logging entries for dovecot, adjust for imap
  • Loading branch information
pbiering authored Jan 20, 2025
2 parents f9457f0 + 26637a1 commit 10a79b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions radicale/auth/dovecot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file is part of Radicale Server - Calendar Server
# Copyright © 2014 Giel van Schijndel
# Copyright © 2019 (GalaxyMaster)
# Copyright © 2025-2025 Peter Bieringer <pb@bieringer.de>
#
# 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
Expand Down Expand Up @@ -35,9 +36,11 @@ def __init__(self, configuration):
if config_family == "AF_UNIX":
self.family = socket.AF_UNIX
self.address = configuration.get("auth", "dovecot_socket")
logger.info("auth dovecot socket: %r", self.address)
return

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":
self.family = socket.AF_INET
else:
Expand Down
2 changes: 1 addition & 1 deletion radicale/auth/imap.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, configuration) -> None:
logger.info("auth imap host: %r", self._host)
self._security = self.configuration.get("auth", "imap_security")
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:
logger.info("auth imap security: %s", self._security)
if self._security == "tls":
Expand Down

0 comments on commit 10a79b9

Please sign in to comment.