From 08f00dfb1fa5c805ecf098d68bb6fcd8a633e5f8 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 12 Jan 2026 10:30:29 -0800 Subject: [PATCH] fix(sts): use STSErrSTSNotReady when LDAP provider is missing --- weed/s3api/s3api_sts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/s3api/s3api_sts.go b/weed/s3api/s3api_sts.go index 6d8ee6e00..a7be8c38e 100644 --- a/weed/s3api/s3api_sts.go +++ b/weed/s3api/s3api_sts.go @@ -379,7 +379,7 @@ func (h *STSHandlers) handleAssumeRoleWithLDAPIdentity(w http.ResponseWriter, r if ldapProvider == nil { glog.V(2).Infof("AssumeRoleWithLDAPIdentity: no LDAP provider configured") - h.writeSTSErrorResponse(w, r, STSErrAccessDenied, + h.writeSTSErrorResponse(w, r, STSErrSTSNotReady, fmt.Errorf("no LDAP provider configured - please add an LDAP provider to IAM configuration")) return }