[opencms-dev] form based auth

Jan Heise jan at janheise.de
Sun Apr 18 19:08:01 CEST 2004


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(CmsResourceBr 
oker.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: 1190 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040418/f1b69ec9/attachment.bin>


More information about the opencms-dev mailing list