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.