Fórum

Cannot log in to liferay after enabling LDAP

Lloyd Owen, modificado 9 Anos atrás.

Cannot log in to liferay after enabling LDAP

New Member Postagens: 13 Data de Entrada: 14/04/15 Postagens Recentes
I'm trying to configure my Liferay Portal to use an LDAP database. The preliminary test connections shows that liferay is successfully reading my ldap database, however I am unable to log in as an ldap user, I cannot even log in as the administrator! Is there a way that I can disable ldap login from the command line?

I'm using the latest Liferay Portal bundled with tomcat.


Thanks
thumbnail
Raja Seth, modificado 9 Anos atrás.

RE: Cannot log in to liferay after enabling LDAP

Regular Member Postagens: 233 Data de Entrada: 18/08/11 Postagens Recentes
Lloyd Owen:
Is there a way that I can disable ldap login from the command line?


I guess LDAP connection you might me know from where you have configured, either through control panel or portal-ext.properties. In both the cases you can disable LDAP connection. In the second case, as you would be changing in portal-ext.properties, server restart would be required.

Regards,
Raja
Lloyd Owen, modificado 9 Anos atrás.

RE: Cannot log in to liferay after enabling LDAP

New Member Postagens: 13 Data de Entrada: 14/04/15 Postagens Recentes
Thanks for the reply,

Ldap configuration is via the control panel.

In both the cases you can disable LDAP connection


How do I disaple ldap if I have configured via the control panel?

Thanks.
thumbnail
Raja Seth, modificado 9 Anos atrás.

RE: Cannot log in to liferay after enabling LDAP

Regular Member Postagens: 233 Data de Entrada: 18/08/11 Postagens Recentes
Simply uncheck the Enabled & Required checkbox and save it.
Lloyd Owen, modificado 9 Anos atrás.

RE: Cannot log in to liferay after enabling LDAP

New Member Postagens: 13 Data de Entrada: 14/04/15 Postagens Recentes
Simply uncheck the Enabled & Required checkbox and save it.


The problem is, is that once I enable ldap, I cannot login! I cannot even login as the administrator to the liferay portal.. emoticon

That is why I want to know if there is a way to disable the ldap settings from the command line, if one has configured ldap from the control panel.

Thanks.
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Cannot log in to liferay after enabling LDAP (Resposta)

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
If you are completely stuck, you might search for the record in portalpreferences table which has ldap.auth.enabled in the preferences

select * from portalpreferences where preferences like '%ldap.auth.enabled%'

update
<preference><name>ldap.auth.enabled</name><value>true</value></preference>
to
<preference><name>ldap.auth.enabled</name><value>false</value></preference>

then restart the portal, and try again...

then once you are back in, don't 'require' ldap while you are testing, so that you might still have a user that is in Liferay but not in LDAP to log into liferay with.
Lloyd Owen, modificado 9 Anos atrás.

RE: Cannot log in to liferay after enabling LDAP

New Member Postagens: 13 Data de Entrada: 14/04/15 Postagens Recentes
Thanks Jack Bakker

That did the trick. emoticon
thumbnail
David H Nebinger, modificado 9 Anos atrás.

RE: Cannot log in to liferay after enabling LDAP

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Whenever you are using LDAP, it is a good idea to have an omniadmin account set up so you can get in when ldap pukes.
thumbnail
Vipin Bardia, modificado 9 Anos atrás.

RE: Cannot log in to liferay after enabling LDAP

Regular Member Postagens: 162 Data de Entrada: 28/02/11 Postagens Recentes
Hi David,

How to setup omniadmin account?
thumbnail
Raja Seth, modificado 9 Anos atrás.

RE: Cannot log in to liferay after enabling LDAP

Regular Member Postagens: 233 Data de Entrada: 18/08/11 Postagens Recentes