summaryrefslogtreecommitdiffstats
path: root/src/ldappasswddlg.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-29 15:07:11 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-29 15:07:11 -0500
commit53a442c926a03e8cbd6b901679b9c658ee29e02f (patch)
tree0334c4dcf2b8d93f2a2a9f6ec6477f3357a2e229 /src/ldappasswddlg.cpp
parent80c65755dc02df84c632a9eba82dae8f8daab67f (diff)
downloadlibtdeldap-53a442c926a03e8cbd6b901679b9c658ee29e02f.tar.gz
libtdeldap-53a442c926a03e8cbd6b901679b9c658ee29e02f.zip
Allow Kerberos ticket init via cryptographic card
Diffstat (limited to 'src/ldappasswddlg.cpp')
-rw-r--r--src/ldappasswddlg.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ldappasswddlg.cpp b/src/ldappasswddlg.cpp
index b3c5f5a..70407ef 100644
--- a/src/ldappasswddlg.cpp
+++ b/src/ldappasswddlg.cpp
@@ -32,8 +32,8 @@
#include "ldaplogindlg.h"
#include "ldappasswddlg.h"
-LDAPPasswordDialog::LDAPPasswordDialog(TQWidget* parent, const char* name, bool allowGSSAPI)
- : KDialogBase(parent, name, true, i18n("LDAP Authentication"), (allowGSSAPI)?Ok|Cancel|User1:Ok|Cancel, Ok, true, i18n("Authenticate with SASL/GSSAPI"))
+LDAPPasswordDialog::LDAPPasswordDialog(TQWidget* parent, const char* name, bool allowGSSAPI, bool allowSmartCard)
+ : KDialogBase(parent, name, true, i18n("LDAP Authentication"), Ok|Cancel|((allowGSSAPI)?User1:0)|((allowSmartCard)?User2:0), Ok, true, i18n("Authenticate with SASL/GSSAPI"), i18n("Authenticate with cryptographic card"))
{
m_base = new LDAPLogin(this);
@@ -42,11 +42,19 @@ LDAPPasswordDialog::LDAPPasswordDialog(TQWidget* parent, const char* name, bool
void LDAPPasswordDialog::slotOk() {
use_gssapi = false;
+ use_smartcard = false;
accept();
}
void LDAPPasswordDialog::slotUser1() {
use_gssapi = true;
+ use_smartcard = false;
+ accept();
+}
+
+void LDAPPasswordDialog::slotUser2() {
+ use_gssapi = false;
+ use_smartcard = true;
accept();
}