cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication: execute code when user gets authenticated

jpfi
Champ in-the-making
Champ in-the-making
Hi,
We're using Share & Alfresco with NTML authentication. I'm currently searching the best way to achieve the following:
- execute some code (query a LDAP for some additional user props ) when a user gets authenticated in repo

but I'm not sure where to place my custom code to track new session creation in repository layer…
Cheers, Jan
3 REPLIES 3

jayjayecl
Confirmed Champ
Confirmed Champ
Hi Jan,

I think did the exact same thing (NTLM authentication on Windows ARW, and synchronous user synchronization on another LDAP at login event) recently.
Am I right ?
Do you need some of my resources ?

jpfi
Champ in-the-making
Champ in-the-making
Hi,
did you use Share interface or only Alfresco Explorer. I'm asking because I don't understand how the whole authentication stuff between Share & Repo is done.
- user opens Share
- NTMLAuthenticationFilter is triggered and checks given NTLM credentials (some more detailed steps here)
- if ntlm-details are valid then repo-webscript /touch is called, this inits session in repo
right?

JayJay: jub, it would be nice to take a look into your code, perhaps it will be more clear to me what to do when looking into your customization. my mail: jan.pfitzner(at)westernacher.com

many thanks,
jan

jayjayecl
Confirmed Champ
Confirmed Champ
Hi, I don't use Share, but my customization is in NTLMAuthenticationComponentImpl.
This should work.

I'll send you what I have