def get_group_permissions(self):
if self._group_permissions is None:<EOL><INDENT>self._group_permissions = set()<EOL>if self.settings.FIND_GROUP_PERMS:<EOL><INDENT>try:<EOL><INDENT>self._load_group_permissions()<EOL><DEDENT>except ldap.LDAPError as e:<EOL><INDENT>results = ldap_error.send(self.backend.__class__,<EOL>context='<STR_LIT>',<EOL>exception=e)<EOL>if len(results) == <NUM_LIT:0>:<EOL><INDENT>logger.warning("<STR_LIT>",<EOL>pprint.pformat(e))<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return self._group_permissions<EOL>
If allowed by the configuration, this returns the set of permissions
defined by the user's LDAP group memberships.