掲示板
[SOLVED] lock LDAP conf by GUI
9年前 に Gaëtan Dumont によって更新されました。
[SOLVED] lock LDAP conf by GUI
New Member 投稿: 19 参加年月日: 13/08/07 最新の投稿
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.
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.
9年前 に Ravi Kumar Gupta によって更新されました。
RE: lock LDAP conf by GUI
Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
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
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
Hi, thanks for your answer.
If I create a hook it'll be enought ? To change that I usually create an ext...
If I create a hook it'll be enought ? To change that I usually create an ext...
9年前 に Ravi Kumar Gupta によって更新されました。
RE: lock LDAP conf by GUI
Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
hook is enough.. since you don't need to modify at code level.. you just need to hide something in UI.
Ok but... How can I do that kind of hook ? Sorry for my question I'm not confortable yet with Liferay
9年前 に Ravi Kumar Gupta によって更新されました。
RE: lock LDAP conf by GUI (回答)
Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
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
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
9年前 に David H Nebinger によって更新されました。
RE: lock LDAP conf by GUI
Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿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...