mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-18 00:06:05 +02:00
- Added 'xwiki.superadmin=1' alongside the password in 'xwiki.cfg' to properly activate the superadmin account during bootstrap. - Simplified 'xwiki.properties': Distribution Wizard config is now always present instead of conditional on the superadmin switch. - Ensures that the Distribution Wizard ('distribution.wizard.enabled=true') and flavor bootstrap run automatically on first startup. - This fixes the issue where REST endpoints (/rest/jobs, /repositories) stayed at 404 because the DW never executed. Ref: https://chat.openai.com/share/7a5d58d2-8e91-4e34-8fa0-8b7d62494e4a
26 lines
1.2 KiB
Django/Jinja
26 lines
1.2 KiB
Django/Jinja
# ---- Authentication selection
|
|
{% if xwiki_oidc_enabled_switch | bool %}
|
|
xwiki.authentication.authclass=org.xwiki.contrib.oidc.auth.OIDCAuthServiceImpl
|
|
{% elif xwiki_ldap_enabled_switch | bool %}
|
|
xwiki.authentication.authclass=org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl
|
|
xwiki.authentication.ldap=1
|
|
xwiki.authentication.ldap.trylocal={{ (XWIKI_LDAP_TRYLOCAL | bool) | ternary(1, 0) }}
|
|
xwiki.authentication.ldap.group_mapping=XWiki.XWikiAdminGroup={{ XWIKI_LDAP_ADMIN_GROUP_DN }}
|
|
xwiki.authentication.ldap.mode_group_sync=always
|
|
xwiki.authentication.ldap.server={{ XWIKI_LDAP_SERVER }}
|
|
xwiki.authentication.ldap.port={{ XWIKI_LDAP_PORT }}
|
|
xwiki.authentication.ldap.base_DN={{ XWIKI_LDAP_BASE_DN }}
|
|
xwiki.authentication.ldap.bind_DN={{ XWIKI_LDAP_BIND_DN }}
|
|
xwiki.authentication.ldap.bind_pass={{ XWIKI_LDAP_BIND_PASS }}
|
|
xwiki.authentication.ldap.fields_mapping={{ XWIKI_LDAP_FIELDS_MAPPING }}
|
|
xwiki.authentication.ldap.update_user=1
|
|
{% else %}
|
|
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl
|
|
{% endif %}
|
|
|
|
{% if xwiki_superadmin_enabled_switch | bool %}
|
|
# ---- Superadmin must live in xwiki.cfg (not in xwiki.properties)
|
|
xwiki.superadminpassword={{ XWIKI_SUPERADMIN_PASSWORD }}
|
|
xwiki.superadmin=1
|
|
{% endif %}
|