cancel
Showing results for 
Search instead for 
Did you mean: 

AuthenticationComponentImpl and MD4

andrepra
Champ in-the-making
Champ in-the-making
I've implemented my own AuthenticationComponentImpl to manage the authentication as described in wiki. Works fine since I use web access.
During application start I got an error regarding CIFS server authentication setup.
Looking in the code I've seen that I need a NTLM support for the password.
So, I've implemented the method getNTLMMode() in this manner

public NTLMMode getNTLMMode() {
   return NTLMMode.MD4_PROVIDER;
}
And the method getMD4HashedPassword() to return always the same password (just for test). This is the implememtation

PasswordEncoder passwordEncoder = new MD4PasswordEncoderImpl();
String pwd = passwordEncoder.encodePassword(new String("admin"), null);
return pwd;

Now, I don't have any error at the start up. I thought that this implementation let me login to CIFS server with any user always with the same password ("admin"). But doesn't work.

Could you explain me if I miss something?

Andrea
1 REPLY 1

andrepra
Champ in-the-making
Champ in-the-making
After other test i've seen that the implememation described works. I need it because i'm connecting to a database user store.