On Jan 8, 2008 4:23 PM, Booth, Jon G. (CMS/OIS) <[EMAIL PROTECTED]> wrote: > I'm having some password issues. I've found references to the rollerpw > script (see > http://opensource.atlassian.com/projects/roller/browse/ROL-331 for > example), which looks like just what I need, but this script doesn't > seem to be in either the 3.1 or 4.0 distributions. > > A few questions: > - Is there an updated way to reset passwords (from the command line, not > the web UI) that replaced rollerpw? > - If not, will the older rollerpw script work with either 3.1 or 4.0? > - If the answer to that is yes, any pointers on where I can download an > older distrib to get the script?
Sorry about the delayed response. Yes, that utility is still present in Roller. To use it here's what you do: 1) Create a file called rollerdb.properties and put your database connection parameters there, for example: driverClassName=com.mysql.jdbc.Driver connectionUrl=jdbc:mysql://localhost/rollerdb userName=scott password=tiger 2) Call the PasswordUtility like so. This is a UNIX example that assumes you have set ROLLER_HOME and GLASSFISH_HOME to correct values: $ java -classpath $ROLLER_HOME/WEB-INF/lib/roller-business.jar:$GLASSFISH_HOME/lib/mysql-connector-java-5.1.5-bin.jar org.apache.roller.weblogger.util.PasswordUtility The above will cause the utility to print usage information: USAGE: save passwords to a properties file rollerpw -save <file-name> USAGE: turn ON password encryption and encrypt existing passwords rollerpw -encrypt USAGE: turn OFF password encryption and restore saved passwords rollerpw -restore <file-name> USAGE: reset a user password rollerpw -password <username> <new-password> USAGE: grant admin rights to user rollerpw -grant_admin <username> USAGE: revoke admin right from user rollerpw -revoke_admin <username> Hope that helps. - Dave
