From 50a7026e7f9c5ab6738e0ed0445a9aaef7141d68 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 3 Jun 2012 00:02:24 -0500 Subject: Moved realm conffile writing to this library --- src/libtdeldap.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/libtdeldap.h') 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 #include +#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 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); -- cgit v1.2.1