[opencms-dev] form based auth

Jan Heise jan at janheise.de
Sun Apr 18 19:40:02 CEST 2004


hi again,

somehow the NPE disappeared and the auth-page is shown but now
the question remains: where do i post the form to and how are the
parameters named?

tia,

jan

Am 18.04.2004 um 19:07 schrieb Jan Heise:

> hi all,
>
> i'm trying to set up form based auth with opencms. i secured a page and
> got basic auth working. after changing the conf in opencms.properties  
> to
> use form based auth, all i get is a NPE:
>
> com.opencms.core.CmsException: 0 Unknown exception. Detailed error:  
> [com.opencms.file.mySql.CmsDbAccess].
> root cause was java.lang.NullPointerException
> 	at  
> com.opencms.file.genericSql.CmsDbAccess.readUser(CmsDbAccess.java: 
> 10307)
> 	at  
> com.opencms.file.genericSql.CmsResourceBroker.loginWebUser(CmsResourceB 
> roker.java:4502)
> 	at com.opencms.file.CmsObject.loginWebUser(CmsObject.java:2342)
> 	at  
> com.opencms.core.OpenCmsHttpServlet.initUser(OpenCmsHttpServlet.java: 
> 571)
> 	at  
> com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:304)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> my auth.html is _not_shown. it looks like opencms is trying to log in  
> a user
> even before showing the auth.html. i also did not find any info on how  
> i have
> to write the auth.html (how do i have to name the fields? where do i  
> have to
> post the form to?)
>
> tia, jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1430 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040418/ca90e4f7/attachment.bin>


More information about the opencms-dev mailing list