留言板
LDAP import user error
We have tried many time on 7.0 DXP release integrate LDAP, for testing every time it looks good to connect LDAP server. We checked "import enabled on startup". So during restart tomcat, we encountered below error messages :
21:06:06,394 ERROR [liferay/scheduled_user_ldap_import-1][LDAPUserImporterImpl:796] Unable to import user cn=panfly: null:null:{cn=cn: panfly}
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:4728)
at sun.reflect.GeneratedMethodAccessor1087.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.$Proxy75.updatePassword(Unknown Source)
at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.updateUserPassword(LDAPUserImporterImpl.java:1568)
21:06:06,394 ERROR [liferay/scheduled_user_ldap_import-1][LDAPUserImporterImpl:796] Unable to import user cn=panfly: null:null:{cn=cn: panfly}
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:4728)
at sun.reflect.GeneratedMethodAccessor1087.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.$Proxy75.updatePassword(Unknown Source)
at com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl.updateUserPassword(LDAPUserImporterImpl.java:1568)
LDAP configuration is from the control panel in browser. Checked in Directory, userpassword does exist. Can anyone provide assists?
This happens when you have service accounts in LDAP that do not have passwords attached. you typically just need to define your import filter to exclude such accounts from being imported.
Come meet me at the LSNA!
Come meet me at the LSNA!
service accounts in LDAP that do have passwords attached, I can use several testing account in the LDAP directory, I still can login to DXP through default 8080 login page . We can see LDAP user in Portal configuration panel, please see my attached doc of screen shots
The major issue is when integrate with Oracle Access Manager(OAM) 11gR2, we have achieved The Portal login page is protected by OAM. But my directory user once login in, it redirect to Portal default login page again instead of he can access directly into portal.
But this message when starting DXP is wired. We are not sure if message of like below is causing SSO not working or bug
=====================================================
21:06:06,394 ERROR [liferay/scheduled_user_ldap_import-1][LDAPUserImporterImpl:796] Unable to import user cn=panfly: null:null:{cn=cn: panfly}
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:4728)
at sun.reflect.GeneratedMethodAccessor1087.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.$Proxy75.updatePassword(Unknown Source)
Thanks very much!
The major issue is when integrate with Oracle Access Manager(OAM) 11gR2, we have achieved The Portal login page is protected by OAM. But my directory user once login in, it redirect to Portal default login page again instead of he can access directly into portal.
But this message when starting DXP is wired. We are not sure if message of like below is causing SSO not working or bug
=====================================================
21:06:06,394 ERROR [liferay/scheduled_user_ldap_import-1][LDAPUserImporterImpl:796] Unable to import user cn=panfly: null:null:{cn=cn: panfly}
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:4728)
at sun.reflect.GeneratedMethodAccessor1087.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.$Proxy75.updatePassword(Unknown Source)
Thanks very much!