1 |
slords |
1.1 |
diff -up e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix.replace-logic e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix |
2 |
|
|
--- e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix.replace-logic 2010-12-01 17:37:38.000000000 -0700 |
3 |
|
|
+++ e-smith-ldap-5.2.0/root/var/service/ldap/ldif-fix 2010-12-01 17:44:45.000000000 -0700 |
4 |
|
|
@@ -355,13 +355,13 @@ while( not $reader->eof()) { |
5 |
|
|
} |
6 |
|
|
} |
7 |
|
|
|
8 |
|
|
- if (@donly && @donly == @lonly) { |
9 |
|
|
- # If we are removing all ldap only attributes do a remove or full delete |
10 |
|
|
+ if (@donly && @donly == keys %lseen) { |
11 |
|
|
+ # If we are removing all ldap attributes do a remove or full delete |
12 |
|
|
if (@uonly) { |
13 |
|
|
$entry->replace($attr => [ @uonly ]); |
14 |
|
|
} |
15 |
|
|
else { |
16 |
|
|
- $entry->delete($attr => [ @donly == keys %lseen ? () : @donly ]); |
17 |
|
|
+ $entry->delete($attr => []); |
18 |
|
|
} |
19 |
|
|
} |
20 |
|
|
else { |