Foren

'Unable to encrypt blank password' error on scheduled import from LDAP

Artem Ch, geändert vor 6 Jahren.

'Unable to encrypt blank password' error on scheduled import from LDAP

New Member Beiträge: 2 Beitrittsdatum: 26.04.17 Neueste Beiträge
Добрый день!
Подскажите в чём может быть причина.
При загрузке пользователей из Active Directory по LDAP, в логе tomcat-8.0.32/logs/catalina.out по каждому пользователю появляется следующая ошибка:
07:31:46,475 ERROR [liferay/scheduled_user_ldap_import-1][LDAPUserImporterImpl:796] Unable to import user CN=Ivan I. Ivanov,CN=Users: null:null:
{samaccountname=sAMAccountName: IvanovII} 
com.liferay.portal.kernel.exception.PwdEncryptorException: Unable to encrypt blank password
 at com.liferay.portal.security.pwd.BasePasswordEncryptor.encrypt(BasePasswordEncryptor.java:46)
 at com.liferay.portal.security.pwd.BasePasswordEncryptor.encrypt(BasePasswordEncryptor.java:34)
 at com.liferay.portal.kernel.security.pwd.PasswordEncryptorUtil.encrypt(PasswordEncryptorUtil.java:74)
 at com.liferay.portal.kernel.security.pwd.PasswordEncryptorUtil.encrypt(PasswordEncryptorUtil.java:60)
 at com.liferay.portal.service.impl.UserLocalServiceImpl.updatePassword(UserLocalServiceImpl.java:4715)
 at sun.reflect.GeneratedMethodAccessor917.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
 at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
 at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
 at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
 at com.sun.proxy.$Proxy70.updatePassword(Unknown Source)
 at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.updateUserPassword(LDAPUserImporterImpl.java:1568)
 at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.updateUser(LDAPUserImporterImpl.java:1443)
 at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.importUser(LDAPUserImporterImpl.java:1032)
 at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.importFromLDAPByUser(LDAPUserImporterImpl.java:785)
 at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.importUsers(LDAPUserImporterImpl.java:456)
 at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.importUsers(LDAPUserImporterImpl.java:395)
 at com.liferay.portal.security.ldap.internal.messaging.UserImportMessageListener.doReceive(UserImportMessageListener.java:89)
 at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
 at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:65)
 at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
 at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
 at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
 at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
 at java.lang.Thread.run(Thread.java:745)

Пароли всем пользователям заданы.
Портал функционирует.
Результат нажатия "Test LDAP users" в настройках портала - во вложении.

ОС SLES 11 SP3
Портал "Starting Liferay Community Edition Portal 7.0.2 GA3 (Wilberforce / Build 7002 / August 5, 2016)"
ПО: tomcat-8.0.32
БД: Postgresql Server 9.6