Reload OpenLDAP when certificate file changes

pull/1/head
Timothy Pearson 12 years ago
parent 1e9b683727
commit 52d15ff717

@ -73,6 +73,10 @@
#define CRON_UPDATE_NSS_FILE "/etc/cron.daily/upd-local-nss-db" #define CRON_UPDATE_NSS_FILE "/etc/cron.daily/upd-local-nss-db"
#define CRON_UPDATE_NSS_COMMAND "/usr/sbin/nss_updatedb ldap" #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; int requested_ldap_version = LDAP_VERSION3;
char* ldap_user_and_operational_attributes[2] = {"*", "+"}; char* ldap_user_and_operational_attributes[2] = {"*", "+"};
@ -2803,6 +2807,7 @@ int LDAPManager::writePrimaryRealmCertificateUpdateCronFile(TQString *errstr) {
stream << "\n"; stream << "\n";
stream << "#!/bin/sh" << "\n"; stream << "#!/bin/sh" << "\n";
stream << CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_COMMAND << "\n"; stream << CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_COMMAND << "\n";
stream << CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_OPENLDAP_RELOAD_COMMAND << "\n";
file.close(); file.close();

Loading…
Cancel
Save