This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mbftns/radius/models.py
T
2012-02-02 03:47:44 +01:00

118 lines
4.1 KiB
Python

from django.db import models
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [appname]'
# into your database.
class Radacct(models.Model):
connection_name = 'radius'
radacctid = models.BigIntegerField(primary_key=True)
acctsessionid = models.CharField(max_length=192)
acctuniqueid = models.CharField(max_length=96)
username = models.CharField(max_length=192)
groupname = models.CharField(max_length=192)
realm = models.CharField(max_length=192, blank=True)
nasipaddress = models.CharField(max_length=45)
nasportid = models.CharField(max_length=45, blank=True)
nasporttype = models.CharField(max_length=96, blank=True)
acctstarttime = models.DateTimeField(null=True, blank=True)
acctstoptime = models.DateTimeField(null=True, blank=True)
acctsessiontime = models.IntegerField(null=True, blank=True)
acctauthentic = models.CharField(max_length=96, blank=True)
connectinfo_start = models.CharField(max_length=150, blank=True)
connectinfo_stop = models.CharField(max_length=150, blank=True)
acctinputoctets = models.BigIntegerField(null=True, blank=True)
acctoutputoctets = models.BigIntegerField(null=True, blank=True)
calledstationid = models.CharField(max_length=150)
callingstationid = models.CharField(max_length=150)
acctterminatecause = models.CharField(max_length=96)
servicetype = models.CharField(max_length=96, blank=True)
framedprotocol = models.CharField(max_length=96, blank=True)
framedipaddress = models.CharField(max_length=45)
acctstartdelay = models.IntegerField(null=True, blank=True)
acctstopdelay = models.IntegerField(null=True, blank=True)
xascendsessionsvrkey = models.CharField(max_length=30, blank=True)
class Meta:
db_table = u'radacct'
class Radcheck(models.Model):
connection_name = 'radius'
username = models.CharField(max_length=192)
attribute = models.CharField(max_length=192)
op = models.CharField(max_length=6)
value = models.CharField(max_length=759)
class Meta:
db_table = u'radcheck'
class Radgroupcheck(models.Model):
connection_name = 'radius'
groupname = models.CharField(max_length=192)
attribute = models.CharField(max_length=192)
op = models.CharField(max_length=6)
value = models.CharField(max_length=759)
class Meta:
db_table = u'radgroupcheck'
class Radgroupreply(models.Model):
connection_name = 'radius'
groupname = models.CharField(max_length=192)
attribute = models.CharField(max_length=192)
op = models.CharField(max_length=6)
value = models.CharField(max_length=759)
class Meta:
db_table = u'radgroupreply'
class Radpostauth(models.Model):
connection_name = 'radius'
username = models.CharField(max_length=192)
pass_field = models.CharField(max_length=192, db_column='pass')
reply = models.CharField(max_length=96)
authdate = models.DateTimeField()
class Meta:
db_table = u'radpostauth'
class Radreply(models.Model):
connection_name = 'radius'
username = models.CharField(max_length=192)
attribute = models.CharField(max_length=192)
op = models.CharField(max_length=6)
value = models.CharField(max_length=759)
class Meta:
db_table = u'radreply'
class Radusergroup(models.Model):
connection_name = 'radius'
username = models.CharField(max_length=192)
groupname = models.CharField(max_length=192)
priority = models.IntegerField()
class Meta:
db_table = u'radusergroup'
class TempUser(models.Model):
connection_name = 'radius'
# TODO : date? who? why?
radcheckId = models.ForeignKey(Radcheck)
created = models.DateTimeField(auto_now_add=True, null=True)
deleteOn = models.DateTimeField( null=True)
class Meta:
db_table = u'radusergroup'