diff options
Diffstat (limited to 'src/libtdeldap.cpp')
-rw-r--r-- | src/libtdeldap.cpp | 17 |
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; |