wekan-help 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. #!/bin/bash
  2. # first read settings
  3. source $SNAP/bin/wekan-read-settings &>/dev/null
  4. if [ "$CADDY_ENABLED" = "true" ]; then
  5. # tweak port nunmber as it has been remapped
  6. export PORT=${CADDY_PORT} &>/dev/null
  7. fi
  8. echo -e "Wekan: The open-source kanban.\n"
  9. echo -e "\n"
  10. echo -e "Debug OIDC OAuth2 etc."
  11. echo -e "To enable the Debug of Wekan:"
  12. echo -e "\t$ snap set $SNAP_NAME debug='true'"
  13. echo -e "\t-Disable the Debug of Wekan:"
  14. echo -e "\t$ snap set $SNAP_NAME debug='false'"
  15. echo -e "\n"
  16. echo -e "To enable the MONGO_URL of Wekan:"
  17. echo -e "\t$ snap set $SNAP_NAME mongo-url='...'"
  18. echo -e "\t-Disable the MONGO_URL of Wekan:"
  19. echo -e "\t$ snap set $SNAP_NAME mongo-url=''"
  20. echo -e "\n"
  21. echo -e "Make sure you have connected all interfaces, check more by calling $ snap interfaces ${SNAP_NAME}"
  22. echo -e "\n"
  23. echo -e "${SNAP_NAME} has multiple services, to check status use systemctl"
  24. echo -e "\t$ systemctl status snap.$SNAP_NAME.*"
  25. echo -e "\n"
  26. echo -e "To make backup of wekan's database use: $ ${SNAP_NAME}.database-backup [backup file]"
  27. echo -e "\t backup file is optional parameter, if not passed backup is created in directory:"
  28. echo -e "\t\t${SNAP_COMMON}/db-backups"
  29. echo -e "To list existing backups in default directory: $ ${SNAP_NAME}.database-list-backups"
  30. echo -e "To restore wekan's database use: ${SNAP_NAME}.database-restore <path to backup>"
  31. echo -e "\n"
  32. echo -e "wekan can be configured to share mongodb with other services using content interface"
  33. echo -e "\t-sharing mongodb from $SNAP_NAME to other snap(s):"
  34. echo -e "\t\t-connect mongodb-slot with plug from corresponding snap(s)"
  35. echo -e "\t\t-configure corresponding service to use mongodb unix socket in shared directory, socket file name is: mongodb-$MONGODB_PORT.sock"
  36. echo -e "\t-sharing mongodb from other snap to $SNAP_NAME:"
  37. echo -e "\t\t-connect mongodb-plug with slot from snap providing mongodb"
  38. echo -e "\t\t-disable mongodb in $SNAP_NAME by calling: $ snap set $SNAP_NAME set disable-mongodb='true'"
  39. echo -e "\t\t-set mongodb-bind-unix-socket to point to serving mongodb. Use relative path inside shared directory, e.g run/mongodb-27017.sock"
  40. echo -e "\n"
  41. echo -e "To enable the API of wekan:"
  42. echo -e "\t$ snap set $SNAP_NAME with-api='true'"
  43. echo -e "\t-Disable the API:"
  44. echo -e "\t$ snap set $SNAP_NAME with-api='false'"
  45. echo -e "\n"
  46. echo -e "Accounts lockout known users failures before, greater than 0. Default: 3"
  47. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-failures-before='3'"
  48. echo -e "\n"
  49. echo -e "Accounts lockout know users period, in seconds. Default: 60"
  50. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-period='60'"
  51. echo -e "\n"
  52. echo -e "Accounts lockout unknown failure window, in seconds. Default: 15"
  53. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-failure-window='15'"
  54. echo -e "\n"
  55. echo -e "Accounts lockout unknown users failures before, greater than 0. Default: 3"
  56. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-failures-before='3'"
  57. echo -e "\n"
  58. echo -e "Accounts lockout unknown users lockout period, in seconds. Default: 60"
  59. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-lockout-period='60'"
  60. echo -e "\n"
  61. echo -e "Accounts lockout unknown users failure window, in seconds. Default: 15"
  62. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-failure-window='15'"
  63. echo -e "\n"
  64. echo -e "Rich text editor in card comments. Default: true https://github.com/wekan/wekan/pull/2560"
  65. echo -e "Default:"
  66. echo -e "\t$ snap set $SNAP_NAME richer-card-comment-editor='true'"
  67. echo -e "Disabled:"
  68. echo -e "\t$ snap set $SNAP_NAME richer-card-comment-editor='false'"
  69. echo -e "\n"
  70. echo -e "Max image pixel: Allow to shrink attached/pasted image https://github.com/wekan/wekan/pull/2544"
  71. echo -e "Example:"
  72. echo -e "\t$ snap set $SNAP_NAME max-image-pixel='1024'"
  73. echo -e "Disabled:"
  74. echo -e "\t$ snap set $SNAP_NAME max-image-pixel=''"
  75. echo -e "\n"
  76. echo -e "Image compress ratio: Allow to shrink attached/pasted image https://github.com/wekan/wekan/pull/2544"
  77. echo -e "Example:"
  78. echo -e "\t$ snap set $SNAP_NAME image-compress-ratio='80'"
  79. echo -e "Disabled:"
  80. echo -e "\t$ snap set $SNAP_NAME image-compress-ratio=''"
  81. echo -e "\n"
  82. echo -e "Allow to set attachment upload into specified server location. Create that directory first. https://github.com/wekan/wekan/pull/2603"
  83. echo -e "Example:"
  84. echo -e "\t$ snap set $SNAP_NAME attachments-store-path='/var/snap/wekan/common/attachments'"
  85. echo -e "Disabled:"
  86. echo -e "\t$ snap set $SNAP_NAME attachments-store-path=''"
  87. echo -e "\n"
  88. echo -e "BIGEVENTS DUE ETC NOTIFICATIONS https://github.com/wekan/wekan/pull/2541"
  89. echo -e "Big events pattern: Notify always due etc regardless of notification settings. Default: due, All: received|start|due|end, Disabled: NONE"
  90. echo -e "Default:"
  91. echo -e "\t$ snap set $SNAP_NAME bigevents-pattern='due'"
  92. echo -e "All:"
  93. echo -e "\t$ snap set $SNAP_NAME bigevents-pattern='received|start|due|end'"
  94. echo -e "Disabled:"
  95. echo -e "\t$ snap set $SNAP_NAME bigevents-pattern='NONE'"
  96. echo -e "\n"
  97. echo -e "EMAIL DUE DATE NOTIFICATION https://github.com/wekan/wekan/pull/2536"
  98. echo -e "System timelines will be showing any user modification for dueat startat endat receivedat, also notification to the watchers and if any card is due, about due or past due."
  99. echo -e "Notify due days, default 2 days before and after. 0 = due notifications disabled. Default: 2"
  100. echo -e "To enable different Notify Due Days Before And After than default 2:"
  101. echo -e "\t$ snap set $SNAP_NAME notify-due-days-before-and-after='4'"
  102. echo -e "\t-Disable Notifying for Due Days:"
  103. echo -e "\t$ snap set $SNAP_NAME notify-due-days-before-and-after='0'"
  104. echo -e "\n"
  105. echo -e "\t-To set back to default 2:"
  106. echo -e "\t$ snap set $SNAP_NAME notify-due-days-before-and-after=''"
  107. echo -e "\n"
  108. echo -e "Notify due at hour of day. Default every morning at 8am. Can be 0-23."
  109. echo -e "If env variable has parsing error, use default. Notification sent to watchers."
  110. echo -e "To enable different Notify Due At Hour Of Day than default 8:"
  111. echo -e "\t$ snap set $SNAP_NAME notify-due-at-hour-of-day='10'"
  112. echo -e "\t-To set back default 8 of Notify Due at Hour of Day:"
  113. echo -e "\t$ snap set $SNAP_NAME notify-due-at-hour-of-day=''"
  114. echo -e "\n"
  115. echo -e "To enable the Email Notification Timeout of wekan in ms, default 30000 (=30s):"
  116. echo -e "\t$ snap set $SNAP_NAME email-notification-timeout='10000'"
  117. echo -e "\t-Disable the Email Notification Timeout of Wekan:"
  118. echo -e "\t$ snap set $SNAP_NAME email-notification-timeout='30000'"
  119. echo -e "\n"
  120. echo -e "To enable the CORS of wekan, to set Access-Control-Allow-Origin header:"
  121. echo -e "\t$ snap set $SNAP_NAME cors='*'"
  122. echo -e "\t-Disable the CORS:"
  123. echo -e "\t$ snap set $SNAP_NAME cors=''"
  124. echo -e "\n"
  125. echo -e "To enable the Set Access-Control-Allow-Headers header. \"Authorization,Content-Type\" is required for cross-origin use of the API."
  126. echo -e "\t$ snap set $SNAP_NAME cors-allow-headers='Authorization,Content-Type'"
  127. echo -e "\t-Disable the Set Access-Control-Allow-Headers header. \"Authorization,Content-Type\" is required for cross-origin use of the API."
  128. echo -e "\t$ snap set $SNAP_NAME cors-allow-headers=''"
  129. echo -e "\n"
  130. echo -e "To enable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: *"
  131. echo -e "\t$ snap set $SNAP_NAME cors-expose-headers='*'"
  132. echo -e "\t-Disable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: ''"
  133. echo -e "\t$ snap set $SNAP_NAME cors-expose-headers=''"
  134. echo -e "\n"
  135. echo -e "Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside."
  136. echo -e "\t\t Setting this to false is not recommended, it also disables all other browser policy protections"
  137. echo -e "\t\t and allows all iframing etc. See wekan/server/policy.js"
  138. echo -e "To enable the Browser Policy of Wekan:"
  139. echo -e "\t$ snap set $SNAP_NAME browser-policy-enabled='true'"
  140. echo -e "\t-Disable the Browser Policy of Wekan:"
  141. echo -e "\t$ snap set $SNAP_NAME browser-policy-enabled='false'"
  142. echo -e "\n"
  143. echo -e "When browser policy is enabled, HTML code at this URL can have iframe that embeds Wekan inside."
  144. echo -e "To enable the Trusted URL of Wekan:"
  145. echo -e "\t$ snap set $SNAP_NAME trusted-url='https://example.com'"
  146. echo -e "\t-Disable the Trusted URL of Wekan:"
  147. echo -e "\t$ snap set $SNAP_NAME trusted-url=''"
  148. echo -e "\n"
  149. echo -e "What to send to Outgoing Webhook, or leave out. Example, that includes all that are default: cardId,listId,oldListId,boardId,comment,user,card,commentId ."
  150. echo -e "To enable the Webhooks Attributes of Wekan:"
  151. echo -e "\t$ snap set $SNAP_NAME webhooks-attributes='cardId,listId,oldListId,boardId,comment,user,card,commentId'"
  152. echo -e "\t-Disable the Webhooks Attributes of Wekan to send all default ones:"
  153. echo -e "\t$ snap set $SNAP_NAME webhooks-attributes=''"
  154. echo -e "\n"
  155. echo -e "OAuth2 Client ID."
  156. echo -e "To enable the OAuth2 Client ID of Wekan:"
  157. echo -e "\t$ snap set $SNAP_NAME oauth2-client-id='54321abcde'"
  158. echo -e "\t-Disable the OAuth2 Client ID of Wekan:"
  159. echo -e "\t$ snap set $SNAP_NAME oauth2-client-id=''"
  160. echo -e "\n"
  161. echo -e "OAuth2 login style: popup or redirect. Default: redirect"
  162. echo -e "To enable the OAuth2 login style popup of Wekan:"
  163. echo -e "\t$ snap set $SNAP_NAME oauth2-login-style='popup'"
  164. echo -e "\t-Disable the OAuth2 login style popup of Wekan:"
  165. echo -e "\t$ snap set $SNAP_NAME oauth2-login-style='redirect'"
  166. echo -e "\n"
  167. echo -e "OAuth2 Secret."
  168. echo -e "To enable the OAuth2 Secret of Wekan:"
  169. echo -e "\t$ snap set $SNAP_NAME oauth2-secret='54321abcde'"
  170. echo -e "\t-Disable the OAuth2 Secret of Wekan:"
  171. echo -e "\t$ snap set $SNAP_NAME oauth2-secret=''"
  172. echo -e "\n"
  173. echo -e "OAuth2 Server URL."
  174. echo -e "To enable the OAuth2 Server URL of Wekan:"
  175. echo -e "\t$ snap set $SNAP_NAME oauth2-server-url='https://chat.example.com'"
  176. echo -e "\t-Disable the OAuth2 Server URL of Wekan:"
  177. echo -e "\t$ snap set $SNAP_NAME oauth2-server-url=''"
  178. echo -e "\n"
  179. echo -e "OAuth2 Authorization Endpoint."
  180. echo -e "To enable the OAuth2 Authorization Endpoint of Wekan:"
  181. echo -e "\t$ snap set $SNAP_NAME oauth2-auth-endpoint='/oauth/authorize'"
  182. echo -e "\t-Disable the OAuth2 Authorization Endpoint of Wekan:"
  183. echo -e "\t$ snap set $SNAP_NAME oauth2-auth-endpoint=''"
  184. echo -e "\n"
  185. echo -e "OAuth2 Userinfo Endpoint."
  186. echo -e "To enable the OAuth2 Userinfo Endpoint of Wekan:"
  187. echo -e "\t$ snap set $SNAP_NAME oauth2-userinfo-endpoint='/oauth/authorize'"
  188. echo -e "\t-Disable the OAuth2 Userinfo Endpoint of Wekan:"
  189. echo -e "\t$ snap set $SNAP_NAME oauth2-userinfo-endpoint=''"
  190. echo -e "\n"
  191. echo -e "OAuth2 Token Endpoint."
  192. echo -e "To enable the OAuth2 Token Endpoint of Wekan:"
  193. echo -e "\t$ snap set $SNAP_NAME oauth2-token-endpoint='/oauth/token'"
  194. echo -e "\t-Disable the OAuth2 Token Endpoint of Wekan:"
  195. echo -e "\t$ snap set $SNAP_NAME oauth2-token-endpoint=''"
  196. echo -e "\n"
  197. echo -e "OAuth2 ID Token Whitelist Fields."
  198. echo -e "To enable the OAuth2 ID Token Whitelist Fields of Wekan:"
  199. echo -e "\t$ snap set $SNAP_NAME oauth2-id-token-whitelist-fields=[]"
  200. echo -e "\t-Disable the OAuth2 ID Token Whitelist Fields of Wekan:"
  201. echo -e "\t$ snap set $SNAP_NAME oauth2-id-token-whitelist-fields=''"
  202. echo -e "\n"
  203. echo -e "OAuth2 Request Permissions."
  204. echo -e "To enable the OAuth2 Request Permissions of Wekan:"
  205. echo -e "\t$ snap set $SNAP_NAME oauth2-request-permissions=\"'openid profile email'\""
  206. echo -e "\t-Disable the OAuth2 Request Permissions of Wekan:"
  207. echo -e "\t$ snap set $SNAP_NAME oauth2-request-permissions=''"
  208. echo -e "\n"
  209. echo -e "OAuth2 ID Mapping."
  210. echo -e "To enable the OAuth2 ID Mapping of Wekan:"
  211. echo -e "\t$ snap set $SNAP_NAME oauth2-id-map='username.uid'"
  212. echo -e "\t-Disable the OAuth2 ID Mapping of Wekan:"
  213. echo -e "\t$ snap set $SNAP_NAME oauth2-id-map=''"
  214. echo -e "\n"
  215. echo -e "OAuth2 Username Mapping."
  216. echo -e "To enable the OAuth2 Username Mapping of Wekan:"
  217. echo -e "\t$ snap set $SNAP_NAME oauth2-username-map='username'"
  218. echo -e "\t-Disable the OAuth2 Username Mapping of Wekan:"
  219. echo -e "\t$ snap set $SNAP_NAME oauth2-username-map=''"
  220. echo -e "\n"
  221. echo -e "OAuth2 Fullname Mapping."
  222. echo -e "To enable the OAuth2 Fullname Mapping of Wekan:"
  223. echo -e "\t$ snap set $SNAP_NAME oauth2-fullname-map='fullname'"
  224. echo -e "\t-Disable the OAuth2 Fullname Mapping of Wekan:"
  225. echo -e "\t$ snap set $SNAP_NAME oauth2-fullname-map=''"
  226. echo -e "\n"
  227. echo -e "OAuth2 Email Mapping."
  228. echo -e "To enable the OAuth2 Email Mapping of Wekan:"
  229. echo -e "\t$ snap set $SNAP_NAME oauth2-email-map='email'"
  230. echo -e "\t-Disable the OAuth2 Email Mapping of Wekan:"
  231. echo -e "\t$ snap set $SNAP_NAME oauth2-email-map=''"
  232. echo -e "\n"
  233. echo -e "Ldap Enable."
  234. echo -e "To enable the ldap of Wekan:"
  235. echo -e "\t$ snap set $SNAP_NAME ldap-enable='true'"
  236. echo -e "\t-Disable the ldap of Wekan:"
  237. echo -e "\t$ snap set $SNAP_NAME ldap-enable='false'"
  238. echo -e "\n"
  239. echo -e "Ldap Port."
  240. echo -e "The port of the ldap server:"
  241. echo -e "\t$ snap set $SNAP_NAME ldap-port='12345'"
  242. echo -e "\n"
  243. echo -e "Ldap Host."
  244. echo -e "The host server for the LDAP server:"
  245. echo -e "\t$ snap set $SNAP_NAME ldap-host='localhost'"
  246. echo -e "\n"
  247. echo -e "Ldap Base Dn."
  248. echo -e "The base DN for the LDAP Tree:"
  249. echo -e "\t$ snap set $SNAP_NAME ldap-basedn='ou=user,dc=example,dc=org'"
  250. echo -e "\n"
  251. echo -e "Ldap Login Fallback."
  252. echo -e "Fallback on the default authentication method:"
  253. echo -e "\t$ snap set $SNAP_NAME ldap-login-fallback='true'"
  254. echo -e "\n"
  255. echo -e "Ldap Reconnect."
  256. echo -e "Reconnect to the server if the connection is lost:"
  257. echo -e "\t$ snap set $SNAP_NAME ldap-reconnect='false'"
  258. echo -e "\n"
  259. echo -e "Ldap Timeout."
  260. echo -e "Overall timeout, in milliseconds:"
  261. echo -e "\t$ snap set $SNAP_NAME ldap-timeout='12345'"
  262. echo -e "\n"
  263. echo -e "Ldap Idle Timeout."
  264. echo -e "Specifies the timeout for idle LDAP connections in milliseconds:"
  265. echo -e "\t$ snap set $SNAP_NAME ldap-idle-timeout='12345'"
  266. echo -e "\n"
  267. echo -e "Ldap Connect Timeout."
  268. echo -e "Connection timeout, in milliseconds:"
  269. echo -e "\t$ snap set $SNAP_NAME ldap-connect-timeout='12345'"
  270. echo -e "\n"
  271. echo -e "Ldap Authentication."
  272. echo -e "If the LDAP needs a user account to search:"
  273. echo -e "\t$ snap set $SNAP_NAME ldap-authentication='true'"
  274. echo -e "\n"
  275. echo -e "Ldap Authentication User Dn."
  276. echo -e "The search user Dn:"
  277. echo -e "\t$ snap set $SNAP_NAME ldap-authentication-userdn='cn=admin,dc=example,dc=org'"
  278. echo -e "\n"
  279. echo -e "Ldap Authentication Password."
  280. echo -e "The password for the search user:"
  281. echo -e "\t$ snap set $SNAP_NAME ldap-authentication-password='admin'"
  282. echo -e "\n"
  283. echo -e "Ldap Log Enabled."
  284. echo -e "Enable logs for the module:"
  285. echo -e "\t$ snap set $SNAP_NAME ldap-log-enabled='true'"
  286. echo -e "\n"
  287. echo -e "Ldap Background Sync."
  288. echo -e "If the sync of the users should be done in the background:"
  289. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync='true'"
  290. echo -e "\n"
  291. echo -e "Ldap Background Sync Interval."
  292. echo -e "At which interval does the background task sync in milliseconds."
  293. echo -e "Leave this unset, so it uses default, and does not crash."
  294. echo -e "https://github.com/wekan/wekan/issues/2354#issuecomment-515305722"
  295. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-interval=''"
  296. echo -e "\n"
  297. echo -e "Ldap Background Sync Keep Existant Users Updated."
  298. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-keep-existant-users-updated='true'"
  299. echo -e "\n"
  300. echo -e "Ldap Background Sync Import New Users."
  301. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-import-new-users='true'"
  302. echo -e "\n"
  303. echo -e "Ldap Encryption."
  304. echo -e "Allow LDAPS:"
  305. echo -e "\t$ snap set $SNAP_NAME ldap-encryption='ssl'"
  306. echo -e "\n"
  307. echo -e "Ldap Ca Cert."
  308. echo -e "The certification for the LDAPS server:"
  309. echo -e "\t$ snap set $SNAP_NAME ldap-ca-cert=-----BEGIN CERTIFICATE-----MIIE+zCCA+OgAwIBAgIkAhwR/6TVLmdRY6hHxvUFWc0+Enmu/Hu6cj+G2FIdAgIC...-----END CERTIFICATE-----"
  310. echo -e "\n"
  311. echo -e "Ldap Reject Unauthorized."
  312. echo -e "Reject Unauthorized Certificate:"
  313. echo -e "\t$ snap set $SNAP_NAME ldap-reject-unauthorized='true'"
  314. echo -e "\n"
  315. echo -e "Option to login to the LDAP server with the user's own username and password, instead of an administrator key. Default: false (use administrator key)."
  316. echo -e "\t$ snap set $SNAP_NAME ldap-user-authentication='true'"
  317. echo -e "\n"
  318. echo -e "Which field is used to find the user for the user authentication. Default: uid."
  319. echo -e "\t$ snap set $SNAP_NAME ldap-user-authentication-field='uid'"
  320. echo -e "\n"
  321. echo -e "Ldap User Search Filter."
  322. echo -e "Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed:"
  323. echo -e "\t$ snap set $SNAP_NAME ldap-user-search-filter=''"
  324. echo -e "\n"
  325. echo -e "Ldap User Search Scope."
  326. echo -e "base (search only in the provided DN), one (search only in the provided DN and one level deep), or sub (search the whole subtree). Example: one"
  327. echo -e "\t$ snap set $SNAP_NAME ldap-user-search-scope=one"
  328. echo -e "\n"
  329. echo -e "Ldap User Search Field."
  330. echo -e "Which field is used to find the user:"
  331. echo -e "\t$ snap set $SNAP_NAME ldap-user-search-field='uid'"
  332. echo -e "\n"
  333. echo -e "Ldap Search Page Size."
  334. echo -e "Used for pagination (0=unlimited):"
  335. echo -e "\t$ snap set $SNAP_NAME ldap-search-page-size='12345'"
  336. echo -e "\n"
  337. echo -e "Ldap Search Size Limit."
  338. echo -e "The limit number of entries (0=unlimited):"
  339. echo -e "\t$ snap set $SNAP_NAME ldap-search-size-limit='12345'"
  340. echo -e "\n"
  341. echo -e "Ldap Group Filter Enable."
  342. echo -e "Enable group filtering:"
  343. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-enable='true'"
  344. echo -e "\n"
  345. echo -e "Ldap Group Filter ObjectClass."
  346. echo -e "The object class for filtering:"
  347. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-objectclass='group'"
  348. echo -e "\n"
  349. echo -e "Ldap Group Filter Id Attribute."
  350. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-id-attribute=''"
  351. echo -e "\n"
  352. echo -e "Ldap Group Filter Member Attribute."
  353. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-member-attribute=''"
  354. echo -e "\n"
  355. echo -e "Ldap Group Filter Member Format."
  356. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-member-format=''"
  357. echo -e "\n"
  358. echo -e "Ldap Group Filter Group Name."
  359. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-name=''"
  360. echo -e "\n"
  361. echo -e "Ldap Unique Identifier Field."
  362. echo -e "This field is sometimes class GUID (Globally Unique Identifier):"
  363. echo -e "\t$ snap set $SNAP_NAME ldap-unique-identifier-field=guid"
  364. echo -e "\n"
  365. echo -e "Ldap Utf8 Names Slugify."
  366. echo -e "Convert the username to utf8:"
  367. echo -e "\t$ snap set $SNAP_NAME ldap-utf8-names-slugify='false'"
  368. echo -e "\n"
  369. echo -e "Ldap Username Field."
  370. echo -e "Which field contains the ldap username:"
  371. echo -e "\t$ snap set $SNAP_NAME ldap-username-field='username'"
  372. echo -e "\n"
  373. echo -e "Ldap Fullname Field."
  374. echo -e "Which field contains the ldap fullname:"
  375. echo -e "\t$ snap set $SNAP_NAME ldap-fullname-field='fullname'"
  376. echo -e "\n"
  377. echo -e "Ldap Merge Existing Users."
  378. echo -e "\t$ snap set $SNAP_NAME ldap-merge-existing-users='true'"
  379. echo -e "\n"
  380. echo -e "Ldap Email Match Enable."
  381. echo -e "\t$ snap set $SNAP_NAME ldap-email-match-enable='true'"
  382. echo -e "\n"
  383. echo -e "Ldap Email Match Require."
  384. echo -e "\t$ snap set $SNAP_NAME ldap-email-match-require='true'"
  385. echo -e "\n"
  386. echo -e "Ldap Email Match Verified."
  387. echo -e "\t$ snap set $SNAP_NAME ldap-email-match-verfied='false'"
  388. echo -e "\n"
  389. echo -e "Ldap Fullname Field."
  390. echo -e "Which field contains the ldap email address:"
  391. echo -e "\t$ snap set $SNAP_NAME ldap-fullname-field='fullname'"
  392. echo -e "\n"
  393. echo -e "Ldap Sync User Data."
  394. echo -e "Enable synchronization of user data:"
  395. echo -e "\t$ snap set $SNAP_NAME ldap-sync-user-data='true'"
  396. echo -e "\n"
  397. echo -e "Ldap Sync User Data Fieldmap."
  398. echo -e "A field map for the matching:"
  399. echo -e "\t$ snap set $SNAP_NAME ldap-sync-user-data-fieldmap={\"cn\":\"name\", \"mail\":\"email\"}"
  400. echo -e "\n"
  401. echo -e "Ldap Sync Group Roles."
  402. echo -e "\t$ snap set $SNAP_NAME ldap-sync-group-roles=''"
  403. echo -e "\n"
  404. echo -e "Ldap Default Domain."
  405. echo -e "The default domain of the ldap it is used to create email if the field is not map correctly with the LDAP_SYNC_USER_DATA_FIELDMAP:"
  406. echo -e "\t$ snap set $SNAP_NAME ldap-default-domain=''"
  407. echo -e "\n"
  408. echo -e "Enable/Disable syncing of admin status based on LDAP groups."
  409. echo -e "\t$ snap set $SNAP_NAME ldap-sync-admin-status='true'"
  410. echo -e "\n"
  411. echo -e "Comma separated list of admin group names to sync."
  412. echo -e "\t$ snap set $SNAP_NAME ldap-sync-admin-groups='group1,group2'"
  413. echo -e "\n"
  414. echo -e "Logout with timer."
  415. echo -e "Enable or not the option that allows to disconnect an user after a given time:"
  416. echo -e "\t$ snap set $SNAP_NAME logout-with-timer='true'"
  417. echo -e "\n"
  418. echo -e "Login to LDAP automatically with HTTP header."
  419. echo -e "In below example for siteminder, at right side of = is header name."
  420. echo -e "\t$ snap set $SNAP_NAME header-login-id='HEADERUID'"
  421. echo -e "\t$ snap set $SNAP_NAME header-login-firstname='HEADERFIRSTNAME'"
  422. echo -e "\t$ snap set $SNAP_NAME header-login-lastname='HEADERLASTNAME'"
  423. echo -e "\t$ snap set $SNAP_NAME header-login-email='HEADEREMAILADDRESS'"
  424. echo -e "\n"
  425. echo -e "Logout in."
  426. echo -e "Logout in how many days:"
  427. echo -e "\t$ snap set $SNAP_NAME logout-in='1'"
  428. echo -e "\n"
  429. echo -e "Logout on hours."
  430. echo -e "Logout in how many hours:"
  431. echo -e "\t$ snap set $SNAP_NAME logout-on-hours='9'"
  432. echo -e "\n"
  433. echo -e "Logout on minutes."
  434. echo -e "Logout in how many minutes:"
  435. echo -e "\t$ snap set $SNAP_NAME logout-on-minutes='5'"
  436. echo -e "\n"
  437. echo -e "Default authentication method."
  438. echo -e "The default authentication method used if a user does not exist to create and authenticate. Method can be password or ldap."
  439. echo -e "\t$ snap set $SNAP_NAME default-authentication-method='ldap'"
  440. echo -e "\n"
  441. # parse config file for supported settings keys
  442. echo -e "wekan supports settings keys"
  443. echo -e "values can be changed by calling\n$ snap set $SNAP_NAME <key name>='<key value>'"
  444. echo -e "list of supported keys:"
  445. for key in ${keys[@]}
  446. do
  447. default_value="DEFAULT_$key"
  448. description="DESCRIPTION_$key"
  449. snappy_key="KEY_$key"
  450. echo -e "\t${!snappy_key}: ${!description}"
  451. if [ "x" == "x${!key}" ]; then
  452. echo -e "\t\tNo value set, using default value: '${!default_value}'"
  453. else
  454. echo -e "\t\tCurrent value set to: '${!key}', (default value: '${!default_value}')"
  455. fi
  456. done
  457. echo -e "\n!!!! Some changes result in restart of some or all services, use with caution !!!!!"