1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| #!/bin/bash snap set wekan caddy-bind-port='80' snap set wekan caddy-enabled='false' snap set wekan ldap-sync-user-data-fieldmap='{\"cn\":\"name\", \"mail\":\"email\"}' snap set wekan mail-from='username <username@xxxx.com>' snap set wekan mail-url='smtp://username:passwd@mail.xxxx.com:25' snap set wekan mongodb-bind-ip='127.0.0.1' snap set wekan port='3001' snap set wekan root-url='http://domainname' #----------------------------- snap set wekan ldap-enable='true' snap set wekan ldap-port='389' snap set wekan ldap-host='ldap.xxxx.com' snap set wekan ldap-basedn='OU=user,OU=xxxx,DC=xxxx,DC=com' snap set wekan ldap-login-fallback='false' snap set wekan ldap-reconnect='true' snap set wekan ldap-timeout='10000' snap set wekan ldap-idle-timeout='10000' snap set wekan ldap-vonnect-timeout='10000' snap set wekan ldap-authentication='true' snap set wekan ldap-authentication-userdn='cn=xxxx,ou=Special_Account,ou=user,ou=xxxx,dc=xxxx,dc=com' snap set wekan ldap-authentication-password='passwd' snap set wekan ldap-internal-log-level='debug' snap set wekan ldap-background-sync='false' snap set wekan ldap-background-sync-interval='100' snap set wekan ldap-encryption='false' snap set wekan ldap-reject-unauthorized='false' snap set wekan ldap-group-filter-enable='false' snap set wekan ldap-search-page-size='0' snap set wekan ldap-search-size-limit='0' snap set wekan ldap-user-search-filter='' snap set wekan ldap-user-search-field='sAMAccountName' snap set wekan ldap-user-search-scope='' snap set wekan ldap-unique-identifier-field='sAMAccountName' snap set wekan ldap-username-field='displayName' snap set wekan ldap-sync-user-data='false' # snap set wekan ldap-sync-user-data-fieldmap='{\"cn\":\"name\", \"mail\":\"email\"}' snap set wekan ldap-sync-user-data-fieldmap='{\"displayName\":\"name\", \"mail\":\"email\"}' snap set wekan ldap-merge-existing-users='true' snap set wekan ldap-utf8-names-slugify='true' snap set wekan ldap-fullname-field=displayName snap set wekan ldap-login-fallback=true snap set wekan default-authentication-method='ldap'
|