Skip to content

Commit 60f0a21

Browse files
VSB-TUO/fix(ci): put PasswordAuthentication first in auth chain (#1326)
The customer-vsb-tuo-test backend image lists LDAPAuthentication first, with authentication-ldap provider_url ldaps://ldap.vsb.cz:636/, which is unreachable from CI runners (TCP connect blackholes; DSpace sets no JNDI connect timeout). Every admin login therefore hangs on the LDAP connect (~21s locally, up to ~127s on CI) before falling through to password, which breaks every login-gated dspace-angular e2e (integration) test. Reordering so PasswordAuthentication is tried first makes the demo/e2e admin login instant (~0.4s, verified locally against the 29.1.2024 demo dump); real LDAP users still fall through to LDAPAuthentication unchanged. This matches the working customer/uk configuration. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 34fe15f commit 60f0a21

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

dspace/config/modules/authentication.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@
6060

6161
# Authentication by Password (encrypted in DSpace's database). See authentication-password.cfg for default configuration.
6262
# Enabled by default (to disable, either comment out, or define a new list of AuthenticationMethod plugins in your local.cfg)
63-
plugin.sequence.org.dspace.authenticate.AuthenticationMethod = org.dspace.authenticate.LDAPAuthentication,org.dspace.authenticate.PasswordAuthentication
63+
# PasswordAuthentication is FIRST so local-password accounts (incl. the e2e/demo
64+
# admin) log in without first blocking on the LDAP server, which is unreachable
65+
# from CI runners. Real LDAP users still fall through to LDAPAuthentication.
66+
plugin.sequence.org.dspace.authenticate.AuthenticationMethod = org.dspace.authenticate.PasswordAuthentication, org.dspace.authenticate.LDAPAuthentication
6467

6568

6669
#---------------------------------------------------------------#

0 commit comments

Comments
 (0)