From 98d9e442c41b0951d2035f43ddc7553a5dffee1b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 12 Apr 2013 10:21:45 -0500 Subject: Add ability to control PAM options including credential caching and home directory creation --- src/libtdeldap.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/libtdeldap.h') diff --git a/src/libtdeldap.h b/src/libtdeldap.h index 8bc0355..e67bca5 100644 --- a/src/libtdeldap.h +++ b/src/libtdeldap.h @@ -22,6 +22,7 @@ #define _LIBTDELDAP_H_ #include +#include #include #include @@ -189,6 +190,20 @@ class LDAPCertConfig TQString emailAddress; }; +// PRIVATE +class LDAPPamConfig +{ + public: + LDAPPamConfig(); + ~LDAPPamConfig(); + + public: + bool enable_cached_credentials; + bool autocreate_user_directories_enable; + mode_t autocreate_user_directories_umask; + TQString autocreate_user_directories_skel; +}; + // PRIVATE class LDAPClientRealmConfig { @@ -207,6 +222,8 @@ class LDAPClientRealmConfig TQString ignoredUsers; bool configurationVerifiedForLocalMachine; + + LDAPPamConfig pamConfig; }; typedef TQMap LDAPRealmConfigList; @@ -461,7 +478,7 @@ class LDAPManager : public TQObject { static int writeLDAPConfFile(LDAPRealmConfig realmcfg, TQString *errstr=0); static int writeNSSwitchFile(TQString *errstr=0); static int writeClientCronFiles(TQString *errstr=0); - static int writePAMFiles(TQString *errstr=0); + static int writePAMFiles(LDAPPamConfig pamConfig, TQString *errstr=0); static int bondRealm(TQString adminUserName, const char * adminPassword, TQString adminRealm, TQString *errstr=0); static int unbondRealm(LDAPRealmConfig realmcfg, TQString adminUserName, const char * adminPassword, TQString adminRealm, TQString *errstr=0); -- cgit v1.2.1