summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-01-06 18:22:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-01-06 18:22:31 -0600
commit0109ed80dcaefd6caba1c3ea344f0ab3127fc9f7 (patch)
tree2b5929a9ede0c118f481c250d87fa8ae80689456 /src
parent10269421d3328bb084c88d3c7c563cbfe626dccf (diff)
downloadkcmldapcontroller-0109ed80dcaefd6caba1c3ea344f0ab3127fc9f7.tar.gz
kcmldapcontroller-0109ed80dcaefd6caba1c3ea344f0ab3127fc9f7.zip
Update for new API
Diffstat (limited to 'src')
-rw-r--r--src/ldapcontroller.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ldapcontroller.cpp b/src/ldapcontroller.cpp
index 5f653d1..ad2e313 100644
--- a/src/ldapcontroller.cpp
+++ b/src/ldapcontroller.cpp
@@ -76,10 +76,6 @@
#define HEIMDAL_ACL_FILE "/etc/heimdal-kdc/kadmind.acl"
-#define ROLE_WORKSTATION 0
-#define ROLE_SECONDARY_REALM_CONTROLLER 1
-#define ROLE_PRIMARY_REALM_CONTROLLER 2
-
#define KEY_STRENGTH 2048
typedef KGenericFactory<LDAPController, TQWidget> ldapFactory;
@@ -2044,7 +2040,7 @@ int LDAPController::createNewLDAPRealm(TQWidget* dialogparent, LDAPRealmConfig r
m_systemconfig->sync();
- LDAPManager::writeLDAPConfFile(realmconfig);
+ LDAPManager::writeLDAPConfFile(realmconfig, ROLE_PRIMARY_REALM_CONTROLLER);
// Write the sudoers file
if (ldap_mgr->writeSudoersConfFile(&errorstring) != 0) {