Fórum

[SOLVED] lock LDAP conf by GUI

Gaëtan Dumont, modificado 9 Anos atrás.

[SOLVED] lock LDAP conf by GUI

New Member Postagens: 19 Data de Entrada: 07/08/13 Postagens Recentes
Hi,

I'm trying to use a clean Liferay configuration this time and I read a lot about LDAP configuration and in a lot of comments I see it's better to lock the GUI and only use the portal-ext-.properties and a custom hook to log people and update there informations from LDAP.

But I never see examples or things like that to help me understand what I have to do. Do you have some ? Or a way to create it ?

For informations I'm using liferay 6.1.2 GA3 and I have 3 AD to configure (if it was simple it'll not be fun).

Thanks for your help.
thumbnail
Ravi Kumar Gupta, modificado 9 Anos atrás.

RE: lock LDAP conf by GUI

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Reason to not use GUI for ldap may be because once you change anything in gui, portal-ext.properties won't work anymore.

Well.. what you need is a jsp hook. In the jsp hook, add the jsps responsible for loading ldap ui and modify them, add your messages saying.. "Please modify ldap properties using portal-ext.properties only"

The jsps you want to look for are present in webapps\ROOT\html\portlet\portal_settings

-Ravi
Gaëtan Dumont, modificado 9 Anos atrás.

RE: lock LDAP conf by GUI

New Member Postagens: 19 Data de Entrada: 07/08/13 Postagens Recentes
Hi, thanks for your answer.

If I create a hook it'll be enought ? To change that I usually create an ext...
thumbnail
Ravi Kumar Gupta, modificado 9 Anos atrás.

RE: lock LDAP conf by GUI

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
hook is enough.. since you don't need to modify at code level.. you just need to hide something in UI.
Gaëtan Dumont, modificado 9 Anos atrás.

RE: lock LDAP conf by GUI

New Member Postagens: 19 Data de Entrada: 07/08/13 Postagens Recentes
Ok but... How can I do that kind of hook ? Sorry for my question I'm not confortable yet with Liferay emoticon
thumbnail
Ravi Kumar Gupta, modificado 9 Anos atrás.

RE: lock LDAP conf by GUI (Resposta)

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
See these links..
https://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/overriding-a-jsp
https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/hoo-4

You can also download and see the apps from marketplace for hook.. These apps will get you a good idea..
https://www.liferay.com/marketplace/-/mp/application/45794034
Gaëtan Dumont, modificado 9 Anos atrás.

RE: lock LDAP conf by GUI

New Member Postagens: 19 Data de Entrada: 07/08/13 Postagens Recentes
Thanks I'll take a look emoticon
thumbnail
David H Nebinger, modificado 9 Anos atrás.

RE: lock LDAP conf by GUI

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Ravi Kumar Gupta:
Reason to not use GUI for ldap may be because once you change anything in gui, portal-ext.properties won't work anymore.


And the corollary here, if you mess something up w/ the ldap config in the gui, you won't be able to log in afterwards and you need database access and some liferay know-how to purge it back out...