<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'm trying to create Web User and then log on the
system....</FONT></DIV>
<DIV><FONT face=Arial size=2>I create the user from a JSP with the following
code :</FONT></DIV>
<DIV><FONT face=Arial size=2>---------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2> CmsUser createdUser =
cmso.addWebUser(<BR> USER,<BR> cmso.digest(PWD),
<BR> I_CmsConstants.C_GROUP_GUEST,<BR> NAME,<BR> additionalInfos,<BR> I_CmsConstants.C_FLAG_ENABLED<BR> );<BR>---------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It seems to work, I found the entry in the DB, and
if I create the user twice I got a correct exception.</FONT></DIV>
<DIV><FONT face=Arial size=2>Then I try to log with the following code
:</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>----------------------------
<DIV><FONT face=Arial size=2> CmsJspActionElement cms = new
CmsJspActionElement(pageContext, request, response); <BR> CmsObject cmso =
cms.getCmsObject(); </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> System.out.println("Logging :
["+USER+"]["+PWD+"]");<BR> cmso.loginWebUser(USER, PWD);
<BR>----------------------------</FONT></DIV></FONT></DIV></FONT><FONT
face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But I get en exception:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Logging :
[gamma][gamma]<BR>com.opencms.core.CmsException: 10 Unknown User. Detailed
error:
[com.opencms.file.mySql.CmsDbAccess]gamma.<BR>
at
com.opencms.file.genericSql.CmsDbAccess.readUser(CmsDbAccess.java:10271)<BR>
at
com.opencms.file.genericSql.CmsResourceBroker.loginWebUser(CmsResourceBroker.java:4502)<BR>
at
com.opencms.file.CmsObject.loginWebUser(CmsObject.java:2342)<BR>
at
org.apache.jsp.Login_jsp_jsp._jspService(Login_jsp_jsp.java:75)<BR>
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)<BR>
.....<BR> .....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Anybody has any idea ?</FONT></DIV></BODY></HTML>