Usage ok TOKENAUTH method

"Luca Notari" <[email protected]> Tue, 17 Jan 2006 18:04:16 +0100
Newsgroups gmane.comp.apache.mod-survey.general
Organization The Marketing Lab
Message-ID <[email protected]>
Hi all, 
I've searched through the new syntax reference
(mod_survey_syntax_reference.pdf of 3.2.3 pre2 version) for TOKENAUTH
subtag, in order to use this method of authentication, but I'm not able to
implement with a simple file;


Scope: I have to authenticate some users allowing to do surveys, against a
simple list (htpasswd-made);
Examples in the mailing list don't speak about password.

EXAMPLE:
I have http://mydomain/test.survey and want user01 to do this survey; 

This is my SECURITY tag:
<SECURITY REQAUTH="yes">
<TOKENAUTH ARG="token" APPEND="yes"
USERFILE="/usr/local/mod_survey/token/tokenfile" />
    <ANSWER LEVEL="user"/>
    <DATA LEVEL="open" />
    <SOURCE LEVEL="open" />
  </SECURITY>

Making file "tokenfile": htpasswd -bc tokenfile user01 password
And so file tokenfile OK;

To reach this survey, in a browser I've typed:

A) http://mydomain/test.survey?action=display&token=user01 (what about
password???)
Doesn't work;
B) http://mydomain/test.survey?action=display&token=user01&password=password
Doesn't work;
C) http://mydomain/test.survey?action=display&token=user01:password
Doesn't work.

How can I authenticate a user to do a survey, with TOKENAUTH?

Luca Notari 
The Marketing Lab 
[email protected]

Skickat av "Luca Notari" <[email protected]>
till survey-discussion