Permalink
Browse files

Update src/baruwa/config/models.py

* Added additional class MailADAuthHost to host unique AD domain configurations mapped to different mail domains.
  • Loading branch information...
1 parent 2696c63 commit 3bec7f901882f2007659fc3e59b03a9e68357650 @liveaverage liveaverage committed Dec 14, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 src/baruwa/config/models.py
@@ -65,6 +65,23 @@ class MailAuthHost(models.Model):
class Meta:
db_table = 'auth_hosts'
+class MailADAuthHost(models.Model):
+ "Holds AD authentication hosts"
+
+ ad_host = models.ForeignKey(MailAuthHost)
+ ad_search_dn = models.CharField(max_length=255)
+ ad_admin_group = models.CharField(max_length=255)
+ ad_user_group = models.CharField(max_length=255)
+ ad_search_fields = models.CharField(max_length=255)
+ ad_ldap_scheme = models.CharField(max_length=255)
+ ad_auth_domain = models.CharField(max_length=255)
+ ad_log_file = models.CharField(max_length=255)
+
+ class Meta:
+ db_table = 'auth_domain'
+
+ def __unicode__(self):
+ return self.ad_search_dn
class ScannerHost(models.Model):
"Holds scanning nodes"

0 comments on commit 3bec7f9

Please sign in to comment.