From bf4dbda9682241deffb3ec704e2597a12496d2a8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 5 Jun 2012 03:15:33 -0500 Subject: Add (inactive) certificate configuration page --- src/realmwizard.cpp | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'src/realmwizard.cpp') diff --git a/src/realmwizard.cpp b/src/realmwizard.cpp index a0f4ced..1676ca5 100644 --- a/src/realmwizard.cpp +++ b/src/realmwizard.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -51,6 +52,7 @@ #include "realmintropage.h" #include "realmconfigpage.h" +#include "certconfigpage.h" #include "realmfinishpage.h" #include "realmwizard.h" @@ -69,10 +71,14 @@ RealmWizard::RealmWizard(LDAPController* controller, TQString fqdn, TQWidget *pa addPage (realmpage, i18n( "Step 2: Set Up New Realm" ) ); setHelpEnabled(TQWizard::page(1), false); - finishpage = new RealmFinishPage(this); - addPage (finishpage, i18n( "Step 3: Initialize New Realm" ) ); + certpage = new CertConfigPage(this); + addPage (certpage, i18n( "Step 3: Set Up Certificates" ) ); setHelpEnabled(TQWizard::page(2), false); + finishpage = new RealmFinishPage(this); + addPage (finishpage, i18n( "Step 4: Initialize New Realm" ) ); + setHelpEnabled(TQWizard::page(3), false); + // Set up some defaults realmpage->txtKDCPort->setValue(88); realmpage->txtAdminServerPort->setValue(749); @@ -88,6 +94,7 @@ RealmWizard::RealmWizard(LDAPController* controller, TQString fqdn, TQWidget *pa realmpage->txtKDC->setText(m_fqdn); realmpage->txtAdminServer->setText(m_fqdn); realmpage->realmNameChanged(); + certpage->generateKeysEnabled->setChecked(true); finishpage->ldapAdminGroupname->setText("realmadmins"); finishpage->ldapMachineAdminGroupname->setText("machineadmins"); @@ -97,7 +104,7 @@ RealmWizard::RealmWizard(LDAPController* controller, TQString fqdn, TQWidget *pa // Kerberos won't work unless the DNS suffix matches the realm name realmpage->txtRealmName->setEnabled(false); - setFinishEnabled(TQWizard::page(2), true); + setFinishEnabled(TQWizard::page(3), true); setPosition(); } @@ -128,6 +135,14 @@ void RealmWizard::next() { m_realmconfig.win2k_pkinit_require_binding = realmpage->checkWin2kPkinitRequireBinding->isChecked(); finishpage->ldapAdminRealm->setText(realmpage->txtRealmName->text()); + TQWizard::next(); + certpage->processLockouts(); + certpage->validateEntries(); + } + else if (currentPage()==certpage) { + // RAJA FIXME + // What to do with the certificate information? + TQWizard::next(); finishpage->validateEntries(); } @@ -150,17 +165,11 @@ bool RealmWizard::askClose(){ return true; } else { - if (currentPage()==realmpage) { + if ((currentPage()==certpage) || (currentPage()==finishpage)) { text = i18n("

Are you sure you want to quit the LDAP Realm Wizard?

" "

If yes, click Quit and all changes will be lost." "
If not, click Cancel to return and finish your setup.

"); } - else if (currentPage()==finishpage) { - // RAJA FIXME - text = i18n("

Are you sure you want to quit the LDAP Realm Wizard?

" - "

If yes, click Quit and the new realm will remain deactivated pending bonding." - "
If not, click Cancel to return and finish your setup.

"); - } else { text = i18n("

Are you sure you want to quit the LDAP Realm Wizard?

" "

If not, click Cancel to return and finish setup.

"); -- cgit v1.2.1