Re: Usage ok TOKENAUTH method
Joel Palmius <[email protected]> Tue, 17 Jan 2006 18:12:11 +0100 (CET)
| Newsgroups | gmane.comp.apache.mod-survey.general |
|---|---|
| Message-ID | <[email protected]> |
Tokenauth isn't for htpasswd files. If you want basic auth with username and password, use FILEAUTH. TOKENAUTH is only for when you identify yourself with *one* string, ie a token. The format of the user file in TOKENAUTH is one token string per line. Replace the TOKENAUTH tag with FILEAUTH: .. <FILEAUTH USERFILE="[some htpasswdmade file] /> .. // Joel On Tue, 17 Jan 2006, Luca Notari wrote: > 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 > Skickat av Joel Palmius <[email protected]> till survey-discussion