[opencms-dev] problem reading password from OpenCmsUser

Mario Wallnöfer mario.wallnoefer at msk-informatik.at
Thu Apr 24 17:30:02 CEST 2003

I am trying in a jsp to read the password from a CmsUser.

I do it in thgis way:
  com.opencms.flex.jsp.CmsJspActionElement cms = new
com.opencms.flex.jsp.CmsJspActionElement(pageContext, request, response);
  com.opencms.file.CmsObject cmsObject = cms.getCmsObject();
  out.print("Username: " + request.getParameter("user") + "<br>");
  out.print("Passwort: " + request.getParameter("password") + "<br>");

  java.util.Vector lVec = cmsObject.getUsers();
  for(int i=0;i<lVec.size();i++) {
   com.opencms.file.CmsUser lUser = (com.opencms.file.CmsUser)lVec.get(i);
   if(lUser.getName().equals(request.getParameter("user"))) {
    out.print("User gefunden.... <br>");
    out.print("Passwort: " + lUser.getPassword());
    if(lUser.getPassword().equals(request.getParameter("password"))) {
     out.print("Passwot OK ......");

everything works well, the only problem is when calling the getPassword()
method i get something like 17d685f65e3871473c7823a72c3ce73f
which is not the password string. What is the right way to get the real
Password ????

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20030424/95389191/attachment.html>

More information about the opencms-dev mailing list