/[smeserver]/rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-ldap_update_several_groups.patch
ViewVC logotype

Annotation of /rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-ldap_update_several_groups.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Sep 27 21:05:57 2010 UTC (14 years, 1 month ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-ldap-5_2_0-49_el5_sme, e-smith-ldap-5_2_0-76_el5_sme, e-smith-ldap-5_2_0-71_el5_sme, e-smith-ldap-5_2_0-77_el5_sme, e-smith-ldap-5_2_0-50_el5_sme, e-smith-ldap-5_2_0-78_el5_sme, e-smith-ldap-5_2_0-61_el5_sme, e-smith-ldap-5_2_0-66_el5_sme, e-smith-ldap-5_2_0-70_el5_sme, e-smith-ldap-5_2_0-79_el5_sme, e-smith-ldap-5_2_0-81_el5_sme, e-smith-ldap-5_2_0-59_el5_sme, e-smith-ldap-5_2_0-45_el5_sme, e-smith-ldap-5_2_0-75_el5_sme, e-smith-ldap-5_2_0-46_el5_sme, e-smith-ldap-5_2_0-56_el5_sme, e-smith-ldap-5_2_0-55_el5_sme, e-smith-ldap-5_2_0-57_el5_sme, e-smith-ldap-5_2_0-73_el5_sme, e-smith-ldap-5_2_0-69_el5_sme, e-smith-ldap-5_2_0-48_el5_sme, e-smith-ldap-5_2_0-44_el5_sme, e-smith-ldap-5_2_0-52_el5_sme, e-smith-ldap-5_2_0-51_el5_sme, e-smith-ldap-5_2_0-72_el5_sme, e-smith-ldap-5_2_0-65_el5_sme, e-smith-ldap-5_2_0-54_el5_sme, e-smith-ldap-5_2_0-53_el5_sme, e-smith-ldap-5_2_0-43_el5_sme, e-smith-ldap-5_2_0-47_el5_sme, e-smith-ldap-5_2_0-80_el5_sme, e-smith-ldap-5_2_0-74_el5_sme, e-smith-ldap-5_2_0-41_el5_sme, e-smith-ldap-5_2_0-63_el5_sme, e-smith-ldap-5_2_0-60_el5_sme, e-smith-ldap-5_2_0-62_el5_sme, e-smith-ldap-5_2_0-42_el5_sme, e-smith-ldap-5_2_0-68_el5_sme, e-smith-ldap-5_2_0-67_el5_sme, e-smith-ldap-5_2_0-64_el5_sme, HEAD
* Mon Sep 27 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-41.sme
- Add ldap-update support for several accounts [SME: 6249]

1 vip-ire 1.1 --- e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update.ldap_update_several_groups 2010-09-27 20:00:44.000000000 +0200
2     +++ e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-update 2010-09-27 21:45:02.000000000 +0200
3     @@ -70,17 +70,20 @@
4     push(@accounts, $a->get('admin'));
5     }
6     else
7     -{
8     - my $userName = shift;
9     - die "Username argument missing." unless defined ($userName);
10     -
11     - $account = $a->get($userName);
12     - die "Account $userName not found.\n" unless defined $account;
13     - my $type = $account->prop('type') || "unknown";
14     -
15     - die "Account $userName is not a user, group, ibay, machine account; update LDAP entry failed.\n"
16     - unless ($type =~ m{^(?:user|group|ibay|machine)$} or $userName eq 'admin');
17     - @accounts = ($account);
18     +{
19     + my @name = @ARGV;
20     + die "Account name argument missing." unless scalar (@name) >= 1;
21     +
22     + foreach my $name (@name)
23     + {
24     + $account = $a->get($name);
25     + die "Account $name not found.\n" unless defined $account;
26     + my $type = $account->prop('type') || "unknown";
27     +
28     + die "Account $name is not a user, group, ibay, machine account; update LDAP entry failed.\n"
29     + unless ($type =~ m{^(?:user|group|ibay|machine)$} or $name eq 'admin');
30     + push @accounts, $account;
31     + }
32     }
33    
34     #------------------------------------------------------------

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