浏览代码

Fix syntax

Dipl. Ing. Péter Varkoly 1 年之前
父节点
当前提交
e887b06d21
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1 1
      DOCUMENTATION.md
  2. 1 3
      radicale/auth/ldap.py

+ 1 - 1
DOCUMENTATION.md

@@ -837,7 +837,7 @@ Default: `(cn={0})`
 Load the ldap groups of the authenticated user. These groups can be used later on to define rights. This also gives you access to the group calendars, if they exist.
 Load the ldap groups of the authenticated user. These groups can be used later on to define rights. This also gives you access to the group calendars, if they exist.
 * The group calendar will be placed under collection_root_folder/GROUPS
 * The group calendar will be placed under collection_root_folder/GROUPS
 * The name of the calendar directory is the base64 encoded group name.
 * The name of the calendar directory is the base64 encoded group name.
-* The group calneder folders will not be created automaticaly. This must be created manualy. Here you can find a script to create group calneder folders https://github.com/Kozea/Radicale/wiki/LDAP-authentication
+* The group calneder folders will not be created automaticaly. This must be created manualy. [Here](https://github.com/Kozea/Radicale/wiki/LDAP-authentication) you can find a script to create group calneder folders https://github.com/Kozea/Radicale/wiki/LDAP-authentication
 
 
 Default: False
 Default: False
 
 

+ 1 - 3
radicale/auth/ldap.py

@@ -25,7 +25,7 @@ Following parameters are needed in the configuration:
 Following parameters controls SSL connections:
 Following parameters controls SSL connections:
    ldap_use_ssl   If the connection
    ldap_use_ssl   If the connection
    ldap_ssl_verify_mode The certifikat verification mode. NONE, OPTIONAL, default is REQUIRED
    ldap_ssl_verify_mode The certifikat verification mode. NONE, OPTIONAL, default is REQUIRED
-   ldap_ssl_ca_file 
+   ldap_ssl_ca_file
 
 
 """
 """
 import ssl
 import ssl
@@ -42,12 +42,10 @@ class Auth(auth.BaseAuth):
     _ldap_filter: str
     _ldap_filter: str
     _ldap_load_groups: bool
     _ldap_load_groups: bool
     _ldap_version: int = 3
     _ldap_version: int = 3
-    #SSL stuff
     _ldap_use_ssl: bool = False
     _ldap_use_ssl: bool = False
     _ldap_ssl_verify_mode: int = ssl.CERT_REQUIRED
     _ldap_ssl_verify_mode: int = ssl.CERT_REQUIRED
     _ldap_ssl_ca_file: str = ""
     _ldap_ssl_ca_file: str = ""
 
 
-
     def __init__(self, configuration: config.Configuration) -> None:
     def __init__(self, configuration: config.Configuration) -> None:
         super().__init__(configuration)
         super().__init__(configuration)
         try:
         try: