|
Project Information
|
VERSION HISTORY
HOW TO INSTALLPRECONDITIONS1. You have configured your Apache as follows: <VirtualHost IP:443> ... # this is under virtualhost :443 section # your webserver public and private cert SSLCertificateFile /etc/ssl/certs/www.domain.ee.crt SSLCertificateKeyFile /etc/ssl/private/www.domain.ee.key # This makes certain, that its valid smartcard and is allowed (google for ID kaart + apache server) SSLCACertificateFile /etc/ssl/certs/id.crt ... </VirtualHost> If you want that before opening Wiki user certificate is asked and autolog is done, add also these lines to your Virtualhost config or .htaccess file in Wiki root: ... # request client cert SSLVerifyClient require SSLVerifyDepth 2 SSLOptions +StdEnvVars +ExportCertData ... 2. Using .htaccess must be allowed. If it is not allowed, you have to copy inc/auth/smartcard/.htaccess content to virtualhost directory section for inc/auth/smartcard: <VirtualHost IP:443>
...
# Usally using Directory instead of Location is recommended,
# but this is not for security, but for asking certificate
<Location "/inc/auth/smartcard">
SSLVerifyClient Optional
SSLVerifyDepth 2
SSLOptions +StdEnvVars +ExportCertData
</Location>
...
</VirtualHost>3. If your value against what your would like to check is not in certificate.subject.serialNumber, you will have to change inc/auth/smartcard.php line 85. STEPS
Instead of steps 1 and 2 you could also do:
HOW TO ALLOW SMARTCARD AUTHYou have to do:
This auth module will authenticated user based on the serial found on smartcard with steps:
CONFIGURE PARAMETERSMust be defined in file: YOUR_WIKI_INSTALLATION/conf/local.php. Config parameters explanation: # set for docuwiki that smartcard auth module is used
$conf['authtype'] = 'smartcard';
# if this is set to true, without smartcard login is not allowed
$conf['auth']['smartcard']['allow_without_smartcard'] = 'true';
# auth modules to use. separated with comma (",")
$conf['auth']['smartcard']['use_authtypes'] = 'plain,mysql';
# log debug info to file
$conf['auth']['smartcard']['log_to_file'] = 'true';AUTHORMargus Pärt (mxrgus.pxrt) FILELIST./dokuwiki ./dokuwiki/inc ./dokuwiki/inc/auth ./dokuwiki/inc/auth/smartcard ./dokuwiki/inc/auth/smartcard/.htaccess ./dokuwiki/inc/auth/smartcard/index.php ./dokuwiki/inc/auth/smartcard.class.php ./dokuwiki/conf ./dokuwiki/conf/auth_smartcard.php ./AUTHOR.txt ./INSTALL.txt KNOWN PROBLEMS
|