summaryrefslogtreecommitdiffstats
path: root/src/bondwizard.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-05-21 00:54:46 -0500
committerTimothy Pearson <[email protected]>2012-05-21 00:54:46 -0500
commitbb72c681df66c174f16ed8a1a3502a9892034ef2 (patch)
tree333dc3fac07ec5ebd02a88bbe8962c376f201fa9 /src/bondwizard.cpp
parent44db1b5fafa7e3ff64411b48214961da8d553138 (diff)
downloadkcmldap-bb72c681df66c174f16ed8a1a3502a9892034ef2.tar.gz
kcmldap-bb72c681df66c174f16ed8a1a3502a9892034ef2.zip
Add pam file writing and clean up a bit
Diffstat (limited to 'src/bondwizard.cpp')
-rw-r--r--src/bondwizard.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bondwizard.cpp b/src/bondwizard.cpp
index 03ca5a6..d9a36c2 100644
--- a/src/bondwizard.cpp
+++ b/src/bondwizard.cpp
@@ -188,12 +188,12 @@ void BondWizard::closeEvent(TQCloseEvent* e){
/** maybe call a dialog that the wizard has finished. */
void BondWizard::accept(){
// Try to bond
- if (m_ldapConfig->bondRealm(m_finalRealm, finishpage->ldapAdminUsername->text(), finishpage->ldapAdminPassword->password(), finishpage->ldapAdminRealm->text()) == 0) {
+ TQString errorString;
+ if (m_ldapConfig->bondRealm(m_finalRealm, finishpage->ldapAdminUsername->text(), finishpage->ldapAdminPassword->password(), finishpage->ldapAdminRealm->text(), &errorString) == 0) {
done(0);
}
else {
- KMessageBox::error(this, i18n("<qt><b>Unable to bond to realm!</b><p>RAJA ERRORSTR</qt>"), i18n("Unable to Bond to Realm"));
- // RAJA FIXME
+ KMessageBox::error(this, i18n("<qt><b>Unable to bond to realm!</b><p>Details: %1</qt>").arg(errorString), i18n("Unable to Bond to Realm"));
}
}