NoAuth

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


Goal

Disabling passwords which are specified for a wiki-page or wiki-group, e.g. within a local copy of a productive PmWiki on your local webserver for testing etc.

I use this to copy the wiki-pages of my wiki at my ISP into my locally used PmWiki on my home-computer. This is a protected region, where I don't need any passwords to be set (and in the windows-PmWiki at home I also get trouble when using the crypt() function to crypt passwords cause the apache-passwords are always crypted by MD5() on windows systems). But I want the passwords to be kept just in case I copy the wiki-textfiles to my ISP's PmWiki.

Solution

Implemented a dummy authentification function named NoAuth() and set variable $AuthFunction = 'NoAuth'; to activate it.

Discussion

Include the following php-script (filename without .txt) into your config.php of your local PmWiki-installation by using:

include_once('local/NoAuth.php');

Attach:NoAuth.php.txt

Caution
Be sure to deactivate the authentification only in a protected secure PmWiki (e.g. your local PC) ! E.g. I implemented a conditional call of the include depending on the system name only for my home system.

See Also

History

2004-06-02 first implementation

Comments & Bugs

Contributors

Author

KAL pmwiki-2.2.143 -- Last modified by {{KAL}}

from IP: 85.171.160.186 ip should be disabled by default for security reasons