How to config Authz form ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello List,

I tried to create a "form" authz.
The form is showing, invalid user data input that are submit with click
on login button, will end up in a "unauthenticate" page.
So far, so good.

But when the user data are valid, I end up with browser message:
PR_CONNECT_RESET_ERROR

How can I fix that?

the files I used as follow:

Jens

// script.js
$(document).ready(function(){

console.log("loggser ok");
});


<!-- /index.php -->
<!doctype html>
<html lang="en">
<head>
    <title>User-Login</title>

    <meta charset="utf-8">
    <meta name="author"      content="Jens Kallup [paule32]">
    <meta name="copyright"   content="Jens Kallup">
    <meta name="description" content="Operating System Desktop in HTML, CSS and JavaScript">
    <meta name="robots"      content="noindex, nofollow">

    <meta http-equiv="content-type"  content="text/html; charset=utf-8">
    <meta http-equiv="expires"       content="0">
    <meta http-equiv="cache-control" content="max-age=0">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="pragma"        content="no-cache">

    <script language="javascript" type="text/javascript" src="/tools/web/js/jquery/base/jquery-min.3.5.1.js"></script>     <script language="javascript" type="text/javascript" src="/tools/web/js/authform/script.js"></script>
</head>
<body>
<body>
    <h1>Authentication required to access <span class="bw_domain">the requested website</span></h1>
    <form method="post" action="/index/index.php">
        <div id="bw_error">
            <p>Login failed!<br/>Please check the provided username and password and try again.</p>
        </div>
        <fieldset>
            <label>Username</label>
            <input type="text" name="bw_username" value="" id="bw_username" />
            <label>Password</label>
            <input type="password" name="bw_password" value="" id="bw_password" />
            <input type="submit" value="Login" name="bw_login" />
        </fieldset>
    </form>
</body>
</html>



# httpd.conf (vhost)

    <Directory "${APACHE_WEB}/443/index">
        AllowMethods GET POST OPTIONS
        Options +Indexes +FollowSymLinks
        AllowOverride AuthConfig Indexes

        SetHandler form-login-handler

        AuthType form
        AuthName "Restricted Resource"

        AuthFormUsername bw_username
        AuthFormPassword bw_password

        AuthBasicProvider file
        AuthUserFile  "${APACHE_SRC}/pass/ApacheAuthUser.passwd"
        AuthGroupFile "${APACHE_SRC}/pass/ApacheAuthUser.groups"

        Session On
        SessionCryptoPassphrase gugu
        SessionCookieName session path=/
        SessionMaxAge 86400

        Require valid-user
    </Directory>

    <Location "/logout">
        SetHandler form-logout-handler
        AuthFormLogoutLocation "/"

        Session on
        SessionCryptoPassphrase gugu
        SessionCookieName session path=/
        SessionMaxAge 1
    </Location>


browser error:

PR_CONNECT_RESET_ERROR


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux