From a90355f364a88c3f3717e786d379d33559013ed5 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 11 Jun 2012 16:27:10 -0500 Subject: Add prc cron method --- src/libtdeldap.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/libtdeldap.cpp') diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index bad84ef..fd608e1 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -2077,6 +2077,23 @@ void LDAPManager::writeCronFiles() { system(CRON_UPDATE_NSS_COMMAND); } +void LDAPManager::writePrimaryRealmCertificateUpdateCronFile() { + TQFile file(CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_FILE); + if (file.open(IO_WriteOnly)) { + TQTextStream stream( &file ); + + stream << "# This file was automatically generated by TDE\n"; + stream << "# All changes will be lost!\n"; + stream << "\n"; + stream << "#!/bin/sh" << "\n"; + stream << CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_COMMAND << "\n"; + + file.close(); + } + + system(CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_COMMAND); +} + LDAPRealmConfigList LDAPManager::readTDERealmList(KSimpleConfig* config, bool disableAllBonds) { LDAPRealmConfigList realms; -- cgit v1.2.1