logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Does mod_auth_form 2.4 work with custom authentication code?

 
Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules



View previous topic :: View next topic  
Author Message
alexqian



Joined: 07 Jan 2016
Posts: 7
Location: U.S.A

PostPosted: Thu 14 Jan '16 17:50    Post subject: Does mod_auth_form 2.4 work with custom authentication code? Reply with quote

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


Post new topic   Reply to topic    Apache Forum Index -> Apache third-party Modules
Page 1 of 1