Koozali.org: home of the SME Server

Password policy change

ssirio

Password policy change
« 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

ssirio

Password policy change
« Reply #1 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.

Offline raem

  • *
  • 3,972
  • +4/-0
Password policy change
« Reply #2 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
...

ssirio

Password policy change
« Reply #3 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.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Password policy change
« Reply #4 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.
...

ssirio

Re: Password policy change
« Reply #5 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.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Password policy change
« Reply #6 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?
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Password policy change
« Reply #7 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?