zrhoffman / rpms / 389-ds-base

Forked from rpms/389-ds-base 3 years ago
Clone

Blame SOURCES/0041-Ticket-47560-fixup-memberof-task-does-not-work-task-.patch

ba46c7
From e250f9a05bb089fc35c2ec2340aa9ca00711e5b0 Mon Sep 17 00:00:00 2001
ba46c7
From: Thierry bordaz (tbordaz) <tbordaz@redhat.com>
ba46c7
Date: Mon, 21 Oct 2013 16:55:11 +0200
ba46c7
Subject: [PATCH 41/41] Ticket 47560: fixup memberof task does not work: task entry not added
ba46c7
ba46c7
Bug Description:
ba46c7
ba46c7
	The fixup memberof tasks is triggered by ADD of entry like:
ba46c7
	cn=memberOf_fixup_YYYY_MM_DD_HH_MM_SS, cn=memberOf task, cn=tasks, cn=config
ba46c7
ba46c7
	the script fixup-memberof.pl does not add this entry
ba46c7
ba46c7
Fix Description:
ba46c7
	Initialize the $entry variable
ba46c7
ba46c7
https://fedorahosted.org/389/ticket/47560
ba46c7
ba46c7
Reviewed by: Noriko Hosoi
ba46c7
ba46c7
Platforms tested: F17
ba46c7
ba46c7
Flag Day: no
ba46c7
ba46c7
Doc impact: no
ba46c7
(cherry picked from commit 05950d062b866fb7f590b19734b2eedccd1a2a2a)
ba46c7
---
ba46c7
 ldap/admin/src/scripts/fixup-memberof.pl.in |    1 +
ba46c7
 1 files changed, 1 insertions(+), 0 deletions(-)
ba46c7
ba46c7
diff --git a/ldap/admin/src/scripts/fixup-memberof.pl.in b/ldap/admin/src/scripts/fixup-memberof.pl.in
ba46c7
index c7038f6..2355455 100644
ba46c7
--- a/ldap/admin/src/scripts/fixup-memberof.pl.in
ba46c7
+++ b/ldap/admin/src/scripts/fixup-memberof.pl.in
ba46c7
@@ -135,6 +135,7 @@ if ( $filter_arg ne "" )
ba46c7
     $filter = "filter: $filter_arg\n";
ba46c7
 }
ba46c7
 
ba46c7
+$entry = "${dn}${misc}${cn}${basedn}${filter}";
ba46c7
 $rc = DSUtil::ldapmod($entry, %info);
ba46c7
 
ba46c7
 $dn =~ s/^dn: //;
ba46c7
-- 
ba46c7
1.7.1
ba46c7