掲示板

Problemas con LDAP

11年前 に Roberto S によって更新されました。

Problemas con LDAP

Junior Member 投稿: 45 参加年月日: 12/03/07 最新の投稿
Buenas tardes,
Estoy intentando configurar LDAP en Liferay, y tengo un problemilla que espero podamos resolver entre todos.
Tengo el LDAP configurado correctamente. Tengo dos grupos “groups y users” Lo que quiero es exportar los usuarios de Liferay a LDAP, esto lo hace bien pero lo que no me importa es la contraseña, y si en la configuración de Liferay marco la casilla de LDAP required, los usuarios que no sean bruno (actualmente solo tengo los usuarios de prueba que trae LIferay por defecto) no se pueden autenticar en Liferay. Desmarcando esta casilla si que se pueden autenticar. Por último sí tengo habilitado el LDAP en Liferay, no me permite crear nuevos usuarios, me dice después de crear la cuenta que: “Sign In is temporarily unavailable.”
¿Cuál puede ser el fallo?
Muchas gracias.
Un saludo,

P.D: adjunto imágenes de la configuración
11年前 に Roberto S によって更新されました。

RE: Problemas con LDAP

Junior Member 投稿: 45 参加年月日: 12/03/07 最新の投稿
ya he soluionado uno de los problemas, los usuarios que existen ya se pueden autenticar en la plataforma. Pero lo que no he podido solucionar es crear nuevos usuarios en Liferay, me sigue dando el mismo error.

¿Alguna idea??

Muchas gracias.
thumbnail
11年前 に Juan Gonzalez P によって更新されました。

RE: Problemas con LDAP

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Log de errores?
11年前 に Roberto S によって更新されました。

RE: Problemas con LDAP

Junior Member 投稿: 45 参加年月日: 12/03/07 最新の投稿
En logs supongo que te refieres al Catalina.log
En este archivo no aparace nada sobre el error, el tema esta en que en el LDAP puedo crear usuarios sin problemas y los importa a Liferay, pero en Liferay no puedo crear usuarios.
thumbnail
11年前 に Juan Gonzalez P によって更新されました。

RE: Problemas con LDAP

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Si te da un error el portlet de Login, algun error deberá aparecer.
11年前 に Roberto S によって更新されました。

RE: Problemas con LDAP

Junior Member 投稿: 45 参加年月日: 12/03/07 最新の投稿
Tienes razón, algún error debe dar pero no lo encuentro.
¿En que archivo debo mirar para ver los errores que lanza?

Muchas gracias,
Un saludo.
thumbnail
11年前 に Juan Gonzalez P によって更新されました。

RE: Problemas con LDAP

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Depende del servidor. En el caso de Tomcat deberia estar en <TOMCAT_HOME>/logs/catalina.out
11年前 に Roberto S によって更新されました。

RE: Problemas con LDAP

Junior Member 投稿: 45 参加年月日: 12/03/07 最新の投稿
Ya he encontrado el Log, te adjunto el error por si me puedes ayudar:

15:38:35,872 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&p_p_col_id=colu
mn-2&p_p_col_pos=4&p_p_col_count=5&saveLastPath=0&_58_struts_action=%2Flogin%2Fc
reate_account generates exception: null
15:38:35,874 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&p_p_col_id=colu
mn-2&p_p_col_pos=4&p_p_col_count=5&saveLastPath=0&_58_struts_action=%2Flogin%2Fc
reate_account generates exception: null
15:38:35,881 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&p_p_col_id=colu
mn-2&p_p_col_pos=4&p_p_col_count=5&saveLastPath=0&_58_struts_action=%2Flogin%2Fc
reate_account generates exception: null
15:38:35,882 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&p_p_col_id=colu
mn-2&p_p_col_pos=4&p_p_col_count=5&saveLastPath=0&_58_struts_action=%2Flogin%2Fc
reate_account generates exception: null
15:38:36,092 INFO [CaptchaImpl:127] Initializing com.liferay.portal.captcha.sim
plecaptcha.SimpleCaptchaImpl
15:38:36,370 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=exclusive&p_p_mode=view&_58_struts_acti
on=%2Flogin%2Fcaptcha generates exception: null
15:38:36,372 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=exclusive&p_p_mode=view&_58_struts_acti
on=%2Flogin%2Fcaptcha generates exception: null
15:38:36,376 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=exclusive&p_p_mode=view&_58_struts_acti
on=%2Flogin%2Fcaptcha generates exception: null
15:38:36,378 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=exclusive&p_p_mode=view&_58_struts_acti
on=%2Flogin%2Fcaptcha generates exception: null
15:39:15,900 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&saveLastPath=0&
_58_struts_action=%2Flogin%2Fcreate_account generates exception: null
15:39:15,903 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&saveLastPath=0&
_58_struts_action=%2Flogin%2Fcreate_account generates exception: null
15:39:15,909 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&saveLastPath=0&
_58_struts_action=%2Flogin%2Fcreate_account generates exception: null
15:39:15,911 ERROR [AutoLoginFilter:246] Current URL /web/guest/home?p_auth=IR45
w7EL&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&saveLastPath=0&
_58_struts_action=%2Flogin%2Fcreate_account generates exception: null
15:39:16,039 ERROR [jsp:154] java.lang.NullPointerException
at com.liferay.portal.security.pwd.PasswordPolicyToolkit.generateDynamic
(PasswordPolicyToolkit.java:162)
at com.liferay.portal.security.pwd.PasswordPolicyToolkit.generate(Passwo
rdPolicyToolkit.java:75)
at com.liferay.portal.security.pwd.PwdToolkitUtil._generate(PwdToolkitUt
il.java:56)
at com.liferay.portal.security.pwd.PwdToolkitUtil.generate(PwdToolkitUti
l.java:32)
at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLoca
lServiceImpl.java:354)
at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionIntercept
or.invoke(DynamicDataSourceTransactionInterceptor.java:44)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.service.impl.UserServiceImpl.addUser(UserServiceIm
pl.java:193)
at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionIntercept
or.invoke(DynamicDataSourceTransactionInterceptor.java:44)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.service.UserServiceUtil.addUser(UserServiceUtil.ja
va:88)
at com.liferay.portlet.login.action.CreateAccountAction.addUser(CreateAc
countAction.java:243)
at com.liferay.portlet.login.action.CreateAccountAction.processAction(Cr
eateAccountAction.java:98)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequ
estProcessor.java:169)
at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:18
6)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
11年前 に Roberto S によって更新されました。

RE: Problemas con LDAP

Junior Member 投稿: 45 参加年月日: 12/03/07 最新の投稿
He cambiado un par de cosas, todavía no puedo crear usuarios pero ahora el error ha cambiado, ahora es este:

15:53:19,841 ERROR [jsp:154] java.lang.NullPointerException
at com.liferay.portal.security.pwd.PasswordPolicyToolkit.generateDynamic
(PasswordPolicyToolkit.java:162)
at com.liferay.portal.security.pwd.PasswordPolicyToolkit.generate(Passwo
rdPolicyToolkit.java:75)
at com.liferay.portal.security.pwd.PwdToolkitUtil._generate(PwdToolkitUt
il.java:56)
at com.liferay.portal.security.pwd.PwdToolkitUtil.generate(PwdToolkitUti
l.java:32)
at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLoca
lServiceImpl.java:354)
at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionIntercept
or.invoke(DynamicDataSourceTransactionInterceptor.java:44)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.service.impl.UserServiceImpl.addUser(UserServiceIm
pl.java:193)
at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionIntercept
or.invoke(DynamicDataSourceTransactionInterceptor.java:44)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableM
ethodAdvice.java:58)
at com.liferay.portal.service.UserServiceUtil.addUser(UserServiceUtil.ja
va:88)
at com.liferay.portlet.login.action.CreateAccountAction.addUser(CreateAc
countAction.java:243)
at com.liferay.portlet.login.action.CreateAccountAction.processAction(Cr
eateAccountAction.java:98)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequ
estProcessor.java:169)
at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:18
6)
at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
thumbnail
11年前 に Juan Gonzalez P によって更新されました。

RE: Problemas con LDAP

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Quita el "Use LDAP password policy" y pruebalo.
thumbnail
11年前 に Juan Gonzalez P によって更新されました。

RE: Problemas con LDAP

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Ahh una vez confirmado que eso te lo soluciona, vuelvelo a activar y pon estas propiedades en el portal-ext.properties:

ldap.auth.password.encryption.algorithm.types=MD5,SHA
passwords.encryption.algorithm=MD5
11年前 に Roberto S によって更新されました。

RE: Problemas con LDAP

Junior Member 投稿: 45 参加年月日: 12/03/07 最新の投稿
Muchas Gracias,
Por fin puedo crear usuarios desde Liferay, pero tengo que tener desactivada la opción "Use LDAP Password Policy ", porque de lo contrario no funciona. Pero bueno ya esta solucionado, ahora me he puesto a configurar el CAS, pero este es otro tema. En caso de que me de algún error lo pondre por aqui para ver si puedo solucionarlo.

Un saludo y gracias.
thumbnail
11年前 に Juan Gonzalez P によって更新されました。

RE: Problemas con LDAP

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Marca mi respuesta como la correcta, así este thread aparece como resuelto, y otros podrán ver rápidamente cómo se solucionó.

Gracias.
11年前 に Roberto S によって更新されました。

RE: Problemas con LDAP

Junior Member 投稿: 45 参加年月日: 12/03/07 最新の投稿
Perdona, pero como marco tu respuesta como la correcta??????