-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 6.0-HF36
-
Component/s: User Registration
It is legitimate to create a user with no password (null), in the LDAP. The problem is that it raises an NPE.
For example, when you have activated the automatic password hashing (https://doc.nuxeo.com/nxdoc/data-lists-and-directories/,
<passwordHashAlgorithm>SSHA</passwordHashAlgorithm>):
org.nuxeo.ecm.directory.DirectoryException: createEntry failed null
at org.nuxeo.ecm.directory.ldap.LDAPSession.handleException(LDAPSession.java:510)
at org.nuxeo.ecm.directory.ldap.LDAPSession.createEntry(LDAPSession.java:247)
at org.nuxeo.ecm.directory.ldap.LDAPSession.createEntry(LDAPSession.java:1197)
at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.createUser(UserManagerImpl.java:1455)
at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.createUser(UserManagerImpl.java:913)
Caused by: java.lang.NullPointerException at org.nuxeo.ecm.directory.PasswordHelper.digestWithSalt(PasswordHelper.java:141) at org.nuxeo.ecm.directory.PasswordHelper.hashPassword(PasswordHelper.java:92) at org.nuxeo.ecm.directory.ldap.LDAPSession.createEntry(LDAPSession.java:188) ... 118 more