AW: [opencms-dev] problem reading password from OpenCmsUser

Le Tuan t.le at
Thu Apr 24 17:46:00 CEST 2003

password is saved as decoded value in opencms.
is the password saved in the user table.
The password cannot be encoded.
Therefore, you cannot get the real password !!!
This problem i have, too :-(

Mit freundlichen Grüßen

i.A. Tuan Le

comundus Unternehmensberatung GmbH
Schüttelgrabenring 3, 71332 Waiblingen

Tel:    +49 (0) 71 51-5 00 28-0   Fax: -99

  -----Ursprüngliche Nachricht-----
  Von: opencms-dev-admin at
[mailto:opencms-dev-admin at]Im Auftrag von Mario Wallnöfer
  Gesendet: Donnerstag, 24. April 2003 17:26
  An: opencms-dev at
  Betreff: [opencms-dev] problem reading password from OpenCmsUser

  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: <>

More information about the opencms-dev mailing list