Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: ssirio on October 19, 2006, 10:21:14 AM
-
Hi all,
i need to modify two features of sme:
1. Set a default password on user creation.
2. Create a new password policy (password length > 9 char).
Anyone can help me with information or howto related to sme about this topics???
Thanks
-
Hi,
The first point is solved: now i have a default password set when i add new user.
nobody can help me to find info about a personalized password policy?
Are also appreciated new ideas on how to verify password length.
Thanks in advance.
-
ssirio
This bug will give you some clues as to how it's done in sme7
http://bugs.contribs.org/show_bug.cgi?id=1949
also see
http://bugs.contribs.org/show_bug.cgi?id=161
Look in the log files (eg messages log) to see what is called up at password change time and then read the code
-
Thanks Ray,
I have solved all my problems.
- For the first point i have modified the /etc/e-smith/events/actions/user-create-unix to call an external script to set a default password.
- For the second point i have modified the /usr/lib/perl5/site_perl/CGI/FormMagick/Validator/Network.pm.
-
ssirio
> - For the first point i have modified the /etc/e-smith/events/actions/user-create-unix
> to call an external script to set a default password.
Would you care to share your script changes, that could be useful one day.
-
Simply installed expect and used the example script to change password at the end of the "user-create-unix".
ssirio
> - For the first point i have modified the /etc/e-smith/events/actions/user-create-unix
> to call an external script to set a default password.
Would you care to share your script changes, that could be useful one day.
-
Simply installed expect and used the example script to change password at the end of the "user-create-unix".
ssirio
> - For the first point i have modified the /etc/e-smith/events/actions/user-create-unix
> to call an external script to set a default password.
Would you care to share your script changes, that could be useful one day.
Could you post a copy of the line(s) you added? Thanks in advance if you can?
-
- For the first point i have modified the /etc/e-smith/events/actions/user-create-unix to call an external script to set a default password.
You don't need to do that. You can use a symlink in /etc/e-smith/events/users-create so that your script is called after the unmodified user-create-unix. Have you read the Developers Guide?
- For the second point i have modified the /usr/lib/perl5/site_perl/CGI/FormMagick/Validator/Network.pm.
What has that to do with passwords?