[pmwiki-users] Re: authuser and .htgroups

Joachim Durchholz jo at durchholz.org
Fri Jul 1 01:59:20 CDT 2005


Patrick R. Michaud wrote:

> I just did what looked like it would be easiest from a wiki-admin
> perspective to understand and use.  But they don't have to go into
> an array at all, we can just do:
> 
>    $AuthUserHtPasswd = "/path/to/.htpasswd"
>    $AuthUserLDAP = "ldap://url.to.ldap.server"
>    $AuthUserPAM = "..."

Hmm... it might be sensible to keep that data in arrays anyway. It would 
keep the path for iterating over all authentication methods open - that 
could be useful for doing diagnostics, or trying to authenticate a user 
through all the schemes available without knowing which ones are 
installed (helpful for recipes).
Or it would open up configuration possibilities. E.g. disable some 
specific authentication schemes by saying
   if ($FullName == 'Main.CriticalPage') {
     unset($AuthScheme['http-basic-unencrypted']);
   }
The advantage here is that the person who wants to disable a scheme 
doesn't need to look up the exact names of the configuration variables.

Regards,
Jo



More information about the pmwiki-users mailing list