RE: Liferay Ntlm Filter override

Lorenzo Leonori, modified 6 Years ago. Junior Member Posts: 31 Join Date: 10/29/18 Recent Posts

Hello to everyone I need an help.

I want redirect users to their homepage, after NTLM recognized them.

 

1- The conection between Liferay + LDAP + NTLM works.

2- Now I need to modify NtlmFilter.java to redirect user in their homepage.

3- To do this, I want override LPKG, Liferay CE Foundation - Liferay CE Security SSO - Impl,  in particular com.liferay.portal.security.sso.ntlm.internal.servlet.filter;

4- For override the LPKG, I'm following thi guide: https://dev.liferay.com/fi/develop/tutorials/-/knowledge_base/7-1/overriding-lpkg-files

5- In the attachment there is my project organization. It's correct or something is missing because liferay dosen't start

 

Is the correct method to do this? O there are other method to redirect users to their homepage, after NTLM recognized them, whitout overraide LPKG module?

thumbnail
Muradali Hasan, modified 6 Years ago. Junior Member Posts: 84 Join Date: 7/27/10 Recent Posts

Hi Lorenzo,

 

There is liferay feature called login pre and post action you can use.

I am not sure it will help with Ntml filters.

Give it a try with login post action event. you will find video tutorial on youtube.

 

Cheers

Murad

Lorenzo Leonori, modified 6 Years ago. Junior Member Posts: 31 Join Date: 10/29/18 Recent Posts

Thanks for reply! 

Anyone know other information?

I must work with NTLM.

Pre login and post login action should be helpful, but how use that action whit NTLM?

Riccardo Saponi, modified 6 Years ago. New Member Posts: 15 Join Date: 11/18/15 Recent Posts
Ciao Lorenzo,
io sto cercando di fare una cosa simile con il Cas Filter della portlet security.
Sei riuscito a fare l'override dell'lkpg o hai trovato un metodo alternativo?
Lorenzo Leonori, modified 6 Years ago. Junior Member Posts: 31 Join Date: 10/29/18 Recent Posts
Prova questo procedimento, metti nella cartella overide solamente il Jar contenente il CAS filter, ravvia il server e prova. 
Un’altra prova è quella di premere il pulsante login e vedere se viene effettuato l’auto login nel portale di liferay. Io sto cercando di entrare nel portale senza premere il tasto sing in ma non trovo il mondo. 
thumbnail
Krzysztof Gołębiowski, modified 5 Years ago. Liferay Master Posts: 549 Join Date: 6/25/11 Recent Posts
It's an old post, but maybe it'll help someone who comes here in the future.  I created a blog about how to override a CASFilter https://liferay.dev/blogs/-/blogs/overriding-casfilter-in-liferay-7-3-to-support-multiple-domains and the same should apply to NTLMFilter.