diff -up smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-users.patch5 smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-users --- smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-users.patch5 2013-06-25 11:46:20.000000000 -0400 +++ smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-users 2013-06-25 11:50:39.000000000 -0400 @@ -119,9 +119,11 @@ if ($Add) { } } if ($Kaa) { - + print "creating SME default pseudonyms\a\n"; - system("/usr/sbin/lat-pseudonyms -a -c='$username|".$user{"FirstName"}.".".$user{"LastName"}."|".$user{"FirstName"}."_".$user{"LastName"}."'"); + $user{"FirstName"} = lc($user{"FirstName"}) ; + $user{"LastName"} = lc($user{"LastName"}); + system("/usr/sbin/lat-pseudonyms -a -c='$username|".$user{"FirstName"}.".".$user{"LastName"}."|".$user{"FirstName"}."_".$user{"LastName"}."'"); } } @@ -363,6 +365,10 @@ See F for an Generate random passwords for the users and write them to F<./passwords.new>. If a password was supplied, this option will be ignored. +=item B<-n>, B<--nickname> + +Generate standard pseudonyms for the user: firstname_lastname and firstname.lastname. + =back =head2 Arguments: @@ -415,6 +421,11 @@ B + +Creates user 'ron' and assigns him to groups quiddich and dada. If any of these groups doesn't exist, it will be created. +Also create pseudonyms ron_weasley and ron.weasley associated with user ron if available, else produces an alert. + =head1 SEE ALSO lat-group(8), lat-pseudonyms(8), lat-ibays(8), lat-quota(8), lat-domains(8), lat-hosts(8), lat-procmail(8), lat-pptp(8), lat-dump(8)