diff options
author | Timothy Pearson <[email protected]> | 2012-06-11 14:38:41 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-06-11 14:38:41 -0500 |
commit | a74f58160a68cc658f32037cb4e9a06391759bd6 (patch) | |
tree | 34053d81b8c88a64429bca2729990274e4ae88e7 /src/ldapcontroller.cpp | |
parent | ec23f4b717dc7e47e9000d2d135ac4914cc2180b (diff) | |
download | kcmldapcontroller-a74f58160a68cc658f32037cb4e9a06391759bd6.tar.gz kcmldapcontroller-a74f58160a68cc658f32037cb4e9a06391759bd6.zip |
Write primary realm cert updater cron file
Fix return values
Read information from provided primary certificate
Diffstat (limited to 'src/ldapcontroller.cpp')
-rw-r--r-- | src/ldapcontroller.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ldapcontroller.cpp b/src/ldapcontroller.cpp index ff716aa..2e93f11 100644 --- a/src/ldapcontroller.cpp +++ b/src/ldapcontroller.cpp @@ -78,9 +78,6 @@ #define KEY_STRENGTH 2048 -// RAJA FIXME -// Certificate manager/updater (CLI, callable from crontab) still needs to be written... - typedef KGenericFactory<LDAPController, TQWidget> ldapFactory; K_EXPORT_COMPONENT_FACTORY( kcm_ldapcontroller, ldapFactory("kcmldapcontroller")) @@ -224,6 +221,7 @@ void LDAPController::systemRoleChanged() { pdialog.setStatusMessage(i18n("Purging local configuration...")); tqApp->processEvents(); + system(TQString("rm -f %1").arg(CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_FILE)); system(TQString("rm -rf %1").arg(TDE_CERTIFICATE_DIR)); // Write the TDE realm configuration file @@ -751,6 +749,7 @@ int LDAPController::controlKAdminDaemon(sc_command command) { // This assumes Debian! return system("/etc/init.d/openbsd-inetd restart"); } + return -2; } int LDAPController::controlSASLServer(sc_command command) { @@ -769,6 +768,7 @@ int LDAPController::controlSASLServer(sc_command command) { // This assumes Debian! return system("/etc/init.d/saslauthd restart"); } + return -2; } int LDAPController::controlHeimdalServer(sc_command command, uid_t userid, gid_t groupid) { @@ -803,6 +803,7 @@ int LDAPController::controlHeimdalServer(sc_command command, uid_t userid, gid_t chmod(LDAP_KEYTAB_FILE, S_IRUSR|S_IWUSR|S_IRGRP); } } + return -2; } int LDAPController::controlLDAPServer(sc_command command, uid_t userid, gid_t groupid) { @@ -1548,6 +1549,8 @@ int LDAPController::createNewLDAPRealm(TQWidget* dialogparent, LDAPRealmConfig r return -1; } + LDAPManager::writePrimaryRealmCertificateUpdateCronFile(); + delete ldap_mgr; delete credentials; @@ -1583,8 +1586,9 @@ int LDAPController::createNewLDAPRealm(TQWidget* dialogparent, LDAPRealmConfig r // Write the NSS update crontab file and update NSS database LDAPManager::writeCronFiles(); - // RAJA FIXME pdialog.closeDialog(); + + return 0; } int LDAPController::buttons() { |