summaryrefslogtreecommitdiffstats
path: root/src/libtdeldap.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-07 18:44:51 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-07 18:44:51 -0500
commitdf417d4eda7b5900fd99666093d5b346d4a8aefb (patch)
tree55de998dc9933d3cb942f643ef49e8c5b86dfc83 /src/libtdeldap.h
parent68d486e22476583b9a2045ecd39f589257a1bb30 (diff)
downloadlibtdeldap-df417d4eda7b5900fd99666093d5b346d4a8aefb.tar.gz
libtdeldap-df417d4eda7b5900fd99666093d5b346d4a8aefb.zip
Move more routines into this library
Diffstat (limited to 'src/libtdeldap.h')
-rw-r--r--src/libtdeldap.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libtdeldap.h b/src/libtdeldap.h
index be3c84a..39ce2b0 100644
--- a/src/libtdeldap.h
+++ b/src/libtdeldap.h
@@ -46,6 +46,8 @@
#define LDAP_CERTKEY_FILE KERBEROS_PKI_PRIVATEDIR "@@@ADMINSERVER@@@.ldap.key"
#define LDAP_CERTREQ_FILE KERBEROS_PKI_PRIVATEDIR "@@@ADMINSERVER@@@.ldap.req"
+#define OPENSSL_EXTENSIONS_FILE TDE_CERTIFICATE_DIR "pki_extensions"
+
#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
@@ -297,14 +299,21 @@ class LDAPManager : public TQObject {
LDAPTDEBuiltinsInfo getTDEBuiltinMappings(TQString *errstr=0);
int writeSudoersConfFile(TQString *errstr=0);
int getTDECertificate(TQString certificateName, TQString fileName, TQString *errstr=0);
+ int setPasswordForUser(LDAPUserInfo user, TQString *errstr);
static void writeCronFiles();
static TQString getMachineFQDN();
static void writeLDAPConfFile(LDAPRealmConfig realmcfg);
static void writeTDERealmList(LDAPRealmConfigList realms, KSimpleConfig* config);
+ static LDAPRealmConfigList readTDERealmList(KSimpleConfig* config, bool disableAllBonds=false);
static TQDateTime getCertificateExpiration(TQString certfile);
static int generatePublicKerberosCACertificate(LDAPCertConfig certinfo);
+ static int generatePublicKerberosCertificate(LDAPCertConfig certinfo, LDAPRealmConfig realmcfg);
+ static int generatePublicLDAPCertificate(LDAPCertConfig certinfo, LDAPRealmConfig realmcfg, uid_t ldap_uid, gid_t ldap_gid);
+
+ static TQString ldapdnForRealm(TQString realm);
+ static TQString cnFromDn(TQString dn);
private:
LDAPUserInfo parseLDAPUserRecord(LDAPMessage* entry);