Novell Home

PWMTips

From Developer Community

PWM is an open source password self service servlet for Novell eDirectory. PWM is an ideal candidate for organizations that wish to “role their own” password self service solution, but do not wish to start from scratch.

PWM is not supported in any way by Novell. Use this program at your own risk.


Notes

This is a collection of sundry technical tips for PWM

Running PWM on OES2/Tomcat 5.5/JDK 1.5

The PWM JSPs will not compile on Tomcat 5.5. The error is "for-each-loops are not supported in -source 1.3 (try source -1.5 to enable for-each-loops)" or "generics are not supported in -source 1.3 (try -source 1.5 to enable generics)"

The fix is to edit /etc/opt/novell/tomcat5/conf/web.xml. Locate the <servlet> entry for the compiler and add two extra init-parm's for compilerSourceVM and compilerTargetVM, then restart Tomcat.

< servlet>
       < servlet-name>jsp< /servlet>
       < servlet-class>org.apache.jasper.servlet.JspServlet< /servlet>
       < init-param>
           < param-name>fork< /param-name>
           < param-value>false< /param-value>
       < /init-param>


       < init-param>
           < param-name>compilerSourceVM< /param-name>
           < param-value>1.5< /param-value>
       < /init-param>
       < init-param>
           < param-name>compilerTargetVM< /param-name>
           < param-value>1.5< /param-value>
       < /init-param>


       < init-param>
           < param-name>xpoweredBy< /param-name>
           < param-value>false< /param-value>
       < /init-param>
       < load-on-startup>3< /load-on-startup>
   < /servlet>

Note that there should be no spaces between the opening less-than sign and the actual tag text. This might bite you if you copy and paste the text above

Inactivity timer close button does not work on FireFox 2.x

This is a security feature in FireFox. Scripts are normally not allowed to close windows, unless they have opened them. Only known workaround at this time is to go into about:config and set "dom.allow_scripts_to_close_windows" to true.

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.