From 3f59710294004e61e73bdce6a3091b4948e62371 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 30 Sep 2025 21:26:37 +0000 Subject: [PATCH] allow chpw with idp; closes #872 --- copyparty/svchub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/svchub.py b/copyparty/svchub.py index 100c9bd8..46261e22 100644 --- a/copyparty/svchub.py +++ b/copyparty/svchub.py @@ -247,8 +247,8 @@ class SvcHub(object): t = "WARNING: --th-ram-max is very small (%.2f GiB); will not be able to %s" self.log("root", t % (args.th_ram_max, zs), 3) - if args.chpw and args.have_idp_hdrs: - t = "ERROR: user-changeable passwords is incompatible with IdP/identity-providers; you must disable either --chpw or --idp-h-usr" + if args.chpw and args.have_idp_hdrs and "pw" not in args.auth_ord.split(","): + t = "ERROR: user-changeable passwords is not compatible with your current configuration. Choose one of these options to fix it:\n option1: disable --chpw\n option2: remove all use of IdP features; --idp-*\n option3: change --auth-ord to something like pw,idp,ipu" self.log("root", t, 1) raise Exception(t)