Hi i'm new in Alfresco and i want to know if there is a way to add policy password to Users :
- Password must containt > 8 Char
- Password must containt Lower and Upper Cast
- Password must containt Special Char
Hi i'm new in Alfresco and i want to know if there is a way to add policy password to Users :
Copyright © 2021 Jogjafile Inc.
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 typeusr:user
verifying the propertyusr: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
andsha256PasswordEncoder
defined inWEB-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.