1 |
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 |
2 |
--- smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-users.patch5 2013-06-25 11:46:20.000000000 -0400 |
3 |
+++ smeserver-lazy_admin_tools-1.0/root/usr/sbin/lat-users 2013-06-25 11:50:39.000000000 -0400 |
4 |
@@ -119,9 +119,11 @@ if ($Add) { |
5 |
} |
6 |
} |
7 |
if ($Kaa) { |
8 |
- |
9 |
+ |
10 |
print "creating SME default pseudonyms\a\n"; |
11 |
- system("/usr/sbin/lat-pseudonyms -a -c='$username|".$user{"FirstName"}.".".$user{"LastName"}."|".$user{"FirstName"}."_".$user{"LastName"}."'"); |
12 |
+ $user{"FirstName"} = lc($user{"FirstName"}) ; |
13 |
+ $user{"LastName"} = lc($user{"LastName"}); |
14 |
+ system("/usr/sbin/lat-pseudonyms -a -c='$username|".$user{"FirstName"}.".".$user{"LastName"}."|".$user{"FirstName"}."_".$user{"LastName"}."'"); |
15 |
|
16 |
} |
17 |
} |
18 |
@@ -363,6 +365,10 @@ See F</usr/doc/lazy-admin-tools> for an |
19 |
|
20 |
Generate random passwords for the users and write them to F<./passwords.new>. If a password was supplied, this option will be ignored. |
21 |
|
22 |
+=item B<-n>, B<--nickname> |
23 |
+ |
24 |
+Generate standard pseudonyms for the user: firstname_lastname and firstname.lastname. |
25 |
+ |
26 |
=back |
27 |
|
28 |
=head2 Arguments: |
29 |
@@ -415,6 +421,11 @@ B<lat-users -a -c "ron | Ron | Weasley | |
30 |
|
31 |
Creates user 'ron' and assigns him to groups quiddich and dada. If any of these groups doesn't exist, it will be created. |
32 |
|
33 |
+B<lat-users -a -n -c "ron | Ron | Weasley |||||||||| quiddich | dada "> |
34 |
+ |
35 |
+Creates user 'ron' and assigns him to groups quiddich and dada. If any of these groups doesn't exist, it will be created. |
36 |
+Also create pseudonyms ron_weasley and ron.weasley associated with user ron if available, else produces an alert. |
37 |
+ |
38 |
=head1 SEE ALSO |
39 |
|
40 |
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) |