Exception when a user create an account in the file authentication mechanism
Andrei report this issue on Metacat trunk:
On 4/28/15 12:05 PM, Andrei Buium wrote:
I'm still running into problems with the password file. Maybe you can clear up what I need to do.
I editted the password.xml file manually, but got stuck on the password hash part.
I did some googling on bcrypt (without finding any clear directions on how to just simply hash a password, as opposed to encrypting a file).
Any advice on the above? Or... is it possible to leave the user without a password?
I saw this is a command that specifies no password:
./authFileManager.sh useradd -i -dn <user-distinguish-name>
Unfortunately, running the following:
/var/lib/tomcat7/webapps/metacat/WEB-INF/scripts/bash# ./authFileManager.sh useradd -i -dn "uid=andreib,o=epscor,dc=unm,dc=edu"
Gave me an exception:
This script should be run at the directory of /tomcat-webapps/your-context/WEB-INF/WEB-INF/scripts/bash/.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger