summaryrefslogtreecommitdiffstats
path: root/cert-updater/main.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2015-08-31 23:11:58 +0000
committerTimothy Pearson <[email protected]>2015-08-31 23:11:58 +0000
commit18c4c3789722d6ebbf8b0bb8ce86a508d2aea2c5 (patch)
tree1c291b60a661e6ddbb115dc7af4d50de49c1743a /cert-updater/main.cpp
parent4df015f3265e825cf1375f8a68b3f096d56d084d (diff)
downloadkcmldapcontroller-18c4c3789722d6ebbf8b0bb8ce86a508d2aea2c5.tar.gz
kcmldapcontroller-18c4c3789722d6ebbf8b0bb8ce86a508d2aea2c5.zip
Use tdeldap library PKI certificate generation methods
Diffstat (limited to 'cert-updater/main.cpp')
-rw-r--r--cert-updater/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cert-updater/main.cpp b/cert-updater/main.cpp
index e4042fb..0dc3a27 100644
--- a/cert-updater/main.cpp
+++ b/cert-updater/main.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2012 by Timothy Pearson *
+ * Copyright (C) 2012 - 2015 by Timothy Pearson *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -73,7 +73,7 @@ int main(int argc, char *argv[])
{
TDEAboutData aboutData( "primaryrccertupdater", I18N_NOOP("Realm Certificate Updater"),
version, description, TDEAboutData::License_GPL,
- "(c) 2012-2013, Timothy Pearson");
+ "(c) 2012-2015, Timothy Pearson");
aboutData.addAuthor("Timothy Pearson",0, "[email protected]");
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions(options);
@@ -160,7 +160,7 @@ int main(int argc, char *argv[])
}
if (force_update || (certExpiry < now) || ((certExpiry >= now) && (certExpiry < soon))) {
printf("Regenerating certificate %s...\n", TQString(KERBEROS_PKI_PEM_FILE).ascii()); fflush(stdout);
- LDAPManager::generatePublicKerberosCACertificate(m_certconfig);
+ LDAPManager::generatePublicKerberosCACertificate(m_certconfig, m_realmconfig[m_defaultRealm]);
TQString realmname = m_defaultRealm.upper();
LDAPCredentials* credentials = new LDAPCredentials;