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

Title: Password policy change
Post 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
Title: Password policy change
Post by: ssirio on October 23, 2006, 10:59:54 AM
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.
Title: Password policy change
Post by: raem on October 23, 2006, 12:23:26 PM
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
Title: Password policy change
Post by: ssirio on October 23, 2006, 05:58:54 PM
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.
Title: Re: Password policy change
Post by: raem on October 23, 2006, 07:16:59 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.
Title: Re: Password policy change
Post by: ssirio on October 27, 2006, 05:08:45 PM
Simply installed expect and used the example script to change password at the end of the "user-create-unix".

Quote from: "RayMitchell"
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.
Title: Re: Password policy change
Post by: byte on October 27, 2006, 06:52:55 PM
Quote from: "ssirio"
Simply installed expect and used the example script to change password at the end of the "user-create-unix".

Quote from: "RayMitchell"
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?
Title: Re: Password policy change
Post by: CharlieBrady on October 27, 2006, 07:45:50 PM
Quote from: "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.


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?

Quote

- 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?