summaryrefslogtreecommitdiffstats
path: root/src/ldapcontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldapcontroller.cpp')
-rw-r--r--src/ldapcontroller.cpp28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/ldapcontroller.cpp b/src/ldapcontroller.cpp
index 8572b2f..7ed2a7e 100644
--- a/src/ldapcontroller.cpp
+++ b/src/ldapcontroller.cpp
@@ -61,21 +61,37 @@
#include "ldapcontrollerconfigbase.h"
-// FIXME
-// Connect this to CMake/Automake
+#ifndef KDE_CONFDIR
#define KDE_CONFDIR "/etc/trinity"
+#endif
+
+#ifndef TDE_LIBDIR
#define TDE_LIBDIR "/opt/trinity/lib"
+#endif
+
+#ifndef LDAP_KEYTAB_FILE
#define LDAP_KEYTAB_FILE "/etc/ldap/ldap.keytab"
+#endif
-// FIXME
-// This assumes Debian!
-// RedHat would be "/etc/sysconfig/ldap"
+#ifndef LDAP_DEFAULT_FILE
#define LDAP_DEFAULT_FILE "/etc/default/slapd"
+#endif
+
+#ifndef HEIMDAL_DEFAULT_FILE
#define HEIMDAL_DEFAULT_FILE "/etc/default/heimdal-kdc"
+#endif
+
+#ifndef SASL_DEFAULT_FILE
#define SASL_DEFAULT_FILE "/etc/default/saslauthd"
+#endif
+
+#ifndef SASL_CONTROL_FILE
#define SASL_CONTROL_FILE "/etc/ldap/sasl2/slapd.conf"
+#endif
+#ifndef HEIMDAL_ACL_FILE
#define HEIMDAL_ACL_FILE "/etc/heimdal-kdc/kadmind.acl"
+#endif
#define KEY_STRENGTH 2048
@@ -2206,3 +2222,5 @@ TQString LDAPController::quickHelp() const
{
return i18n("This module configures an LDAP Realm Controller.");
}
+
+#include "ldapcontroller.moc"