wekan-help 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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 "Make sure you have connected all interfaces, check more by calling $ snap interfaces ${SNAP_NAME}"
  17. echo -e "\n"
  18. echo -e "${SNAP_NAME} has multiple services, to check status use systemctl"
  19. echo -e "\t$ systemctl status snap.$SNAP_NAME.*"
  20. echo -e "\n"
  21. echo -e "To make backup of wekan's database use: $ ${SNAP_NAME}.database-backup [backup file]"
  22. echo -e "\t backup file is optional parameter, if not passed backup is created in directory:"
  23. echo -e "\t\t${SNAP_COMMON}/db-backups"
  24. echo -e "To list existing backups in default directory: $ ${SNAP_NAME}.database-list-backups"
  25. echo -e "To restore wekan's database use: ${SNAP_NAME}.database-restore <path to backup>"
  26. echo -e "\n"
  27. echo -e "wekan can be configured to share mongodb with other services using content interface"
  28. echo -e "\t-sharing mongodb from $SNAP_NAME to other snap(s):"
  29. echo -e "\t\t-connect mongodb-slot with plug from corresponding snap(s)"
  30. echo -e "\t\t-configure corresponding service to use mongodb unix socket in shared directory, socket file name is: mongodb-$MONGODB_PORT.sock"
  31. echo -e "\t-sharing mongodb from other snap to $SNAP_NAME:"
  32. echo -e "\t\t-connect mongodb-plug with slot from snap providing mongodb"
  33. echo -e "\t\t-disable mongodb in $SNAP_NAME by calling: $ snap set $SNAP_NAME set disable-mongodb='true'"
  34. 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"
  35. echo -e "\n"
  36. echo -e "To enable the API of wekan:"
  37. echo -e "\t$ snap set $SNAP_NAME with-api='true'"
  38. echo -e "\t-Disable the API:"
  39. echo -e "\t$ snap set $SNAP_NAME with-api='false'"
  40. echo -e "\n"
  41. echo -e "Accounts lockout known users failures before, greater than 0. Default: 3"
  42. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-failures-before='3'"
  43. echo -e "\n"
  44. echo -e "Accounts lockout know users period, in seconds. Default: 60"
  45. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-period='60'"
  46. echo -e "\n"
  47. echo -e "Accounts lockout unknown failure window, in seconds. Default: 15"
  48. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-failure-window='15'"
  49. echo -e "\n"
  50. echo -e "Accounts lockout unknown users failures before, greater than 0. Default: 3"
  51. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-failures-before='3'"
  52. echo -e "\n"
  53. echo -e "Accounts lockout unknown users lockout period, in seconds. Default: 60"
  54. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-lockout-period='60'"
  55. echo -e "\n"
  56. echo -e "Accounts lockout unknown users failure window, in seconds. Default: 15"
  57. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-failure-window='15'"
  58. echo -e "\n"
  59. echo -e "To enable the Email Notification Timeout of wekan in ms, default 30000 (=30s):"
  60. echo -e "\t$ snap set $SNAP_NAME email-notification-timeout='10000'"
  61. echo -e "\t-Disable the Email Notification Timeout of Wekan:"
  62. echo -e "\t$ snap set $SNAP_NAME email-notification-timeout='30000'"
  63. echo -e "\n"
  64. echo -e "To enable the CORS of wekan, to set Access-Control-Allow-Origin header:"
  65. echo -e "\t$ snap set $SNAP_NAME cors='*'"
  66. echo -e "\t-Disable the CORS:"
  67. echo -e "\t$ snap set $SNAP_NAME cors=''"
  68. echo -e "\n"
  69. echo -e "To enable the Set Access-Control-Allow-Headers header. \"Authorization,Content-Type\" is required for cross-origin use of the API."
  70. echo -e "\t$ snap set $SNAP_NAME cors-allow-headers='Authorization,Content-Type'"
  71. echo -e "\t-Disable the Set Access-Control-Allow-Headers header. \"Authorization,Content-Type\" is required for cross-origin use of the API."
  72. echo -e "\t$ snap set $SNAP_NAME cors-allow-headers=''"
  73. echo -e "\n"
  74. echo -e "To enable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: *"
  75. echo -e "\t$ snap set $SNAP_NAME cors-expose-headers='*'"
  76. echo -e "\t-Disable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: ''"
  77. echo -e "\t$ snap set $SNAP_NAME cors-expose-headers=''"
  78. echo -e "\n"
  79. echo -e "Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside."
  80. echo -e "\t\t Setting this to false is not recommended, it also disables all other browser policy protections"
  81. echo -e "\t\t and allows all iframing etc. See wekan/server/policy.js"
  82. echo -e "To enable the Browser Policy of Wekan:"
  83. echo -e "\t$ snap set $SNAP_NAME browser-policy-enabled='true'"
  84. echo -e "\t-Disable the Browser Policy of Wekan:"
  85. echo -e "\t$ snap set $SNAP_NAME browser-policy-enabled='false'"
  86. echo -e "\n"
  87. echo -e "When browser policy is enabled, HTML code at this URL can have iframe that embeds Wekan inside."
  88. echo -e "To enable the Trusted URL of Wekan:"
  89. echo -e "\t$ snap set $SNAP_NAME trusted-url='https://example.com'"
  90. echo -e "\t-Disable the Trusted URL of Wekan:"
  91. echo -e "\t$ snap set $SNAP_NAME trusted-url=''"
  92. echo -e "\n"
  93. 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 ."
  94. echo -e "To enable the Webhooks Attributes of Wekan:"
  95. echo -e "\t$ snap set $SNAP_NAME webhooks-attributes='cardId,listId,oldListId,boardId,comment,user,card,commentId'"
  96. echo -e "\t-Disable the Webhooks Attributes of Wekan to send all default ones:"
  97. echo -e "\t$ snap set $SNAP_NAME webhooks-attributes=''"
  98. echo -e "\n"
  99. echo -e "OAuth2 Client ID."
  100. echo -e "To enable the OAuth2 Client ID of Wekan:"
  101. echo -e "\t$ snap set $SNAP_NAME oauth2-client-id='54321abcde'"
  102. echo -e "\t-Disable the OAuth2 Client ID of Wekan:"
  103. echo -e "\t$ snap set $SNAP_NAME oauth2-client-id=''"
  104. echo -e "\n"
  105. echo -e "OAuth2 login style: popup or redirect. Default: redirect"
  106. echo -e "To enable the OAuth2 login style popup of Wekan:"
  107. echo -e "\t$ snap set $SNAP_NAME oauth2-login-style='popup'"
  108. echo -e "\t-Disable the OAuth2 login style popup of Wekan:"
  109. echo -e "\t$ snap set $SNAP_NAME oauth2-login-style='redirect'"
  110. echo -e "\n"
  111. echo -e "OAuth2 Secret."
  112. echo -e "To enable the OAuth2 Secret of Wekan:"
  113. echo -e "\t$ snap set $SNAP_NAME oauth2-secret='54321abcde'"
  114. echo -e "\t-Disable the OAuth2 Secret of Wekan:"
  115. echo -e "\t$ snap set $SNAP_NAME oauth2-secret=''"
  116. echo -e "\n"
  117. echo -e "OAuth2 Server URL."
  118. echo -e "To enable the OAuth2 Server URL of Wekan:"
  119. echo -e "\t$ snap set $SNAP_NAME oauth2-server-url='https://chat.example.com'"
  120. echo -e "\t-Disable the OAuth2 Server URL of Wekan:"
  121. echo -e "\t$ snap set $SNAP_NAME oauth2-server-url=''"
  122. echo -e "\n"
  123. echo -e "OAuth2 Authorization Endpoint."
  124. echo -e "To enable the OAuth2 Authorization Endpoint of Wekan:"
  125. echo -e "\t$ snap set $SNAP_NAME oauth2-auth-endpoint='/oauth/authorize'"
  126. echo -e "\t-Disable the OAuth2 Authorization Endpoint of Wekan:"
  127. echo -e "\t$ snap set $SNAP_NAME oauth2-auth-endpoint=''"
  128. echo -e "\n"
  129. echo -e "OAuth2 Userinfo Endpoint."
  130. echo -e "To enable the OAuth2 Userinfo Endpoint of Wekan:"
  131. echo -e "\t$ snap set $SNAP_NAME oauth2-userinfo-endpoint='/oauth/authorize'"
  132. echo -e "\t-Disable the OAuth2 Userinfo Endpoint of Wekan:"
  133. echo -e "\t$ snap set $SNAP_NAME oauth2-userinfo-endpoint=''"
  134. echo -e "\n"
  135. echo -e "OAuth2 Token Endpoint."
  136. echo -e "To enable the OAuth2 Token Endpoint of Wekan:"
  137. echo -e "\t$ snap set $SNAP_NAME oauth2-token-endpoint='/oauth/token'"
  138. echo -e "\t-Disable the OAuth2 Token Endpoint of Wekan:"
  139. echo -e "\t$ snap set $SNAP_NAME oauth2-token-endpoint=''"
  140. echo -e "\n"
  141. echo -e "OAuth2 ID Token Whitelist Fields."
  142. echo -e "To enable the OAuth2 ID Token Whitelist Fields of Wekan:"
  143. echo -e "\t$ snap set $SNAP_NAME oauth2-id-token-whitelist-fields='[]'"
  144. echo -e "\t-Disable the OAuth2 ID Token Whitelist Fields of Wekan:"
  145. echo -e "\t$ snap set $SNAP_NAME oauth2-id-token-whitelist-fields=''"
  146. echo -e "\n"
  147. echo -e "OAuth2 Request Permissions."
  148. echo -e "To enable the OAuth2 Request Permissions of Wekan:"
  149. echo -e "\t$ snap set $SNAP_NAME oauth2-request-permissions=\"'openid profile email'\""
  150. echo -e "\t-Disable the OAuth2 Request Permissions of Wekan:"
  151. echo -e "\t$ snap set $SNAP_NAME oauth2-request-permissions=''"
  152. echo -e "\n"
  153. echo -e "OAuth2 ID Mapping."
  154. echo -e "To enable the OAuth2 ID Mapping of Wekan:"
  155. echo -e "\t$ snap set $SNAP_NAME oauth2-id-map='username.uid'"
  156. echo -e "\t-Disable the OAuth2 ID Mapping of Wekan:"
  157. echo -e "\t$ snap set $SNAP_NAME oauth2-id-map=''"
  158. echo -e "\n"
  159. echo -e "OAuth2 Username Mapping."
  160. echo -e "To enable the OAuth2 Username Mapping of Wekan:"
  161. echo -e "\t$ snap set $SNAP_NAME oauth2-username-map='username'"
  162. echo -e "\t-Disable the OAuth2 Username Mapping of Wekan:"
  163. echo -e "\t$ snap set $SNAP_NAME oauth2-username-map=''"
  164. echo -e "\n"
  165. echo -e "OAuth2 Fullname Mapping."
  166. echo -e "To enable the OAuth2 Fullname Mapping of Wekan:"
  167. echo -e "\t$ snap set $SNAP_NAME oauth2-fullname-map='fullname'"
  168. echo -e "\t-Disable the OAuth2 Fullname Mapping of Wekan:"
  169. echo -e "\t$ snap set $SNAP_NAME oauth2-fullname-map=''"
  170. echo -e "\n"
  171. echo -e "OAuth2 Email Mapping."
  172. echo -e "To enable the OAuth2 Email Mapping of Wekan:"
  173. echo -e "\t$ snap set $SNAP_NAME oauth2-email-map='email'"
  174. echo -e "\t-Disable the OAuth2 Email Mapping of Wekan:"
  175. echo -e "\t$ snap set $SNAP_NAME oauth2-email-map=''"
  176. echo -e "\n"
  177. echo -e "Ldap Enable."
  178. echo -e "To enable the ldap of Wekan:"
  179. echo -e "\t$ snap set $SNAP_NAME ldap-enable='true'"
  180. echo -e "\t-Disable the ldap of Wekan:"
  181. echo -e "\t$ snap set $SNAP_NAME ldap-enable='false'"
  182. echo -e "\n"
  183. echo -e "Ldap Port."
  184. echo -e "The port of the ldap server:"
  185. echo -e "\t$ snap set $SNAP_NAME ldap-port='12345'"
  186. echo -e "\n"
  187. echo -e "Ldap Host."
  188. echo -e "The host server for the LDAP server:"
  189. echo -e "\t$ snap set $SNAP_NAME ldap-host='localhost'"
  190. echo -e "\n"
  191. echo -e "Ldap Base Dn."
  192. echo -e "The base DN for the LDAP Tree:"
  193. echo -e "\t$ snap set $SNAP_NAME ldap-basedn='ou=user,dc=example,dc=org'"
  194. echo -e "\n"
  195. echo -e "Ldap Login Fallback."
  196. echo -e "Fallback on the default authentication method:"
  197. echo -e "\t$ snap set $SNAP_NAME ldap-login-fallback='true'"
  198. echo -e "\n"
  199. echo -e "Ldap Reconnect."
  200. echo -e "Reconnect to the server if the connection is lost:"
  201. echo -e "\t$ snap set $SNAP_NAME ldap-reconnect='false'"
  202. echo -e "\n"
  203. echo -e "Ldap Timeout."
  204. echo -e "Overall timeout, in milliseconds:"
  205. echo -e "\t$ snap set $SNAP_NAME ldap-timeout='12345'"
  206. echo -e "\n"
  207. echo -e "Ldap Idle Timeout."
  208. echo -e "Specifies the timeout for idle LDAP connections in milliseconds:"
  209. echo -e "\t$ snap set $SNAP_NAME ldap-idle-timeout='12345'"
  210. echo -e "\n"
  211. echo -e "Ldap Connect Timeout."
  212. echo -e "Connection timeout, in milliseconds:"
  213. echo -e "\t$ snap set $SNAP_NAME ldap-connect-timeout='12345'"
  214. echo -e "\n"
  215. echo -e "Ldap Authentication."
  216. echo -e "If the LDAP needs a user account to search:"
  217. echo -e "\t$ snap set $SNAP_NAME ldap-authentication='true'"
  218. echo -e "\n"
  219. echo -e "Ldap Authentication User Dn."
  220. echo -e "The search user Dn:"
  221. echo -e "\t$ snap set $SNAP_NAME ldap-authentication-userdn='cn=admin,dc=example,dc=org'"
  222. echo -e "\n"
  223. echo -e "Ldap Authentication Password."
  224. echo -e "The password for the search user:"
  225. echo -e "\t$ snap set $SNAP_NAME ldap-authentication-password='admin'"
  226. echo -e "\n"
  227. echo -e "Ldap Log Enabled."
  228. echo -e "Enable logs for the module:"
  229. echo -e "\t$ snap set $SNAP_NAME ldap-log-enabled='true'"
  230. echo -e "\n"
  231. echo -e "Ldap Background Sync."
  232. echo -e "If the sync of the users should be done in the background:"
  233. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync='true'"
  234. echo -e "\n"
  235. echo -e "Ldap Background Sync Interval."
  236. echo -e "At which interval does the background task sync in milliseconds:"
  237. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-interval='12345'"
  238. echo -e "\n"
  239. echo -e "Ldap Background Sync Keep Existant Users Updated."
  240. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-keep-existant-users-updated='true'"
  241. echo -e "\n"
  242. echo -e "Ldap Background Sync Import New Users."
  243. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-import-new-users='true'"
  244. echo -e "\n"
  245. echo -e "Ldap Encryption."
  246. echo -e "Allow LDAPS:"
  247. echo -e "\t$ snap set $SNAP_NAME ldap-encryption='ssl'"
  248. echo -e "\n"
  249. echo -e "Ldap Ca Cert."
  250. echo -e "The certification for the LDAPS server:"
  251. echo -e "\t$ snap set $SNAP_NAME ldap-ca-cert=-----BEGIN CERTIFICATE-----MIIE+zCCA+OgAwIBAgIkAhwR/6TVLmdRY6hHxvUFWc0+Enmu/Hu6cj+G2FIdAgIC...-----END CERTIFICATE-----"
  252. echo -e "\n"
  253. echo -e "Ldap Reject Unauthorized."
  254. echo -e "Reject Unauthorized Certificate:"
  255. echo -e "\t$ snap set $SNAP_NAME ldap-reject-unauthorized='true'"
  256. echo -e "\n"
  257. 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)."
  258. echo -e "\t$ snap set $SNAP_NAME ldap-user-authentication='true'"
  259. echo -e "\n"
  260. echo -e "Ldap User Search Filter."
  261. echo -e "Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed:"
  262. echo -e "\t$ snap set $SNAP_NAME ldap-user-search-filter=''"
  263. echo -e "\n"
  264. echo -e "Ldap User Search Scope."
  265. 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"
  266. echo -e "\t$ snap set $SNAP_NAME ldap-user-search-scope=one"
  267. echo -e "\n"
  268. echo -e "Ldap User Search Field."
  269. echo -e "Which field is used to find the user:"
  270. echo -e "\t$ snap set $SNAP_NAME ldap-user-search-field='uid'"
  271. echo -e "\n"
  272. echo -e "Ldap Search Page Size."
  273. echo -e "Used for pagination (0=unlimited):"
  274. echo -e "\t$ snap set $SNAP_NAME ldap-search-page-size='12345'"
  275. echo -e "\n"
  276. echo -e "Ldap Search Size Limit."
  277. echo -e "The limit number of entries (0=unlimited):"
  278. echo -e "\t$ snap set $SNAP_NAME ldap-search-size-limit='12345'"
  279. echo -e "\n"
  280. echo -e "Ldap Group Filter Enable."
  281. echo -e "Enable group filtering:"
  282. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-enable='true'"
  283. echo -e "\n"
  284. echo -e "Ldap Group Filter ObjectClass."
  285. echo -e "The object class for filtering:"
  286. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-objectclass='group'"
  287. echo -e "\n"
  288. echo -e "Ldap Group Filter Id Attribute."
  289. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-id-attribute=''"
  290. echo -e "\n"
  291. echo -e "Ldap Group Filter Member Attribute."
  292. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-member-attribute=''"
  293. echo -e "\n"
  294. echo -e "Ldap Group Filter Member Format."
  295. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-member-format=''"
  296. echo -e "\n"
  297. echo -e "Ldap Group Filter Group Name."
  298. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-name=''"
  299. echo -e "\n"
  300. echo -e "Ldap Unique Identifier Field."
  301. echo -e "This field is sometimes class GUID (Globally Unique Identifier):"
  302. echo -e "\t$ snap set $SNAP_NAME ldap-unique-identifier-field=guid"
  303. echo -e "\n"
  304. echo -e "Ldap Utf8 Names Slugify."
  305. echo -e "Convert the username to utf8:"
  306. echo -e "\t$ snap set $SNAP_NAME ldap-utf8-names-slugify='false'"
  307. echo -e "\n"
  308. echo -e "Ldap Username Field."
  309. echo -e "Which field contains the ldap username:"
  310. echo -e "\t$ snap set $SNAP_NAME ldap-username-field='username'"
  311. echo -e "\n"
  312. echo -e "Ldap Fullname Field."
  313. echo -e "Which field contains the ldap fullname:"
  314. echo -e "\t$ snap set $SNAP_NAME ldap-fullname-field='fullname'"
  315. echo -e "\n"
  316. echo -e "Ldap Merge Existing Users."
  317. echo -e "\t$ snap set $SNAP_NAME ldap-merge-existing-users='true'"
  318. echo -e "\n"
  319. echo -e "Ldap Email Match Enable."
  320. echo -e "\t$ snap set $SNAP_NAME ldap-email-match-enable='true'"
  321. echo -e "\n"
  322. echo -e "Ldap Email Match Require."
  323. echo -e "\t$ snap set $SNAP_NAME ldap-email-match-require='true'"
  324. echo -e "\n"
  325. echo -e "Ldap Email Match Verified."
  326. echo -e "\t$ snap set $SNAP_NAME ldap-email-match-verfied='false'"
  327. echo -e "\n"
  328. echo -e "Ldap Fullname Field."
  329. echo -e "Which field contains the ldap email address:"
  330. echo -e "\t$ snap set $SNAP_NAME ldap-fullname-field='fullname'"
  331. echo -e "\n"
  332. echo -e "Ldap Sync User Data."
  333. echo -e "Enable synchronization of user data:"
  334. echo -e "\t$ snap set $SNAP_NAME ldap-sync-user-data='true'"
  335. echo -e "\n"
  336. echo -e "Ldap Sync User Data Fieldmap."
  337. echo -e "A field map for the matching:"
  338. echo -e "\t$ snap set $SNAP_NAME ldap-sync-user-data-fieldmap={\"cn\":\"name\", \"mail\":\"email\"}"
  339. echo -e "\n"
  340. echo -e "Ldap Sync Group Roles."
  341. echo -e "\t$ snap set $SNAP_NAME ldap-sync-group-roles=''"
  342. echo -e "\n"
  343. echo -e "Ldap Default Domain."
  344. 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:"
  345. echo -e "\t$ snap set $SNAP_NAME ldap-default-domain=''"
  346. echo -e "\n"
  347. echo -e "Enable/Disable syncing of admin status based on LDAP groups."
  348. echo -e "\t$ snap set $SNAP_NAME ldap-sync-admin-status='true'"
  349. echo -e "\n"
  350. echo -e "Comma separated list of admin group names to sync."
  351. echo -e "\t$ snap set $SNAP_NAME ldap-sync-admin-groups='group1,group2'"
  352. echo -e "\n"
  353. echo -e "Logout with timer."
  354. echo -e "Enable or not the option that allows to disconnect an user after a given time:"
  355. echo -e "\t$ snap set $SNAP_NAME logout-with-timer='true'"
  356. echo -e "\n"
  357. echo -e "Login to LDAP automatically with HTTP header."
  358. echo -e "In below example for siteminder, at right side of = is header name."
  359. echo -e "\t$ snap set $SNAP_NAME header-login-id='HEADERUID'"
  360. echo -e "\t$ snap set $SNAP_NAME header-login-firstname='HEADERFIRSTNAME'"
  361. echo -e "\t$ snap set $SNAP_NAME header-login-lastname='HEADERLASTNAME'"
  362. echo -e "\t$ snap set $SNAP_NAME header-login-email='HEADEREMAILADDRESS'"
  363. echo -e "\n"
  364. echo -e "Logout in."
  365. echo -e "Logout in how many days:"
  366. echo -e "\t$ snap set $SNAP_NAME logout-in='1'"
  367. echo -e "\n"
  368. echo -e "Logout on hours."
  369. echo -e "Logout in how many hours:"
  370. echo -e "\t$ snap set $SNAP_NAME logout-on-hours='9'"
  371. echo -e "\n"
  372. echo -e "Logout on minutes."
  373. echo -e "Logout in how many minutes:"
  374. echo -e "\t$ snap set $SNAP_NAME logout-on-minutes='5'"
  375. echo -e "\n"
  376. echo -e "Default authentication method."
  377. echo -e "The default authentication method used if a user does not exist to create and authenticate. Method can be password or ldap."
  378. echo -e "\t$ snap set $SNAP_NAME default-authentication-method='ldap'"
  379. echo -e "\n"
  380. # parse config file for supported settings keys
  381. echo -e "wekan supports settings keys"
  382. echo -e "values can be changed by calling\n$ snap set $SNAP_NAME <key name>='<key value>'"
  383. echo -e "list of supported keys:"
  384. for key in ${keys[@]}
  385. do
  386. default_value="DEFAULT_$key"
  387. description="DESCRIPTION_$key"
  388. snappy_key="KEY_$key"
  389. echo -e "\t${!snappy_key}: ${!description}"
  390. if [ "x" == "x${!key}" ]; then
  391. echo -e "\t\tNo value set, using default value: '${!default_value}'"
  392. else
  393. echo -e "\t\tCurrent value set to: '${!key}', (default value: '${!default_value}')"
  394. fi
  395. done
  396. echo -e "\n!!!! Some changes result in restart of some or all services, use with caution !!!!!"