Browse Source

Fix misspelling of hours at env variable setting LDAP_BACKGROUND_SYNC_INTERVAL.

Thanks to hubermam !

Fixes #5665
Lauri Ojansivu 4 tháng trước cách đây
mục cha
commit
36a3077853

+ 6 - 2
docker-compose.yml

@@ -577,10 +577,14 @@ services:
       # If the sync of the users should be done in the background
       #- LDAP_BACKGROUND_SYNC=false
       #
-      # At which interval does the background task sync.
+      # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
       # The format must be as specified in:
       # https://bunkat.github.io/later/parsers.html#text
-      #- LDAP_BACKGROUND_SYNC_INTERVAL=every 1 hour
+      #- LDAP_BACKGROUND_SYNC_INTERVAL=every 1 hours
+      # At which interval does the background task sync in milliseconds.
+      # Leave this unset, so it uses default, and does not crash.
+      # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+      - LDAP_BACKGROUND_SYNC_INTERVAL=''
       #
       #- LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
       #

+ 6 - 2
docker-compose.yml-arm64

@@ -575,10 +575,14 @@ services:
       # If the sync of the users should be done in the background
       #- LDAP_BACKGROUND_SYNC=false
       #
-      # At which interval does the background task sync.
+      # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
       # The format must be as specified in:
       # https://bunkat.github.io/later/parsers.html#text
-      #- LDAP_BACKGROUND_SYNC_INTERVAL=every 1 hour
+      #- LDAP_BACKGROUND_SYNC_INTERVAL=every 1 hours
+      # At which interval does the background task sync in milliseconds.
+      # Leave this unset, so it uses default, and does not crash.
+      # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+      - LDAP_BACKGROUND_SYNC_INTERVAL=''
       #
       #- LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
       #

+ 35 - 7
docs/Login/LDAP.md

@@ -52,7 +52,15 @@ sudo snap set wekan ldap-authentication-userdn='CN=LDAP-User,OU=Service Accounts
 sudo snap set wekan ldap-authentication-password='<password>'
 sudo snap set wekan ldap-log-enabled='true'
 sudo snap set wekan ldap-background-sync='true'
-sudo snap set wekan ldap-background-sync-interval='every 1 minute'
+# LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
+# The format must be as specified in:
+# https://bunkat.github.io/later/parsers.html#text
+#sudo snap set wekan ldap-background-sync-interval='every 1 hours'
+# At which interval does the background task sync in milliseconds.
+# If not in use, Leave this unset, so it uses default, and does not crash.
+# https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+#sudo snap set wekan ldap-background-sync-interval=''
+sudo snap set wekan ldap-background-sync-interval='every 1 hours'
 sudo snap set wekan ldap-background-sync-keep-existant-users-updated='true'
 sudo snap set wekan ldap-background-sync-import-new-users='true'
 sudo snap set wekan ldap-encryption='false'
@@ -100,7 +108,15 @@ snap set wekan ldap-basedn='dc=example,dc=com'
 snap set wekan ldap-background-sync='true'
 snap set wekan ldap-background-sync-keep-existant-users-updated='true'
 snap set wekan ldap-background-sync-import-new-users='true'
-snap set wekan ldap-background-sync-interval='Every 1 minute'
+# LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
+# The format must be as specified in:
+# https://bunkat.github.io/later/parsers.html#text
+#sudo snap set wekan ldap-background-sync-interval='every 1 hours'
+# At which interval does the background task sync in milliseconds.
+# If not in use, Leave this unset, so it uses default, and does not crash.
+# https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+#sudo snap set wekan ldap-background-sync-interval=''
+snap set wekan ldap-background-sync-interval='every 1 hours'
 snap set wekan ldap-merge-existing-users='true'
 snap set wekan ldap-user-search-field='uid'
 snap set wekan ldap-user-search-filter='(&(objectclass=person))'
@@ -121,7 +137,15 @@ sudo snap set wekan ldap-authentication-password='********'
 sudo snap set wekan ldap-authentication-userdn='cn=admin,dc=*******,dc=lan'
 sudo snap set wekan ldap-background-sync='true'
 sudo snap set wekan ldap-background-sync-import-new-users='true'
-sudo snap set wekan ldap-background-sync-interval='Every 1 minute'
+# LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
+# The format must be as specified in:
+# https://bunkat.github.io/later/parsers.html#text
+#sudo snap set wekan ldap-background-sync-interval='every 1 hours'
+# At which interval does the background task sync in milliseconds.
+# If not in use, Leave this unset, so it uses default, and does not crash.
+# https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+#sudo snap set wekan ldap-background-sync-interval=''
+sudo snap set wekan ldap-background-sync-interval='every 1 hours'
 sudo snap set wekan ldap-basedn='dc=*****,dc=lan'
 sudo snap set wekan ldap-email-field='mail'
 sudo snap set wekan ldap-enable='true'
@@ -316,10 +340,14 @@ services:
       # LDAP_BACKGROUND_SYNC : If the sync of the users should be done in the background
       # example : LDAP_BACKGROUND_SYNC=true
       - LDAP_BACKGROUND_SYNC=false
-      # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync
-      # example : LDAP_BACKGROUND_SYNC_INTERVAL='every 15 minutes'
-      # for more info: http://bunkat.github.io/later/parsers.html#text
-      - LDAP_BACKGROUND_SYNC_INTERVAL='every 1 hour'
+      # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
+      # The format must be as specified in:
+      # https://bunkat.github.io/later/parsers.html#text
+      #- LDAP_BACKGROUND_SYNC_INTERVAL=every 1 hours
+      # At which interval does the background task sync in milliseconds.
+      # Leave this unset, so it uses default, and does not crash.
+      # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+      - LDAP_BACKGROUND_SYNC_INTERVAL=''
       # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED : 
       # example : LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
       - LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false

+ 9 - 0
docs/Platforms/FOSS/torodb-postgresql/docker-compose.yml

@@ -520,6 +520,15 @@ services:
       # https://bunkat.github.io/later/parsers.html#text
       #- LDAP_BACKGROUND_SYNC_INTERVAL='every 1 hour'
       #
+      # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
+      # The format must be as specified in:
+      # https://bunkat.github.io/later/parsers.html#text
+      #- LDAP_BACKGROUND_SYNC_INTERVAL=every 1 hours
+      # At which interval does the background task sync in milliseconds.
+      # Leave this unset, so it uses default, and does not crash.
+      # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
+      - LDAP_BACKGROUND_SYNC_INTERVAL=''
+      #
       # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
       # example : LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
       #- LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false

+ 3 - 0
start-wekan.bat

@@ -459,6 +459,9 @@ REM # example : LDAP_BACKGROUND_SYNC=true
 REM SET LDAP_BACKGROUND_SYNC=false
 
 REM # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
+REM # The format must be as specified in:
+REM # https://bunkat.github.io/later/parsers.html#text
+REM SET LDAP_BACKGROUND_SYNC_INTERVAL=every 1 hours
 REM # At which interval does the background task sync in milliseconds.
 REM # Leave this unset, so it uses default, and does not crash.
 REM # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722

+ 3 - 0
start-wekan.sh

@@ -385,6 +385,9 @@
       #export LDAP_BACKGROUND_SYNC=false
       #
       # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
+      # The format must be as specified in:
+      # https://bunkat.github.io/later/parsers.html#text
+      #export LDAP_BACKGROUND_SYNC_INTERVAL=every 1 hours
       # At which interval does the background task sync in milliseconds.
       # Leave this unset, so it uses default, and does not crash.
       # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722