If you have PHP 5.6 or newer you can no longer use crypt() this way.

You should upgrade to the latest PmWiki version, 2.2.109 and change all calls to crypt() with pmcrypt().

Please read the release notes before you upgrade.

Petko

P.S. Version 2.2.109 should work even with older PHP versions.


On 06/08/2018 09:52, Joshua J. Kugler wrote:
I'm trying to convert to AuthUser. However, when I try to login in, it goes
right back to the login screen

I have AuthUser enabled. The first part of config.php looks like:

<?php if (!defined('PmWiki')) exit();
$WikiTitle = 'My Title';

$PageLogoUrl = "$PubDirUrl/images/my_header.jpg";

$EnableUpload = 1;
$UploadPrefixFmt = '/$Group/$Name';
$EnableUploadVersions=1;

# We want to be able to enable password protection on pages
$DefaultPasswords['admin'] = array(crypt('pw'), crypt('pw2'));
$DefaultPasswords['read'] = array('@read', crypt('pw3'), crypt('pw4'));
$DefaultPasswords['edit'] = array('@edit', crypt('pw5'));
$DefaultPasswords['upload'] = array('@edit', crypt('pw6'));

# Enable AuthUser
include_once("$FarmD/scripts/authuser.php");

NOTE: using the "old" (existed before switch to AuthUser) pwX passwords still
works, as it should...just not the new user/pass combinations.

/SiteAdmin/AuthUser looks like:

user1: $!$<password created with (:encrypt wonderland:)>
---
userN: $!$<password created with (:encrypt wonderland:)>

@read: user1, user2, user3

@edit: user4, user5, user6

This is in my http logs after a login request:

2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice: Use of undefined constant ATTACH_DELETE_VERSION - assumed 'ATTACH_DELETE_VERSION' in /
home/web/mywiki.mydomain.com/wiki/cookbook/attachdel.php on line 38
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Undefined variable: authlist in /home/web/mywiki.mydomain.com/wiki/scripts/
authuser.php on line 72
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Undefined index: htgroup in /home/web/mywiki.mydomain.com/wiki/scripts/
authuser.php on line 85
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Undefined index: prefs in /home/web/mywiki.mydomain.com/wiki/scripts/prefs.php
on line 34
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Undefined variable: k in /home/web/mywiki.mydomain.com/wiki/scripts/prefs.php
on line 41
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Undefined variable: k in /home/web/mywiki.mydomain.com/wiki/scripts/prefs.php
on line 42
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Uninitialized string offset: 0 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php
on line 922
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Uninitialized string offset: 0 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php
on line 922
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Uninitialized string offset: 0 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php
on line 922
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Uninitialized string offset: 0 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php
on line 922
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Uninitialized string offset: 0 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php
on line 922
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Uninitialized string offset: 0 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php
on line 922
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Uninitialized string offset: 0 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php
on line 922
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Undefined offset: 2 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php(456) :
runtime-created function on line 1
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Undefined offset: 2 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php(456) :
runtime-created function on line 1
2018-08-05 23:24:59: (mod_fastcgi.c.2673) FastCGI-stderr: PHP Notice:
Undefined offset: 2 in /home/web/mywiki.mydomain.com/wiki/pmwiki.php(456) :
runtime-created function on line 1

This is pmwiki-2.2.56

Any ideas how to trouble shoot this?

j

_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to