Projet

Général

Profil

0002-agent-authentic2-do-not-distribute-groupe-names-in-t.patch

Benjamin Dauvergne, 25 septembre 2015 15:33

Télécharger (1,38 ko)

Voir les différences:

Subject: [PATCH 2/4] agent/authentic2: do not distribute groupe names in the
 role attribute anymore

 hobo/agent/authentic2/management/commands/hobo_deploy.py | 6 ------
 1 file changed, 6 deletions(-)
hobo/agent/authentic2/management/commands/hobo_deploy.py
101 101
                attribute.enabled = not (name in disabled_fields)
102 102
                attribute.save()
103 103

  
104
            SAMLAttribute.objects.get_or_create(name='role',
105
                                                name_format='basic',
106
                                                attribute_name='django_user_group_names',
107
                                                object_id=policy.id,
108
                                                content_type=policy_type
109
                                                )
110 104
            # create or update Service Providers
111 105
            for service in hobo_environment['services']:
112 106
                if not service.get('saml-sp-metadata-url'):
113
-