use the ikiwiki userdb outside of the ikiwiki edition access control
[ikiwiki] / doc / todo / htpasswd_mirror_of_the_userdb.mdwn
1 [[!tag wishlist]]
2
3 Ikiwiki is static, so access control for viewing the wiki must be implemented on the web server side. Managing wiki users and access together, we can currently
4
5 * use [[httpauth|plugins/httpauth/]], but some [[passwordauth|plugins/passwordauth]] functionnality [[is missing|todo/httpauth_feature_parity_with_passwordauth/]];
6 * use [[passwordauth|plugins/passwordauth]] plus [[an Apache `mod_perl` authentication mechanism|plugins/passwordauth/discussion/]], but this is Apache-centric and enabling `mod_perl` just for auth seems overkill.
7
8 Moreover, when ikiwiki is just a part of a wider web project, we may want to use the same userdb for the other parts of this project.
9
10 I think an ikiwiki plugin which would (re)generate an htpasswd version of the user/passwd base (better, two htpasswd files, one with only the wiki admins and one with everyone) each time an user is added or modified would solve this problem:
11
12 * access control can be managed from the web server
13 * user management is handled by the passwordauth plugin
14 * htpasswd format is understood by various servers (Apache, lighttpd, nginx, ...) and languages commonly used for web development (perl, python, ruby)
15 * htpasswd files can be mirrored on other machines when the web site is distributed
16
17 -- [[nil]]