예제 #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")