summaryrefslogtreecommitdiffstats
path: root/src/libtdeldap.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-11 16:27:10 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-11 16:27:10 -0500
commita90355f364a88c3f3717e786d379d33559013ed5 (patch)
tree73f0769849699fa1d822d4cf874cdb4be8e08580 /src/libtdeldap.cpp
parent477d5b0abbdf97e2e9d1594f6d07b9c522f09715 (diff)
downloadlibtdeldap-a90355f364a88c3f3717e786d379d33559013ed5.tar.gz
libtdeldap-a90355f364a88c3f3717e786d379d33559013ed5.zip
Add prc cron method
Diffstat (limited to 'src/libtdeldap.cpp')
-rw-r--r--src/libtdeldap.cpp17
1 files changed, 17 insertions, 0 deletions
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;