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
def setDefault(self): AuthenticatorConfig.setDefault(self) self.filter = "objectClass=*" self.bindname = None self.bindpasswd = None
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
def readConf(self): AuthenticatorConfig.readConf(self) self.baseurl = self.get(self.section, "baseurl") self.doauth = self.getboolean(self.section, "doauth")
def setDefault(self): AuthenticatorConfig.setDefault(self) self.loginpage = "index.php" self.loginpost = "login.php" self.match = "window.location='.*/front/central.php'" self.doauth = True