/[smecontribs]/rpms/smeserver-lazy_admin_tools/contribs8/smeserver-lazy_admin_tools-1.0-patch5.patch
ViewVC logotype

Contents of /rpms/smeserver-lazy_admin_tools/contribs8/smeserver-lazy_admin_tools-1.0-patch5.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Mon Jul 28 19:19:20 2014 UTC (9 years, 10 months ago) by unnilennium
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Mon Jul 28 2014 JP PIALASSE tests@pialasse.com  1.1.-2.sme
- fix user not being deleted [SME: 8500]
- fix shadow activating user with blank password [SME: 7731]
- NFR added pseudonyms with @ [SME: 7706]
- note: lat-restore now do lat-pseudonyms later after lat-domains for pseudonyms with @ verification.

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)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed