/[smecontribs]/rpms/smeserver-lazy_admin_tools/contribs7/smeserver-lazy_admin_tools-0.9.1-2-userid_length-pptp_create.patch
ViewVC logotype

Annotation of /rpms/smeserver-lazy_admin_tools/contribs7/smeserver-lazy_admin_tools-0.9.1-2-userid_length-pptp_create.patch

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


Revision 1.1 - (hide annotations) (download)
Sat Mar 6 16:26:47 2010 UTC (14 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-lazy_admin_tools-0_9_1-2, smeserver-lazy_admin_tools-0_9_1-4_el4_sme, smeserver-lazy_admin_tools-0_9_1-2_el4_sme, HEAD
Initial import

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-groups mezzanine_patched_smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-groups
2     --- smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-groups 2006-02-09 22:19:23.000000000 -0600
3     +++ mezzanine_patched_smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-groups 2006-10-21 23:44:29.000000000 -0500
4     @@ -292,7 +292,7 @@
5    
6     =head1 DESCRIPTION
7    
8     -Creates or deletes groups on Mitel's SME servers (5.x/6.x).
9     +Creates or deletes groups on Mitel's or SME Servers (5.x/6.x/7.x).
10     This tool is functionally equivalent to the 'groups' option in the server-manager, but can be run from the command line or called from an other script.
11     It allows you, for example, to add a large number of accounts to a group, or delete groups on a remote machine via an ssh console.
12    
13     diff -Nur -x '*.orig' -x '*.rej' smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-pptp mezzanine_patched_smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-pptp
14     --- smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-pptp 2006-02-09 22:19:24.000000000 -0600
15     +++ mezzanine_patched_smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-pptp 2006-10-21 23:53:23.000000000 -0500
16     @@ -78,6 +78,12 @@
17     or die ("An error occurred while updating account '$username'.\n");
18     last SWITCH;
19     };
20     + ($MVer=="7") && do {
21     + db_set_prop(\%accounts, $username, 'VPNClientAccess', "no");
22     + system("/sbin/e-smith/signal-event", "remoteaccess-update", $username) == 0
23     + or die ("An error occurred while updating account '$username'.\n");
24     + last SWITCH;
25     + };
26     }
27     }
28     # Activate PPTP
29     @@ -96,6 +102,12 @@
30     or die ("An error occurred while updating account '$username'.\n");
31     last SWITCH;
32     };
33     + ($MVer=="7") && do {
34     + db_set_prop(\%accounts, $username, 'VPNClientAccess', "yes");
35     + system("/sbin/e-smith/signal-event", "remoteaccess-update", $username) == 0
36     + or die ("An error occurred while updating account '$username'.\n");
37     + last SWITCH;
38     + };
39     }
40     }
41     else { print "Unknown argument '$fields[1]' for user $username"; }
42     diff -Nur -x '*.orig' -x '*.rej' smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-users mezzanine_patched_smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-users
43     --- smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-users 2006-02-09 22:19:27.000000000 -0600
44     +++ mezzanine_patched_smeserver-lazy_admin_tools-0.9.1/root/usr/sbin/lat-users 2006-10-21 23:41:10.000000000 -0500
45     @@ -212,8 +212,8 @@
46     print "and should start with a lower-case letter.\n\a";
47     return 0;
48     }
49     - if ( length($_[0]) > 12 ) {
50     - print "The name '$_[0]' is too long. The maximum is 12 characters.\n";
51     + if ( length($_[0]) > 31 ) {
52     + print "The name '$_[0]' is too long. The maximum is 31 characters.\n";
53     return 0;
54     }
55     return -1;

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