Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Does mod_auth_form 2.4 work with custom authentication code? |
|
Author |
|
alexqian
Joined: 07 Jan 2016 Posts: 7 Location: U.S.A
|
Posted: Thu 14 Jan '16 17:50 Post subject: Does mod_auth_form 2.4 work with custom authentication code? |
|
|
Our company has our own authentication code/module already in place that goes to multiple user databases (SQL, LDAP etc) and reconciles the user records from these repositories for authentication and authorization. The standard AuthFormProvider (file, dbd, ldap) cannot serve the purpose we want. The old mod_auth_form 2.0.5 allows us to invoke our own authentication/authorization logic/code via
AuthFormPageLogin /login.php
AuthFormPageExpired /expired.php
It does not seem that the new mod_auth_form 2.4 will support that?
We tried :
SetHandler form-login-handler AuthFormLoginRequiredLocation /login.php
AuthFormLoginSuccessLocation /main/main.php
AuthFormProvider dbd
AuthType form
AuthName "My Auth"
ErrorDocument 401 /login.php
Session On
SessionEnv On
SessionMaxAge 0
#SessionDBDPerUser On
SessionDBDCookieName session path=/
SessionDBDSelectLabel selectsession
SessionDBDDeleteLabel deletesession
SessionDBDInsertLabel insertsession
SessionDBDUpdateLabel updatesession
It does not write the session record to session DB table after login.php authenticates/authorizes the user. |
|
Back to top |
|
|
|
|
|
|