diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-05-18 16:42:15 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-05-18 16:42:15 -0500 |
commit | 9dfe67333622690d2b80714ed19adcf29d10b030 (patch) | |
tree | 025b70be9447606b31a055b5084e6245334cb6dc /src/ldap.cpp | |
parent | 37acc91cacd3f5c85e3254fcfd5794fcdcbadc27 (diff) | |
download | kcmldap-9dfe67333622690d2b80714ed19adcf29d10b030.tar.gz kcmldap-9dfe67333622690d2b80714ed19adcf29d10b030.zip |
Add realm properties editor
Diffstat (limited to 'src/ldap.cpp')
-rw-r--r-- | src/ldap.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ldap.cpp b/src/ldap.cpp index a3afbbf..2b230ba 100644 --- a/src/ldap.cpp +++ b/src/ldap.cpp @@ -37,6 +37,7 @@ #include "ldap.h" #include "bondwizard.h" +#include "realmpropertiesdialog.h" // FIXME // Connect this to CMake/Automake @@ -65,6 +66,7 @@ LDAPConfig::LDAPConfig(TQWidget *parent, const char *name, const TQStringList&) base = new LDAPConfigBase(this); layout->add(base); base->ldapRealmList->setAllColumnsShowFocus(true); + base->ldapRealmList->setFullWidth(true); setRootOnlyMsg(i18n("<b>Bonded LDAP realms take effect system wide, and require administrator access to modify</b><br>To alter the system's bonded LDAP realms, click on the \"Administrator Mode\" button below.")); setUseRootOnlyMsg(true); @@ -75,6 +77,7 @@ LDAPConfig::LDAPConfig(TQWidget *parent, const char *name, const TQStringList&) connect(base->btnBondRealm, TQT_SIGNAL(clicked()), TQT_SLOT(bondToNewRealm())); connect(base->btnRemoveRealm, TQT_SIGNAL(clicked()), TQT_SLOT(removeRealm())); + connect(base->btnRealmProperties, TQT_SIGNAL(clicked()), TQT_SLOT(realmProperties())); load(); @@ -195,6 +198,9 @@ void LDAPConfig::save() { systemconfig->sync(); + // RAJA FIXME + // Write the appropriate /etc/krb5.conf file here! + load(); } @@ -250,6 +256,17 @@ void LDAPConfig::removeRealm() { } } +void LDAPConfig::realmProperties() { + TQListViewItem *selrealm = base->ldapRealmList->selectedItem(); + if (selrealm) { + RealmPropertiesDialog rpdialog(&m_realms, selrealm->text(1), this); + if (rpdialog.exec() == TQDialog::Accepted) { + updateRealmList(); + changed(); + } + } +} + int LDAPConfig::buttons() { return KCModule::Apply|KCModule::Help; } |