Fórum
Ldap Import password issue
Reetika Vyas, modificado 11 Anos atrás.
Ldap Import password issue
New Member Postagens: 3 Data de Entrada: 26/10/12 Postagens Recentes
Hi
We are using LDAP to authenticate user . I have searched through thread about the bug, but still couldnt import user password from AD .Normal liferay users are able to login but ldap coudnt. Below are the logs and portal ext file and I am using control panel of liferay for setting ldap . Please help
File :
#Ldap property configuration
ldap.auth.enabled=true
ldap.auth.required=true
ldap.base.provider.url.0=ldaps://172.17.4.207:50001
ldap.base.dn.0=OU=InterAuth,DC=theconnorgroup,DC=COM
ldap.security.principal.0=CN=HKG2-sys7,OU=Site Roles,OU=HKG2,OU=CONNOR,OU=InterAuth,DC=theconnorgoup,DC=COM
ldap.security.credentials.0=Let'sBind!
ldap.user.ignore.attributes=gender,contact.male,aimSn,comments,facebookId,facebookSn,greeting,icqSn,jabberSn,languageId,msnSn,mySpaceSn,openId,prefixId,reminderQueryAnswer,reminderQueryQuestion,skypeSn,smsSn,suffixId,timeZoneId,twitterSn,ymSn
#ldap.user.ignore.attributes=contact.male
ldap.import.user.password.enabled=true
ldap.import.user.password.autogenerated=false
ldap.import.user.password.default=test
ldap.import.enabled=true
ldap.import.on.startup=true
ldap.import.interval=5
...................................................................................................................................................................
13:23:20,640 ERROR [LDAPAuth:164] Failed to bind to the LDAP server [LDAP: error code 49 - 8009030C: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1]
13:23:20,894 ERROR [LDAPAuth:321] Problem accessing LDAP server
java.lang.NullPointerException
at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:33)
at com.liferay.portal.kernel.util.PropertiesUtil.load(PropertiesUtil.java:199)
at com.liferay.portal.kernel.util.PropertiesUtil.load(PropertiesUtil.java:192)
at com.liferay.portal.security.ldap.LDAPSettingsUtil.getUserMappings(LDAPSettingsUtil.java:138)
at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:235)
at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:378)
at com.liferay.portal.security.auth.LDAPAuth.authenticateByScreenName(LDAPAuth.java:90)
at com.liferay.portal.security.auth.AuthPipeline._authenticate(AuthPipeline.java:228)
at com.liferay.portal.security.auth.AuthPipeline.authenticateByScreenName(AuthPipeline.java:49)
at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticate(UserLocalServiceImpl.java:4893)
at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticateByScreenName(UserLocalServiceImpl.java:888)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
at $Proxy96.authenticateByScreenName(Unknown Source)
at com.liferay.portal.service.UserLocalServiceUtil.authenticateByScreenName(UserLocalServiceUtil.java:607)
at com.liferay.portlet.login.util.LoginUtil.getAuthenticatedUserId(LoginUtil.java:160)
at com.liferay.portlet.login.util.LoginUtil.login(LoginUtil.java:243)
at com.liferay.portlet.login.action.LoginAction.login(LoginAction.java:189)
at com.liferay.portlet.login.action.LoginAction.processAction(LoginAction.java:88)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:175)
at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:190)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:651)
at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:686)
at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:361)
at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:845)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:633)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:244)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
We are using LDAP to authenticate user . I have searched through thread about the bug, but still couldnt import user password from AD .Normal liferay users are able to login but ldap coudnt. Below are the logs and portal ext file and I am using control panel of liferay for setting ldap . Please help
File :
#Ldap property configuration
ldap.auth.enabled=true
ldap.auth.required=true
ldap.base.provider.url.0=ldaps://172.17.4.207:50001
ldap.base.dn.0=OU=InterAuth,DC=theconnorgroup,DC=COM
ldap.security.principal.0=CN=HKG2-sys7,OU=Site Roles,OU=HKG2,OU=CONNOR,OU=InterAuth,DC=theconnorgoup,DC=COM
ldap.security.credentials.0=Let'sBind!
ldap.user.ignore.attributes=gender,contact.male,aimSn,comments,facebookId,facebookSn,greeting,icqSn,jabberSn,languageId,msnSn,mySpaceSn,openId,prefixId,reminderQueryAnswer,reminderQueryQuestion,skypeSn,smsSn,suffixId,timeZoneId,twitterSn,ymSn
#ldap.user.ignore.attributes=contact.male
ldap.import.user.password.enabled=true
ldap.import.user.password.autogenerated=false
ldap.import.user.password.default=test
ldap.import.enabled=true
ldap.import.on.startup=true
ldap.import.interval=5
...................................................................................................................................................................
13:23:20,640 ERROR [LDAPAuth:164] Failed to bind to the LDAP server [LDAP: error code 49 - 8009030C: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1]
13:23:20,894 ERROR [LDAPAuth:321] Problem accessing LDAP server
java.lang.NullPointerException
at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:33)
at com.liferay.portal.kernel.util.PropertiesUtil.load(PropertiesUtil.java:199)
at com.liferay.portal.kernel.util.PropertiesUtil.load(PropertiesUtil.java:192)
at com.liferay.portal.security.ldap.LDAPSettingsUtil.getUserMappings(LDAPSettingsUtil.java:138)
at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:235)
at com.liferay.portal.security.auth.LDAPAuth.authenticate(LDAPAuth.java:378)
at com.liferay.portal.security.auth.LDAPAuth.authenticateByScreenName(LDAPAuth.java:90)
at com.liferay.portal.security.auth.AuthPipeline._authenticate(AuthPipeline.java:228)
at com.liferay.portal.security.auth.AuthPipeline.authenticateByScreenName(AuthPipeline.java:49)
at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticate(UserLocalServiceImpl.java:4893)
at com.liferay.portal.service.impl.UserLocalServiceImpl.authenticateByScreenName(UserLocalServiceImpl.java:888)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
at $Proxy96.authenticateByScreenName(Unknown Source)
at com.liferay.portal.service.UserLocalServiceUtil.authenticateByScreenName(UserLocalServiceUtil.java:607)
at com.liferay.portlet.login.util.LoginUtil.getAuthenticatedUserId(LoginUtil.java:160)
at com.liferay.portlet.login.util.LoginUtil.login(LoginUtil.java:243)
at com.liferay.portlet.login.action.LoginAction.login(LoginAction.java:189)
at com.liferay.portlet.login.action.LoginAction.processAction(LoginAction.java:88)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:175)
at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:190)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:651)
at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:686)
at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:361)
at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:845)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:633)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:244)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
Anexos:
Nikhil Nishchal, modificado 11 Anos atrás.
RE: Ldap Import password issue
Regular Member Postagens: 176 Data de Entrada: 22/06/12 Postagens Recentes
Have you enabled to import LDAP user to liferay.
If so Please check once while restarting liferay.
If so Please check once while restarting liferay.
Reetika Vyas, modificado 11 Anos atrás.
RE: Ldap Import password issue
New Member Postagens: 3 Data de Entrada: 26/10/12 Postagens Recentes
Yes I tried but it shows error , even I can successfully test ldap conn and list users but when i tried login using other user then liferay , it shows ldap bind error