Fóruns

Início » Liferay Portal » English » 6. Portal Framework

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Reetika Vyas
Ldap Import password issue
25 de Outubro de 2012 22:30
Resposta

Reetika Vyas

Ranking: New Member

Mensagens: 3

Data de entrada: 25 de Outubro de 2012

Mensagens 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)
Anexo

Anexos: Screenshot.png (181,7k)
Nikhil Nishchal
RE: Ldap Import password issue
26 de Outubro de 2012 05:43
Resposta

Nikhil Nishchal

Ranking: Junior Member

Mensagens: 82

Data de entrada: 21 de Junho de 2012

Mensagens recentes

Have you enabled to import LDAP user to liferay.
If so Please check once while restarting liferay.
Reetika Vyas
RE: Ldap Import password issue
1 de Novembro de 2012 04:20
Resposta

Reetika Vyas

Ranking: New Member

Mensagens: 3

Data de entrada: 25 de Outubro de 2012

Mensagens 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