oioioi.ipdnsauth.backends
¶
Module Contents¶
Classes¶
Authenticates users by their ip or dns hostname. |
Attributes¶
- 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.