diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-06-27 23:03:24 +0000 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-06-27 23:03:24 +0000 |
commit | 8a439f8521d78dc4c3ebcca248bc60f540e83acb (patch) | |
tree | d658934a63ccd6650f91cfb0ae65b4e3832f848e /src/libtdeldap.h | |
parent | 5b8ec508a097798e42408f3bd03ce96985cfc90e (diff) | |
download | libtdeldap-8a439f8521d78dc4c3ebcca248bc60f540e83acb.tar.gz libtdeldap-8a439f8521d78dc4c3ebcca248bc60f540e83acb.zip |
Add a number of methods to enable multi-master replication
Diffstat (limited to 'src/libtdeldap.h')
-rw-r--r-- | src/libtdeldap.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/libtdeldap.h b/src/libtdeldap.h index 2c73967..ee60b94 100644 --- a/src/libtdeldap.h +++ b/src/libtdeldap.h @@ -374,6 +374,37 @@ class LDAPTDEBuiltinsInfo TQString builtinStandardUserGroup; }; +class LDAPMasterReplicationMapping +{ + public: + LDAPMasterReplicationMapping(); + ~LDAPMasterReplicationMapping(); + + public: + int id; + TQString fqdn; +}; + +typedef TQValueList<LDAPMasterReplicationMapping> LDAPMasterReplicationMap; + +class LDAPMasterReplicationInfo +{ + public: + LDAPMasterReplicationInfo(); + ~LDAPMasterReplicationInfo(); + + public: + bool informationValid; + bool enabled; + LDAPMasterReplicationMap serverIDs; + TQString retryMethod; + int timeout; + int syncMethod; + TQString syncDN; + TQCString syncPassword; + TQString certificateFile; +}; + class KerberosTicketInfo { public: @@ -446,6 +477,8 @@ class LDAPManager : public TQObject { int writeCertificateFileIntoDirectory(TQByteArray cert, TQString attr, TQString* errstr=0); LDAPTDEBuiltinsInfo getTDEBuiltinMappings(TQString *errstr=0); + LDAPMasterReplicationInfo getLDAPMasterReplicationSettings(TQString *errstr=0); + int setLDAPMasterReplicationSettings(LDAPMasterReplicationInfo replicationinfo, TQString *errstr=0); int writeSudoersConfFile(TQString *errstr=0); int getTDECertificate(TQString certificateName, TQString fileName, TQString *errstr=0); int setPasswordForUser(LDAPUserInfo user, TQString *errstr); @@ -489,6 +522,8 @@ class LDAPManager : public TQObject { LDAPMachineInfo parseLDAPMachineRecord(LDAPMessage* entry); LDAPServiceInfo parseLDAPMachineServiceRecord(LDAPMessage* entry); LDAPTDEBuiltinsInfo parseLDAPTDEBuiltinsRecord(LDAPMessage* entry); + LDAPMasterReplicationInfo parseLDAPMasterReplicationRecord(LDAPMasterReplicationInfo replicationinfo, LDAPMessage* entry); + TQString parseLDAPSyncProvOverlayConfigRecord(LDAPMessage* entry); private: TQString m_realm; |