Hi Pierrick,
The PasswordClass, which describes the Password property that you can
add using the class editor to an XWiki class, has two meta properties
that control how the password is stored:
* password_storageType: store the password in clear or using a hash function
* password_algorithm: the hash function to use
You shouldn't play with this unless you know what you're doing :) Did
you modify the XWiki.XWikiUsers class and set the password_algorithm
meta property to 'custom'? Did you create an XWiki class that has a
Password property which has the password_algorithm meta property to
'custom'?
Hope this helps,
Marius
On Thu, Oct 24, 2013 at 6:58 PM, <pierrick.bena(a)intech.lu> wrote:
Hi everybody,
I'm working with XWiki 3.5.1 deployed on Tomcat 7 and I always have the same
error in Tomcat logs when I try to submit a form :
ERROR c.x.x.o.c.PasswordClass - Wrong hash algorithm [custom] in
[null]
java.security.NoSuchAlgorithmException: custom MessageDigest not available
at sun.security.jca.GetInstance.getInstance(Unknown Source)
~[na:1.7.0_45]
at java.security.Security.getImpl(Unknown Source) ~[na:1.7.0_45]
at java.security.MessageDigest.getInstance(Unknown Source)
~[na:1.7.0_45]
at
com.xpn.xwiki.objects.classes.PasswordClass.getPasswordHash(PasswordClass.java:220)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.objects.classes.PasswordClass.getPasswordHash(PasswordClass.java:213)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.objects.classes.PasswordClass.getProcessedPassword(PasswordClass.java:193)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at
com.xpn.xwiki.objects.classes.PasswordClass.fromString(PasswordClass.java:75)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
at com.xpn.xwiki.objects.BaseObject.set(BaseObject.java:456)
[xwiki-platform-legacy-oldcore-3.5.1.jar:na]
Do you know how I could solve this problem ?
Thanks !
Pierrick
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users