<div>Hi</div>
<div>Thanks for quick feedback.,...this module is an admin module i have to work on.</div>
<div>Andy<br><br> </div>
<div><span class="gmail_quote">2006/10/19, Jonathan Woods <<a href="mailto:jonathan.woods@scintillance.com">jonathan.woods@scintillance.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">If your module registers a class implementing I_CmsModuleAction in opencms-modules.xml, then that class will get instantiated and called on module initialisation time (
e.g. at system start-up).  Various methods defined in the interface include as a parameter an instance of CmsObject, and I believe the OpenCms runtime calls these methods (at start-up) using a CmsObject which has administrative rights.  In your module's implementation of I_CmsModuleAction, you can store a reference to this CmsObject to be used later.  It doesn't feel like a neat solution, but I believe people have used it successfully.
</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">There's been discussion on this subject on this list in the past year - you might be able to find something else by searching e.g. at <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.nabble.com/OpenCMS---Dev-f654.html" target="_blank">
http://www.nabble.com/OpenCMS---Dev-f654.html</a>.</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Jon</font></span></div><br>
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:opencms-dev-bounces@opencms.org" target="_blank">
opencms-dev-bounces@opencms.org</a>] <b>On Behalf Of </b>Andy Bicksbo<br><b>Sent:</b> 19 October 2006 13:57<br><b>To:</b> The OpenCms mailing list<br><b>Subject:</b> [opencms-dev] Switching the user of cmsObject/Safety<br>
</font><br> </div>
<div><span class="e" id="q_10e60cb425abbafe_1">
<div></div>
<div>Hi</div>
<div> </div>
<div>I worked on this the last days and i didn't find a possibility the get a readble password out of an user. The Password is decoded into md5, i think, and as far as i k´know, there isn't any possibility the retrieve a md5 into human readable coding and there's nothing, where opencms retrieves a password. I'm working currently on a component for opencms, where i need to build a cmsobject with a user with admin rights, but i don't want to write a user with it'S password into sourcecode( 
cmsObject.loginuser(String username, String password)) nor to change the permissions of every file i have to alter before doing stuff with it and afterwards. (The user, who should initiate this component has no adminrights, so i have to switch the user of cmsObject) 
</div>
<div> </div>
<div>At topic:<br>But you can directly alter passwords in the db opencms uses(CMS_USER)</div>
<div>At this point, i think it#s not very save, that the db connection stuff is written readable in the opencms.properties file</div>
<div> </div>
<div>Does anybody know a solution?<br> </div>
<div>Thanks for listening<br>Andy</div></span></div></div><br><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br><br></blockquote></div>
<br>