Compatible with DokuWiki
Greebo
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to authhttp, authremoteuser
This plugin authenticate user based on content of client certificate provided by a reverse proxy or a web server. The certificate is picked up from the _SERVER variable. Either SSL_CLIENT_CERT or any HTTP header can be configured as a source of certificate. This plugin expects certificate in PEM format. The BEGIN/END CERTIFICATE fields are optional.
This plugin does not perform any certificate validation. It is up to the configured web server or reverse proxy to validate the certificate before passing it.
The following table shows mapping between certificate fields and user info.
| Certificate | User Info |
|---|---|
| name employeeNumber (OID:2.16.840.1.113730.3.1.3) | user1) |
| extensions subjectAltName email | |
| subject CN | real name |
If the certificate is present and all of the above fields are not empty, a user is logged in. New users are created on the first login - random passwords are generated for consistency.
Logging out and profile editing are disabled. However, the administrator can modify group membership or delete a user.
Authclientcert plugin uses authplain as back-end storage.
This plugin does not work with authchained.
The selection of the fields and mapping is hard coded to match content of a smartcard I have. It is very likely that the selection does not match your cetificate.
The easiest way to adjust it is to edit plugins auth.php.
Long term it make sense to capture most common cases as configuration. Please, let me know about your needs by opening an issue at Github, or even better create a PR.