oioioi.ipdnsauth.backends

Module Contents

Classes

IpDnsBackend

Authenticates users by their ip or dns hostname.

Attributes

oioioi.ipdnsauth.backends.logger[source]
class oioioi.ipdnsauth.backends.IpDnsBackend[source]

Bases: django.contrib.auth.backends.ModelBackend

Authenticates users by their ip or dns hostname.

This backend checks given arguments against models :class:’IpToUser’ and :class:’DnsToUser’ (in this order). When dns_name is not given, then it tries to call reverse-dns service on ip_addr.

description[source]
supports_authentication = True[source]
authenticate(request, dns_name=None, ip_addr=None, **kwargs)[source]
_resolve_hostname(ip)[source]