Hi,

I want to upgrade from an old system running Apache 1.3/mod_dtcl to Apache2.
Unfortunately, Rivet is not yet fully available for Apache2, so I thought to
try out websh. It compiles and runs without problems on a Ubuntu and a SuSE
10 system. Great!

Now I have one problems, which I got solved using mod_dtcl and Rivet, that
is to handle authentification in the Tcl-part. In mod_dtcl and Rivet you
have access to the username and password supplied by the brower. So,
assuming I would have access to user/password as USER(user)/USER(password)
in websh, I could create a page like this:

        web::command default {
                if {[info exists USER]} {
                        if {[checkUserPassword $USER(user) $USER(password)]}
{
                                showPage
                        } else {
                                showError "sorry, wrong user/password"
                        }
                } else {
                        web::response -httpresponse  401
                        web::response -set WWW-Authenticate \
                                "Basic realm=\"My Domain\""
                }
        }
        web::dispatch

Is an authentification like this possible using websh or could it easily be
added?

Thanks
Holger

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to