Projet

Général

Profil

0001-ldap-log-missing-mandatory-group-65725.patch

Frédéric Péters, 26 mai 2022 23:40

Télécharger (923 octets)

Voir les différences:

Subject: [PATCH] ldap: log missing mandatory group (#65725)

 src/authentic2/backends/ldap_backend.py | 1 +
 1 file changed, 1 insertion(+)
src/authentic2/backends/ldap_backend.py
1032 1032
        for group_name in mandatory_groups:
1033 1033
            group = self.get_group_by_name(block, group_name)
1034 1034
            if group is None:
1035
                log.warning('error: couldn\'t retrieve group %r', group_name)
1035 1036
                continue
1036 1037
            if group not in groups:
1037 1038
                user.groups.add(group)
1038
-