Article
Problem
A Forum reader recently asked:
"I am trying to create a custom page for our help desk that gives certain information, such as surname, given name, full name, etc. I can get everything into the form but the ability to change the user's password. What do I need to do to allow me to have this choice in the form? I don't want to use the canned "HelpDesk" that is already created in iManager, because we want a form for the help desk to use."
And here's the response from Wolfgang Schreiber ...
Solution
For a quick and dirty solution, take a look at the page:
\nps\portal\modules\base\skins\default\devices\default\pShared_PasswordRestrictions.jsp
Copy the 2 setpassword parts (see below) into your page.
Note: There may be multiple files with the name pattern "<page ID>_[date]_[time]" - make sure to modify the most recent one. Insert the snippets at the correct location, e.g right after the "</TABLE>" at the end of the file.
Part 1
<script>
<%-- Used to launch the set password task --%>
function setPassword()
{
window.open("frameservice?NPService=fw.LaunchService&NPAction=Launch&launch=fw.SetPassword&launcher=fw.LaunchService&lifecycle=new&targetNames=<%=
c.urlEncode(c.var("eDir$target")) %>", "",
"toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=550,height=400");
}
</script>
Part 2
<a href="javascript:setPassword();"><%= c.string("SetPassword") %></a>
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 3558 reads


0