diff options
author | Timothy Pearson <[email protected]> | 2013-04-12 10:21:45 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-04-12 10:21:45 -0500 |
commit | 98d9e442c41b0951d2035f43ddc7553a5dffee1b (patch) | |
tree | 1a06b6b017442ea31ea3b5a75cd559356a703e14 /src/libtdeldap.h | |
parent | 52d15ff7179f2b53b82a086a52a06fbb6b6d68c3 (diff) | |
download | libtdeldap-98d9e442c41b0951d2035f43ddc7553a5dffee1b.tar.gz libtdeldap-98d9e442c41b0951d2035f43ddc7553a5dffee1b.zip |
Add ability to control PAM options including credential caching and home directory creation
Diffstat (limited to 'src/libtdeldap.h')
-rw-r--r-- | src/libtdeldap.h | 19 |
1 files changed, 18 insertions, 1 deletions
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 <unistd.h> +#include <sys/stat.h> #include <ldap.h> #include <tqobject.h> @@ -190,6 +191,20 @@ class LDAPCertConfig }; // 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 { public: @@ -207,6 +222,8 @@ class LDAPClientRealmConfig TQString ignoredUsers; bool configurationVerifiedForLocalMachine; + + LDAPPamConfig pamConfig; }; typedef TQMap<TQString, LDAPRealmConfig> 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); |