From 52d15ff7179f2b53b82a086a52a06fbb6b6d68c3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 29 Mar 2013 16:30:35 -0500 Subject: Reload OpenLDAP when certificate file changes --- src/libtdeldap.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index 5ba2676..0354fb4 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -73,6 +73,10 @@ #define CRON_UPDATE_NSS_FILE "/etc/cron.daily/upd-local-nss-db" #define CRON_UPDATE_NSS_COMMAND "/usr/sbin/nss_updatedb ldap" +// FIXME +// This assumes Debian! +#define CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_OPENLDAP_RELOAD_COMMAND "/etc/init.d/slapd force-reload" + int requested_ldap_version = LDAP_VERSION3; char* ldap_user_and_operational_attributes[2] = {"*", "+"}; @@ -2803,6 +2807,7 @@ int LDAPManager::writePrimaryRealmCertificateUpdateCronFile(TQString *errstr) { stream << "\n"; stream << "#!/bin/sh" << "\n"; stream << CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_COMMAND << "\n"; + stream << CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_OPENLDAP_RELOAD_COMMAND << "\n"; file.close(); -- cgit v1.2.1