示例#1
0
 def readConf(self):
     AuthenticatorConfig.readConf(self)
     for option in ["suffix", "attr"]:
         self.__dict__[option] = self.get(self.section, option)
     try:
         self.__dict__["bindname"] = self.getdn(self.section, "bindname")
     except NoOptionError:
         pass
     try:
         self.__dict__["bindpasswd"] = self.getpassword(self.section, "bindpasswd")
     except NoOptionError:
         pass
     self.ldapurls = self.get(self.section, "ldapurl").split()
     try:
         self.filter = self.get(self.section, "filter")
     except NoOptionError:
         pass
示例#2
0
 def readConf(self):
     AuthenticatorConfig.readConf(self)
     for option in ["suffix", "attr"]:
         self.__dict__[option] = self.get(self.section, option)
     try:
         self.__dict__["bindname"] = self.getdn(self.section, "bindname")
     except NoOptionError:
         pass
     try:
         self.__dict__["bindpasswd"] = self.getpassword(self.section, "bindpasswd")
     except NoOptionError:
         pass
     self.ldapurls = self.get(self.section, "ldapurl").split()
     try:
         self.filter = self.get(self.section, "filter")
     except NoOptionError:
         pass
示例#3
0
 def setDefault(self):
     AuthenticatorConfig.setDefault(self)
     self.filter = "objectClass=*"
     self.bindname = None
     self.bindpasswd = None
示例#4
0
 def setDefault(self):
     AuthenticatorConfig.setDefault(self)
     self.filter = "objectClass=*"
     self.bindname = None
     self.bindpasswd = None
示例#5
0
 def setDefault(self):
     AuthenticatorConfig.setDefault(self)
     self.loginpage = "index.php"
     self.loginpost = "front/login.php"
     self.match = "window.location='.*/front/central.php'|window.location='.*/front/helpdesk.public.php'"
     self.doauth = True
示例#6
0
 def readConf(self):
     AuthenticatorConfig.readConf(self)
     self.baseurl = self.get(self.section, "baseurl")
     self.doauth = self.getboolean(self.section, "doauth")
示例#7
0
文件: auth.py 项目: neoclust/mmc
 def setDefault(self):
     AuthenticatorConfig.setDefault(self)
     self.loginpage = "index.php"
     self.loginpost = "login.php"
     self.match = "window.location='.*/front/central.php'"
     self.doauth = True
示例#8
0
文件: auth.py 项目: neoclust/mmc
 def readConf(self):
     AuthenticatorConfig.readConf(self)
     self.baseurl = self.get(self.section, "baseurl")
     self.doauth = self.getboolean(self.section, "doauth")