diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-09-22 11:18:37 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-09-22 11:18:37 -0500 |
commit | c6be9b0e1ac47167cb6388fb94e3a5811f2bb698 (patch) | |
tree | d024dd15156514ff4eef308588a779947da91ba3 /src | |
parent | 3086fd516f898b6c3ae1ccf65e1e1b1e07a3bfe9 (diff) | |
parent | 1ccfd00cd4c07513aeccf73c082d7ef4f3c0c35a (diff) | |
download | libtdeldap-c6be9b0e1ac47167cb6388fb94e3a5811f2bb698.tar.gz libtdeldap-c6be9b0e1ac47167cb6388fb94e3a5811f2bb698.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/libtdeldap
Diffstat (limited to 'src')
-rw-r--r-- | src/libtdeldap.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index 6d78cf7..c8957cd 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -5136,6 +5136,14 @@ int LDAPManager::writePAMFiles(LDAPPamConfig pamConfig, TQString *errstr) { } if (pamConfig.enable_pkcs11_login) { + TQDir pkcs11dir(PAMD_PKCS11_CONFIG_DIRECTORY); + if (!pkcs11dir.exists()) { + if (mkdir(PAMD_PKCS11_CONFIG_DIRECTORY, S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) < 0) { + if (errstr) { + *errstr = i18n("Could not create directoy '%1'").arg(PAMD_PKCS11_CONFIG_DIRECTORY); + } + } + } TQFile file4(PAMD_PKCS11_CONFIG_DIRECTORY PAMD_PKCS11_CONFIG_FILE); if (file4.open(IO_WriteOnly)) { TQTextStream stream( &file4 ); |