user3628388
user3628388

Reputation: 31

Add password policy to Alfresco

Hi i'm new in Alfresco and i want to know if there is a way to add policy password to Users :

Upvotes: 1

Views: 998

Answers (1)

Andreas Steffan
Andreas Steffan

Reputation: 6169

Be warned that this might not be the easiest thing to do for somebody who just started working with alfresco.

First, Alfresco can only enforce a policy if passwords are stored in Alfresco (and you do not authenticate against an external system such as Active Directory).

Edit: Behaviour won't work because password is encoded:

To make sure it is impossible to set a password not compliant with your policy, you should implement a OnUpdatePropertiesPolicy ( http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/node/NodeServicePolicies.OnUpdatePropertiesPolicy.html) on type usr:user verifying the property usr:password and hook in into the system (http://docs.alfresco.com/4.2/concepts/content-behavior.html).

Edit: Password policy needs cleartext password

You need to override passwordGenerator and sha256PasswordEncoder defined in WEB-INF/classes/alfresco/authentication-services-context.xml and user-interface components (in Share) so you don't get people to see ugly exceptions thrown by the encoders.

Upvotes: 2

Related Questions