diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-01-06 17:49:26 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-01-06 17:49:26 -0600 |
commit | 571e1739fb4f6cf77c1e7297670801114b6de717 (patch) | |
tree | 2a13cfd3c285b2a04e1963c85879a103264c65e5 /src/libtdeldap.h | |
parent | 39c401b796d4f896dd66e2b55287e8f18e564939 (diff) | |
download | libtdeldap-571e1739fb4f6cf77c1e7297670801114b6de717.tar.gz libtdeldap-571e1739fb4f6cf77c1e7297670801114b6de717.zip |
Fix LDAP CA root file configuration
Diffstat (limited to 'src/libtdeldap.h')
-rw-r--r-- | src/libtdeldap.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libtdeldap.h b/src/libtdeldap.h index cde314c..814fc0a 100644 --- a/src/libtdeldap.h +++ b/src/libtdeldap.h @@ -90,6 +90,12 @@ enum LDAPKRB5Flags { KRB5_FLAG_MAX = 0x80000000 }; +enum LDAPMachineRole { + ROLE_WORKSTATION = 0, + ROLE_SECONDARY_REALM_CONTROLLER = 1, + ROLE_PRIMARY_REALM_CONTROLLER = 2 +}; + inline LDAPKRB5Flags operator|(LDAPKRB5Flags a, LDAPKRB5Flags b) { return static_cast<LDAPKRB5Flags>(static_cast<int>(a) | static_cast<int>(b)); @@ -514,7 +520,7 @@ class LDAPManager : public TQObject { static LDAPClientRealmConfig loadClientRealmConfig(KSimpleConfig* config, bool useDefaults=false); static int saveClientRealmConfig(LDAPClientRealmConfig clientRealmConfig, KSimpleConfig* config, TQString *errstr=0); static int writeClientKrb5ConfFile(LDAPClientRealmConfig clientRealmConfig, LDAPRealmConfigList realmList, TQString *errstr=0); - static int writeLDAPConfFile(LDAPRealmConfig realmcfg, TQString *errstr=0); + static int writeLDAPConfFile(LDAPRealmConfig realmcfg, LDAPMachineRole machineRole, TQString *errstr=0); static int writeNSSwitchFile(TQString *errstr=0); static int writeClientCronFiles(TQString *errstr=0); static int writePAMFiles(LDAPPamConfig pamConfig, TQString *errstr=0); |