cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication problem

dmitrye
Champ in-the-making
Champ in-the-making
Hi!

I wanted to authenticate user with authenticationService.authenticate(userid, password) function. But password is already crypted(as he lays in ldap), and alfresco can take only not crypted password.

Are there any solutions for crypted passwords or some other way?
3 REPLIES 3

andy
Champ on-the-rise
Champ on-the-rise
Hi

Can you describe what you want to do in more detail? I assume the password stored in LDAP is encrypted and the one entered by the user is not. We do not store encrypted passwords from LDAP.

You probably want to configure LDAP authentication.

If you want to validate an already encrypted password against LDAP you will have to write a bit of custom code. All it needs to do is get the encrypted passwrod from LDAP for the user and do the comparison.

Andy

dmitrye
Champ in-the-making
Champ in-the-making
Yes, I want to configure authentication!

Is there an opportunity to authenticate only with userID? It will be the best solution for me!

But I can't find the opportunity to do it.

andy
Champ on-the-rise
Champ on-the-rise
Hi

If you are writing your own authentication filter you can use the authenticationComponent to set the user id (see HTTPRequestAuthenticationFilter). If you are using the public APis there is no way to do what you want, nor should there.

I am still not clear what you are doing. Have you already validated the user's encrypted password? This must be done at some point.

If this does not address your problem then please describe what you are trying to do. What are the bits in the authentication stack - what has been done - and at what stage Alfresco authentication fits in. If not, there is not much else I can suggest.

Please note that I respond to community postings in the forum in order, as I have time. Sending private messages and emails will make no difference to response time and will generally be ignored. If you require more urgent help then please contact support.

Andy