mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-31 11:45:44 +02:00
Update to 2024-01-03 12:00
This commit is contained in:
@@ -15,7 +15,7 @@ PASSWD = {{ seafile_db_pass }}
|
||||
DB = {{ seafile_db_ccnet }}
|
||||
CONNECTION_CHARSET = utf8
|
||||
|
||||
{% if seafile_ldap_auth is defined and seafile_ldap_auth %}
|
||||
{% if seafile_edition == 'pro' and seafile_ldap_auth is defined and seafile_ldap_auth %}
|
||||
[LDAP]
|
||||
HOST = {{ seafile_ldap_uri }}
|
||||
BASE = {{ seafile_ldap_base }}
|
||||
|
@@ -122,6 +122,7 @@ OAUTH_ATTRIBUTE_MAP = {
|
||||
"name": (False, "name"),
|
||||
}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if seafile_header_auth == True %}
|
||||
ENABLE_REMOTE_USER_AUTHENTICATION = True
|
||||
REMOTE_USER_HEADER = '{{ seafile_header_auth_name }}'
|
||||
@@ -169,3 +170,34 @@ ENABLE_UPLOAD_LINK_VIRUS_CHECK = True
|
||||
VIRUS_SCAN_NOTIFY_LIST = ['{{ system_admin_email }}']
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if seafile_edition == 'community' and seafile_ldap_auth is defined and seafile_ldap_auth %}
|
||||
ENABLE_LDAP = True
|
||||
LDAP_SERVER_URL = '{{ seafile_ldap_uri }}'
|
||||
LDAP_BASE_DN = '{{ seafile_ldap_base }}'
|
||||
{% if seafile_ldap_bind_dn is defined and seafile_ldap_bind_pass is defined %}
|
||||
LDAP_ADMIN_DN = '{{ seafile_ldap_bind_dn }}'
|
||||
LDAP_ADMIN_PASSWORD = '{{ seafile_ldap_bind_pass }}'
|
||||
{% endif %}
|
||||
LDAP_PROVIDER = 'ldap'
|
||||
LDAP_LOGIN_ATTR = '{{ seafile_ldap_login_attr }}'
|
||||
LDAP_FILTER = '{{ seafile_ldap_filter }}'
|
||||
LDAP_CONTACT_EMAIL_ATTR = '{{ seafile_ldap_email_attr }}'
|
||||
LDAP_USER_FIRST_NAME_ATTR = '{{ seafile_ldap_first_name_attr }}'
|
||||
LDAP_USER_LAST_NAME_ATTR = '{{ seafile_ldap_last_name_attr }}'
|
||||
|
||||
{% if seafile_license is defined %}
|
||||
LDAP_SYNC_INTERVAL = 60
|
||||
ENABLE_LDAP_USER_SYNC = True
|
||||
{% if seafile_ldap_group_filter is defined %}
|
||||
ENABLE_LDAP_GROUP_SYNC = True
|
||||
{% endif %}
|
||||
DEACTIVE_USER_IF_NOTFOUND = True
|
||||
LDAP_USER_OBJECT_CLASS = 'person'
|
||||
ENABLE_EXTRA_USER_INFO_SYNC = True
|
||||
DEPT_ATTR = '{{ seafile_ldap_dept_attr }}'
|
||||
LDAP_UID_ATTR = '{{ seafile_ldap_uid_attr }}'
|
||||
ACTIVATE_USER_WHEN_IMPORT = False
|
||||
ACTIVATE_AFTER_FIRST_LOGIN = True
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user