def finish_initializing(self): self.show_status() self.json_cached = serverconf.json_is_cached() self.unlink_ldap = False self.unlink_ad = False self.ldap_is_configured = serverconf.ldap_is_configured() self.ad_is_configured = serverconf.ad_is_configured() is_configured = self.ldap_is_configured or self.ad_is_configured self.ui.boxOptionsSection.set_visible(not self.json_cached) self.ui.boxUnlinkOptions.set_visible(is_configured) self.ui.boxLinkOptions.set_visible(not is_configured) self.ui.boxAuthSection.set_visible(not is_configured) self.main_window.btnNext.set_sensitive(True) self.ui.chkUnlinkLDAP.set_visible(self.ldap_is_configured) self.ui.chkUnlinkAD.set_visible(self.ad_is_configured) url_config = self.fbe.get_url() url = self.cmd_options.url if url == None or len(url) == 0: url = url_config if url == None or len(url) == 0: url = '' self.ui.txtUrl.set_text(url)
def finish_initializing(self): self.show_status() self.json_cached = serverconf.json_is_cached() self.unlink_ldap = False self.unlink_ad = False self.ldap_is_configured = serverconf.ldap_is_configured() self.ad_is_configured = serverconf.ad_is_configured() is_configured = self.ldap_is_configured or self.ad_is_configured server_conf = serverconf.get_server_conf(None) auth_type = server_conf.get_auth_conf().get_auth_type() self.ui.radioNone.set_active(True) self.ui.boxUnlinkOptions.set_visible(is_configured) self.ui.boxAuthSection.set_visible(not is_configured) self.main_window.btnNext.set_sensitive(True) self.ui.chkUnlinkLDAP.set_visible(self.ldap_is_configured) self.ui.chkUnlinkAD.set_visible(False) if not is_configured and auth_type != '': if auth_type == 'ad': self.ui.radioAD.set_active(True) else: self.ui.radioLDAP.set_active(True)
def finish_initializing(self): self.show_status() self.json_cached = serverconf.json_is_cached() self.unlink_ldap = False self.unlink_ad = False self.ldap_is_configured = serverconf.ldap_is_configured() self.ad_is_configured = serverconf.ad_is_configured() is_configured = self.ldap_is_configured or self.ad_is_configured self.ui.boxUnlinkOptions.set_visible(is_configured) self.ui.boxAuthSection.set_visible(not is_configured) self.main_window.btnNext.set_sensitive(True) self.ui.chkUnlinkLDAP.set_visible(self.ldap_is_configured) self.ui.chkUnlinkAD.set_visible(self.ad_is_configured)
def finish_initializing(self): self.show_status() self.json_cached = serverconf.json_is_cached() self.unlink_ldap = False self.unlink_ad = False self.ldap_is_configured = serverconf.ldap_is_configured() self.ad_is_configured = serverconf.ad_is_configured() is_configured = self.ldap_is_configured or self.ad_is_configured self.ui.radioNone.set_active(True) self.ui.boxUnlinkOptions.set_visible(is_configured) self.ui.boxAuthSection.set_visible(not is_configured) self.main_window.btnNext.set_sensitive(True) self.ui.chkUnlinkLDAP.set_visible(self.ldap_is_configured) self.ui.chkUnlinkAD.set_visible(False)