AW: [opencms-dev] problem reading password from OpenCmsUser
Le Tuan
t.le at comundus.com
Thu Apr 24 17:46:00 CEST 2003
password is saved as decoded value in opencms.
17d685f65e3871473c7823a72c3ce73f
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
IT-Consultant
____________________________________________
comundus Unternehmensberatung GmbH
Schüttelgrabenring 3, 71332 Waiblingen
Tel: +49 (0) 71 51-5 00 28-0 Fax: -99
www.comundus.com www.comundus-e-quality.com
____________________________________________
-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]Im Auftrag von Mario Wallnöfer
Gesendet: Donnerstag, 24. April 2003 17:26
An: opencms-dev at opencms.org
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 ......");
break;
}
}
}
%>
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 ????
Mario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030424/4b68173f/attachment.htm>
More information about the opencms-dev
mailing list