From b4be77c8f73a88c89d6ac55e7a5750060b545e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 2 Mar 2016 11:15:54 +0100 Subject: [PATCH] hobo: mark that the idp manages the user attributes (#10141) --- wcs/ctl/check_hobos.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wcs/ctl/check_hobos.py b/wcs/ctl/check_hobos.py index 894ba2c..9e2a30c 100644 --- a/wcs/ctl/check_hobos.py +++ b/wcs/ctl/check_hobos.py @@ -198,16 +198,17 @@ class CmdCheckHobos(Command): elif not idps and not 'password' in methods: methods.append('password') pub.cfg['identification']['methods'] = methods + if not pub.cfg.get('sp'): + pub.cfg['sp'] = {} + pub.cfg['sp']['idp-manage-user-attributes'] = bool(idps) pub.write_cfg() if not idps: return # initialize service provider side - if not pub.cfg.get('sp', {}).get('publickey'): + if not pub.cfg['sp'].get('publickey'): from qommon.ident.idp import MethodAdminDirectory - if not pub.cfg.get('sp'): - pub.cfg['sp'] = {} spconfig = pub.cfg['sp'] spconfig['saml2_base_url'] = str(service.get('base_url')) + '/saml' spconfig['saml2_providerid'] = spconfig['saml2_base_url'] + '/metadata' -- 2.7.0