summaryrefslogtreecommitdiffstats
path: root/src/libtdeldap.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-03 00:02:24 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-03 00:02:24 -0500
commit50a7026e7f9c5ab6738e0ed0445a9aaef7141d68 (patch)
tree59641060fe78b02098042754808f623a81f95ab9 /src/libtdeldap.h
parentfb7be0231c63a621beab13d893ce587c8cdc82fb (diff)
downloadlibtdeldap-50a7026e7f9c5ab6738e0ed0445a9aaef7141d68.tar.gz
libtdeldap-50a7026e7f9c5ab6738e0ed0445a9aaef7141d68.zip
Moved realm conffile writing to this library
Diffstat (limited to 'src/libtdeldap.h')
-rw-r--r--src/libtdeldap.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libtdeldap.h b/src/libtdeldap.h
index 208a43e..f501f29 100644
--- a/src/libtdeldap.h
+++ b/src/libtdeldap.h
@@ -29,6 +29,8 @@
#include <tqdatetime.h>
#include <tqvaluelist.h>
+#define DEFAULT_IGNORED_USERS_LIST "avahi,avahi-autoipd,backup,bin,colord,daemon,games,gnats,haldaemon,hplip,irc,klog,landscape,libuuid,list,lp,mail,man,messagebus,news,ntp,polkituser,postfix,proxy,pulse,root,rtkit,saned,sshd,statd,sync,sys,syslog,timidity,usbmux,uucp,www-data"
+
// Values from hdb.asn1
enum LDAPKRB5Flags {
KRB5_INITIAL = 0x00000001,
@@ -67,6 +69,27 @@ class LDAPCredentials
TQString realm;
};
+// PRIVATE
+class LDAPRealmConfig
+{
+ public:
+ TQString name;
+ bool bonded;
+ long uid_offset;
+ long gid_offset;
+ TQStringList domain_mappings;
+ TQString kdc;
+ int kdc_port;
+ TQString admin_server;
+ int admin_server_port;
+ bool pkinit_require_eku;
+ bool pkinit_require_krbtgt_otherName;
+ bool win2k_pkinit;
+ bool win2k_pkinit_require_binding;
+};
+
+typedef TQMap<TQString, LDAPRealmConfig> LDAPRealmConfigList;
+
class LDAPUserInfo
{
public:
@@ -210,6 +233,9 @@ class LDAPManager : public TQObject {
int moveKerberosEntries(TQString newSuffix, TQString* errstr=0);
+ static void writeLDAPConfFile(LDAPRealmConfig realmcfg);
+ static void writeTDERealmList(LDAPRealmConfigList realms, KSimpleConfig* config);
+
private:
LDAPUserInfo parseLDAPUserRecord(LDAPMessage* entry);
LDAPGroupInfo parseLDAPGroupRecord(LDAPMessage* entry);