Being laid up with the flu, I couldn't sleep last night and my brain was aflame. So, I did a bit of hacking, and here's the result:
http://un.earth.li/~earle/cgi-bin/wiki.cgi
Note the link at the bottom right. Try creating some test nodes and deleting them! (If you could not delete "Example Node" I'd be grateful. The password is "test".
The way this works is that it checks the password you enter against a value in wiki.conf[0]. Not very subtle. However, this exposes a security issue, that I believe Ivor first picked up on - by default, wiki.conf is in the same directory as wiki.cgi, which means that anybody who knows that can just look and see all the configuration settings, including the password.
So, what's needed is for wiki.conf to be somewhere that's not world-readable. I was thinking maybe at configure time you'd be asked for a location for wiki.conf to be stored in, and that value could be stored in a file next to wiki.cgi for it to read.
Comments?
[0] I'll need to modify the config script to ask you for a password next.