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

Contents of /rpms/e-smith-ldap/sme8/e-smith-ldap-5.2.0-fix_ldap_delete.patch

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


Revision 1.1 - (show annotations) (download)
Mon Sep 27 17:33:06 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-39_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-40_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-39.sme
- Fix ldap-delete script [SME: 6238]

1 --- e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-delete.fix_ldap_delete 2010-09-27 19:20:39.000000000 +0200
2 +++ e-smith-ldap-5.2.0/root/etc/e-smith/events/actions/ldap-delete 2010-09-27 19:22:00.000000000 +0200
3 @@ -57,8 +57,10 @@
4 password => $pw
5 );
6
7 +my $mesg;
8 +
9 # Delete any user object with this name
10 -my $mesg = $ldap->search( base-> "uid=$name,ou=Users,$base", filter => '(ObjectClass=*)', scope => 'base' );
11 +$mesg = $ldap->search( base=> "uid=$name,ou=Users,$base", filter => '(ObjectClass=*)', scope => 'base' );
12 if ($mesg->code && $mesg->code != 32)
13 {
14 warn "Failed ldap search uid=$name,ou=Users,$base: ", $mesg->error;
15 @@ -69,7 +71,7 @@
16 }
17
18 # Delete any computer object with this name
19 -my $mesg = $ldap->search( base-> "uid=$name,ou=Computers,$base", filter => '(ObjectClass=*)', scope => 'base' );
20 +$mesg = $ldap->search( base=> "uid=$name,ou=Computers,$base", filter => '(ObjectClass=*)', scope => 'base' );
21 if ($mesg->code && $mesg->code != 32)
22 {
23 warn "Failed ldap search uid=$name,ou=Computers,$base: ", $mesg->error;
24 @@ -80,7 +82,7 @@
25 }
26
27 # Delete any (old) user/computer object with this name
28 -my $mesg = $ldap->search( base-> "uid=$name,$base", filter => '(ObjectClass=*)', scope => 'base' );
29 +$mesg = $ldap->search( base=> "uid=$name,$base", filter => '(ObjectClass=*)', scope => 'base' );
30 if ($mesg->code && $mesg->code != 32)
31 {
32 warn "Failed ldap search uid=$name,$base: ", $mesg->error;
33 @@ -91,7 +93,7 @@
34 }
35
36 # Delete any group object with this name
37 -my $mesg = $ldap->search( base-> "cn=$name,ou=Groups,$base", filter => '(ObjectClass=*)', scope => 'base' );
38 +$mesg = $ldap->search( base=> "cn=$name,ou=Groups,$base", filter => '(ObjectClass=*)', scope => 'base' );
39 if ($mesg->code && $mesg->code != 32)
40 {
41 warn "Failed ldap search cn=$name,ou=Groups,$base: ", $mesg->error;
42 @@ -102,7 +104,7 @@
43 }
44
45 # Delete any (old) group object with this name
46 -my $mesg = $ldap->search( base-> "cn=$name,$base", filter => '(ObjectClass=*)', scope => 'base' );
47 +$mesg = $ldap->search( base=> "cn=$name,$base", filter => '(ObjectClass=*)', scope => 'base' );
48 if ($mesg->code && $mesg->code != 32)
49 {
50 warn "Failed ldap search cn=$name,$base: ", $mesg->error;

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