|
|
@ -102,6 +102,9 @@ LDAPConfig::LDAPConfig(TQWidget *parent, const char *name, const TQStringList&)
|
|
|
|
connect(base->passwordHash, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed()));
|
|
|
|
connect(base->passwordHash, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changed()));
|
|
|
|
connect(base->ignoredUsers, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed()));
|
|
|
|
connect(base->ignoredUsers, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(changed()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connect(base->pamEnablePKCS11Logons, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
|
|
|
|
|
|
|
|
connect(base->pamEnablePKCS11Logons, TQT_SIGNAL(clicked()), this, TQT_SLOT(processLockouts()));
|
|
|
|
|
|
|
|
connect(base->pamPKCS11LoginCardSlot, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed()));
|
|
|
|
connect(base->pamEnableCachedLogons, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
|
|
|
|
connect(base->pamEnableCachedLogons, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
|
|
|
|
connect(base->pamCreateHomeDirectory, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
|
|
|
|
connect(base->pamCreateHomeDirectory, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
|
|
|
|
connect(base->pamCreateHomeDirectory, TQT_SIGNAL(clicked()), this, TQT_SLOT(processLockouts()));
|
|
|
|
connect(base->pamCreateHomeDirectory, TQT_SIGNAL(clicked()), this, TQT_SLOT(processLockouts()));
|
|
|
@ -165,6 +168,8 @@ void LDAPConfig::load(bool useDefaults )
|
|
|
|
}
|
|
|
|
}
|
|
|
|
base->ignoredUsers->setText(m_clientRealmConfig.ignoredUsers);
|
|
|
|
base->ignoredUsers->setText(m_clientRealmConfig.ignoredUsers);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
base->pamEnablePKCS11Logons->setChecked(m_clientRealmConfig.pamConfig.enable_pkcs11_login);
|
|
|
|
|
|
|
|
base->pamPKCS11LoginCardSlot->setValue(m_clientRealmConfig.pamConfig.pkcs11_login_card_slot);
|
|
|
|
base->pamEnableCachedLogons->setChecked(m_clientRealmConfig.pamConfig.enable_cached_credentials);
|
|
|
|
base->pamEnableCachedLogons->setChecked(m_clientRealmConfig.pamConfig.enable_cached_credentials);
|
|
|
|
base->pamCreateHomeDirectory->setChecked(m_clientRealmConfig.pamConfig.autocreate_user_directories_enable);
|
|
|
|
base->pamCreateHomeDirectory->setChecked(m_clientRealmConfig.pamConfig.autocreate_user_directories_enable);
|
|
|
|
base->pamCreateHomeDirectoryUmask->setValue(m_clientRealmConfig.pamConfig.autocreate_user_directories_umask);
|
|
|
|
base->pamCreateHomeDirectoryUmask->setValue(m_clientRealmConfig.pamConfig.autocreate_user_directories_umask);
|
|
|
@ -217,6 +222,8 @@ void LDAPConfig::save() {
|
|
|
|
m_clientRealmConfig.passwordHash = base->passwordHash->currentText();
|
|
|
|
m_clientRealmConfig.passwordHash = base->passwordHash->currentText();
|
|
|
|
m_clientRealmConfig.ignoredUsers = base->ignoredUsers->text();
|
|
|
|
m_clientRealmConfig.ignoredUsers = base->ignoredUsers->text();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_clientRealmConfig.pamConfig.enable_pkcs11_login = base->pamEnablePKCS11Logons->isChecked();
|
|
|
|
|
|
|
|
m_clientRealmConfig.pamConfig.pkcs11_login_card_slot = base->pamPKCS11LoginCardSlot->value();
|
|
|
|
m_clientRealmConfig.pamConfig.enable_cached_credentials = base->pamEnableCachedLogons->isChecked();
|
|
|
|
m_clientRealmConfig.pamConfig.enable_cached_credentials = base->pamEnableCachedLogons->isChecked();
|
|
|
|
m_clientRealmConfig.pamConfig.autocreate_user_directories_enable = base->pamCreateHomeDirectory->isChecked();
|
|
|
|
m_clientRealmConfig.pamConfig.autocreate_user_directories_enable = base->pamCreateHomeDirectory->isChecked();
|
|
|
|
m_clientRealmConfig.pamConfig.autocreate_user_directories_umask = base->pamCreateHomeDirectoryUmask->value();
|
|
|
|
m_clientRealmConfig.pamConfig.autocreate_user_directories_umask = base->pamCreateHomeDirectoryUmask->value();
|
|
|
@ -343,6 +350,13 @@ void LDAPConfig::processLockouts() {
|
|
|
|
base->pamCreateHomeDirectoryUmask->setEnabled(false);
|
|
|
|
base->pamCreateHomeDirectoryUmask->setEnabled(false);
|
|
|
|
base->pamCreateHomeDirectorySkelDir->setEnabled(false);
|
|
|
|
base->pamCreateHomeDirectorySkelDir->setEnabled(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (base->pamEnablePKCS11Logons->isChecked()) {
|
|
|
|
|
|
|
|
base->pamPKCS11LoginCardSlot->setEnabled(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
base->pamPKCS11LoginCardSlot->setEnabled(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void LDAPConfig::bondToNewRealm() {
|
|
|
|
void LDAPConfig::bondToNewRealm() {
|
|
|
|