def is_member_of(self, group_dn):
is_member = None<EOL>group_dn = group_dn.lower()<EOL>if self._group_dns is None:<EOL><INDENT>is_member = self._group_type.is_member(self._ldap_user, group_dn)<EOL><DEDENT>if is_member is None:<EOL><INDENT>is_member = (group_dn in self.get_group_dns())<EOL><DEDENT>logger.debug("<STR_LIT>", self._ldap_user.dn,<EOL>is_member and "<STR_LIT:U+0020>" or "<STR_LIT>", group_dn)<EOL>return is_member<EOL>
Returns true if our user is a member of the given group.