@ -147,7 +147,7 @@ LDAPController::LDAPController(TQWidget *parent, const char *name, const TQStrin
connect ( m_base - > multiMasterReplicationMappings , TQT_SIGNAL ( executed ( TQListViewItem * ) ) , this , TQT_SLOT ( modifySelectedMultiMasterReplication ( ) ) ) ;
connect ( m_base - > advancedCaCertExpiry , TQT_SIGNAL ( valueChanged ( int ) ) , this , TQT_SLOT ( caCertExpiryChanged ( ) ) ) ;
connect ( m_base - > advancedCaCrlExpiry , TQT_SIGNAL ( valueChanged ( int ) ) , this , TQT_SLOT ( caCrl Cert ExpiryChanged( ) ) ) ;
connect ( m_base - > advancedCaCrlExpiry , TQT_SIGNAL ( valueChanged ( int ) ) , this , TQT_SLOT ( caCrl ExpiryChanged( ) ) ) ;
connect ( m_base - > advancedKerberosCertExpiry , TQT_SIGNAL ( valueChanged ( int ) ) , this , TQT_SLOT ( kerberosCertExpiryChanged ( ) ) ) ;
connect ( m_base - > advancedLdapCertExpiry , TQT_SIGNAL ( valueChanged ( int ) ) , this , TQT_SLOT ( ldapCertExpiryChanged ( ) ) ) ;
@ -767,7 +767,7 @@ void LDAPController::btncrlRegenerate() {
credentials - > realm = realmname ;
LDAPManager * ldap_mgr = new LDAPManager ( realmname , " ldapi:// " , credentials ) ;
if ( ldap_mgr - > generatePKICRL ( m_certconfig . caCrlExpiryDays , m_realmconfig [ m_defaultRealm ] , KERBEROS_PKI_ PEMKEY_FILE, KERBEROS_PKI_CRLDB_FILE , & errstr ) ! = 0 ) {
if ( ldap_mgr - > generatePKICRL ( m_certconfig . caCrlExpiryDays , m_realmconfig [ m_defaultRealm ] , KERBEROS_PKI_ CRL_FILE, KERBEROS_PKI_ PEMKEY_FILE, KERBEROS_PKI_CRLDB_FILE , & errstr ) ! = 0 ) {
KMessageBox : : error ( this , i18n ( " <qt><b>Unable to regenerate CRL</b><p>Details: %1</qt> " ) . arg ( errstr ) , i18n ( " Unable to Regenerate CRL " ) ) ;
}
@ -1039,17 +1039,21 @@ void LDAPController::save() {
m_systemconfig - > sync ( ) ;
// If role was not changed, update any role-specific advanced settings
if ( prevRole = = m_systemconfig - > readEntry ( " LDAPRole " , " Workstation " ) ) {
if ( m_base - > systemRole - > currentItem ( ) = = ROLE_PRIMARY_REALM_CONTROLLER ) {
TQString errorstring ;
TQString realmname = m_defaultRealm . upper ( ) ;
LDAPCredentials * credentials = new LDAPCredentials ;
credentials - > username = " " ;
credentials - > password = " " ;
credentials - > realm = realmname ;
LDAPManager * ldap_mgr = new LDAPManager ( realmname , " ldapi:// " , credentials ) ;
TQString errorstring ;
if ( ldap_mgr - > setLdapCertificateStoreAttribute ( " publicRootCRLIntervalDays " , TQString ( " %1 " ) . arg ( m_certconfig . caCrlExpiryDays ) , & errorstring ) ! = 0 ) {
KMessageBox : : error ( this , i18n ( " <qt><b>Unable to update CRL interval entry in LDAP database</b><p>Details: %1</qt> " ) . arg ( errorstring ) , i18n ( " LDAP Update Failure " ) ) ;
}
// If role was not changed, update any role-specific advanced settings
if ( prevRole = = m_systemconfig - > readEntry ( " LDAPRole " , " Workstation " ) ) {
if ( m_base - > systemRole - > currentItem ( ) = = ROLE_PRIMARY_REALM_CONTROLLER ) {
// Write multi-master replication settings
LDAPMasterReplicationInfo replicationSettings ;
replicationSettings . enabled = m_base - > advancedEnableMultiMasterReplication - > isChecked ( ) ;
@ -1079,6 +1083,8 @@ void LDAPController::save() {
}
}
delete ldap_mgr ;
load ( ) ;
}