[pmwiki-users] question about password files

Patrick Ogay lists at basel-inside.ch
Mon Nov 7 22:18:17 CST 2005


Thanks for help. A made a few tests again.  I's getting  very weird.

 >$AuthUser['htpasswd'] = 'local/.htpasswd';
 >$AuthUserHtPasswd = 'local/.htpasswd';
Is it correct, that these statments are meant, both, just for assignig 
the correct password-file.
There is not a user called htpasswd.
I couldn't get it working. 


#   $AuthUser['htpasswd'] = 'local/.htpasswd'; # A passwd-formatted file   
    $AuthUser['vhcuser']  = "$FarmD/local/.htpasswd";
    $AuthUser['vhcusez']  = "$FarmD/local/.htpasswd";
    $AuthUser['pogaz']    = "$FarmD/local/.htpasswd";
#   $AuthUser['htpasswd'] = "$FarmD/local/.htpasswd";   dosn't seem to work
#   $AuthUserHtPasswd     = "$FarmD/local/.htpasswd";

this seem's to work,  I can login with pogaz
(A authlog would be very practical,  I looked at authuser, but it's 
difficult to catch the right place, doesn't , in my case $AuthUser 
/$authid"; always seem to be blank)

for clearness: I work with a wikifarm (2.0.10), and authentication I'm 
testing is  for field blug:
http://212.103.64.226/blug/index.php/Blug/HomePage

Passwd:
pogaz:u6cLSILEk15aQ
pogaz1:u6cLSILEk15aQ
vhcuser:u6cLSILEk15aQ
vhcusez:NPtapYBNVvC02



Farmconfig:
######  authuser 
####################################################################
#  $DefaultPasswords['admin'] = "*";  /*admin action, wie Mutatuion der 
Gruppe site gesperrt */
   $DefaultPasswords['admin'] = '$1$W32gNGnz$qqRtTf.gwGj8KgFcrS9Ow/';


## Die $Authuser müssen vor dem Aufruf von authuser.php definiert sein, 
deswegem wir config.php von hier aufgerufen
## Define usernames and passwords.
##  funktioniert, wird dann z.T. in pw-file und lokal ausgelagert

    $AuthUser['pogay']    = '$1$W32gNGnz$qqRtTf.gwGj8KgFcrS9Ow/'; 
    $Authuser['nic']      = '$1$W32gNGnz$qqRtTf.gwGj8KgFcrS9Ow/';
    $Authuser['pat']      = '$1$W32gNGnz$qqRtTf.gwGj8KgFcrS9Ow/'; 


 
    $AuthUser['pmwikif']  = '$1$yiQu4aL7$eQtLXJ5sJSuRQDUkHJrtK0';
    $AuthUser['pmwiki2']  = crypt('pmwiki2');
    $AuthUser['pmwiki3']  = '$1$W32gNGnz$qqRtTf.gwGj8KgFcrS9Ow/';

#   $AuthUser['htpasswd'] = 'local/.htpasswd'; # A passwd-formatted file   
 
    $AuthUser['vhcusez']  = "$FarmD/local/.htpasswd";
    $AuthUser['pogaz']    = "$FarmD/local/.htpasswd";
    $AuthUser['vhcuser']  = "$FarmD/local/.htpasswd";
#   $AuthUser['htpasswd'] = "$FarmD/local/.htpasswd";
#   $AuthUserHtPasswd     = "$FarmD/local/.htpasswd";

    include_once('local/config.php');          # load per-field settings

    $DefaultPasswords['read']   = 'id:*'; /*alle die User haben */
#   $DefaultPasswords['read']   = 'id:pogay,nic';
    $DefaultPasswords['edit']   = 'id:pogay,nic';
    $DefaultPasswords['upload'] = 'id:pogay,nic';
    include_once("$FarmD/scripts/authuser.php");   /* User basierende 
Authenfification */









More information about the pmwiki-users mailing list