In 4.1.2 I could authenticate through the REST script by passing the username and password parameters. When I try to do this in MAIN I get a 500 Internal Server Error. I tracked down two problems, but each revealed another and I started to get in over my head.
The first error:
Can't call method "checkPassword" on an undefined value at /var/www/html/twiki/MAIN/bin/rest line 82. I fixed it by adding the following lines to Users.pm:
require TWiki::Users::Password;
$this->{passwords} = new TWiki::Users::Password( $this );
The second error is
Can't locate object method "findUser" via package "TWiki::Users" at /var/www/html/twiki/MAIN/bin/rest line 87. This was easilly fixed by changing the function call to
findUserByWikiName
The third problem is not a server error, but TWiki does not know what user I am logged in as. When my plugin outputs
getWikiUserName() I get the following:
Main.UnknownUser (ARRAY(0xa432274)).
!UnknownUser is getting set by
getWikiName in Users.pm, but I don't know why
$cUID is an array. Could one of the functions be passing too many parameters?
--
TWiki:Main/JasonHill
- 20 Jul 2007
Ping Sven - any update on this?
CC
I recon i've fixed this now
--
SvenDowideit - 04 Sep 2007