Add confskel installation

pull/1/head
Timothy Pearson 12 years ago
parent 4c434b19f0
commit 7df2e830ef

@ -0,0 +1,10 @@
confskeldir = $(kde_datadir)/kcmldapcontroller/skel
heimdalskeldir = $(confskeldir)/heimdal
heimdalskel_DATA = heimdal/*
ldapskeldir = $(confskeldir)/openldap
ldapskel_DATA = openldap/skel.ldif
ldapconfskeldir = $(ldapskeldir)/ldap
ldapconfskel_DATA = openldap/ldap/*

@ -40,6 +40,7 @@
#include <kcombobox.h>
#include <kmessagebox.h>
#include <tqcheckbox.h>
#include <ktempdir.h>
#include "ldapcontroller.h"
#include "realmwizard.h"
@ -224,13 +225,28 @@ void LDAPController::save() {
load();
}
void replacePlaceholdersInFile(TQString infile, TQString outfile) {
// RAJA FIXME
}
int LDAPController::createNewLDAPRealm(TQWidget* dialogparent, LDAPRealmConfig realmconfig, TQString adminUserName, const char * adminPassword, TQString adminRealm, TQString *errstr) {
ProcessingDialog pdialog(dialogparent);
pdialog.setStatusMessage(i18n("Loading data for realm deployment..."));
pdialog.raise();
pdialog.setActiveWindow();
tqApp->processEvents();
// Copy all config files to the temporary directory
// Find the templates
TQString templateDir = locate("data", "kcmldapcontroller/skel");
printf("[RAJA DEBUG 100.0] templateDir: %s\n\r", templateDir.ascii()); fflush(stdout);
if (templateDir == "") {
pdialog.closeDialog();
return -1;
}
KTempDir configTempDir;
configTempDir.setAutoDelete(true);
replacePlaceholdersInFile(templateDir + "heimdal/heimdal.defaults", configTempDir.name() + "heimdal/heimdal.defaults");
// RAJA FIXME
pdialog.closeDialog();

@ -1,3 +1,4 @@
doc
po
src
confskel
Loading…
Cancel
Save