diff options
Diffstat (limited to 'src/ldappasswddlg.cpp')
-rw-r--r-- | src/ldappasswddlg.cpp | 12 |
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(); } |