Fórumok

[SOLVED] lock LDAP conf by GUI

Gaëtan Dumont, módosítva 9 év-val korábban

[SOLVED] lock LDAP conf by GUI

New Member Bejegyzések: 19 Csatlakozás dátuma: 2013.08.07. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: lock LDAP conf by GUI

Liferay Legend Bejegyzések: 1302 Csatlakozás dátuma: 2009.06.24. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: lock LDAP conf by GUI

New Member Bejegyzések: 19 Csatlakozás dátuma: 2013.08.07. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: lock LDAP conf by GUI

Liferay Legend Bejegyzések: 1302 Csatlakozás dátuma: 2009.06.24. Legújabb bejegyzések
hook is enough.. since you don't need to modify at code level.. you just need to hide something in UI.
Gaëtan Dumont, módosítva 9 év-val korábban

RE: lock LDAP conf by GUI

New Member Bejegyzések: 19 Csatlakozás dátuma: 2013.08.07. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: lock LDAP conf by GUI (Válasz)

Liferay Legend Bejegyzések: 1302 Csatlakozás dátuma: 2009.06.24. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: lock LDAP conf by GUI

New Member Bejegyzések: 19 Csatlakozás dátuma: 2013.08.07. Legújabb bejegyzések
Thanks I'll take a look emoticon
thumbnail
David H Nebinger, módosítva 9 év-val korábban

RE: lock LDAP conf by GUI

Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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...