Prechádzať zdrojové kódy

Merge pull request #1682 from pbiering/minor-changes

add logging entries for dovecot, adjust for imap
Peter Bieringer 1 rok pred
rodič
commit
10a79b9483
2 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 3 0
      radicale/auth/dovecot.py
  2. 1 1
      radicale/auth/imap.py

+ 3 - 0
radicale/auth/dovecot.py

@@ -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:

+ 1 - 1
radicale/auth/imap.py

@@ -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":