Ticket 47560: fixup memberof task does not work: task entry not added

Bug Description:

	The fixup memberof tasks is triggered by ADD of entry like:
	cn=memberOf_fixup_YYYY_MM_DD_HH_MM_SS, cn=memberOf task, cn=tasks, cn=config

	the script fixup-memberof.pl does not add this entry

Fix Description:
	Initialize the $entry variable

https://fedorahosted.org/389/ticket/47560

Reviewed by: Noriko Hosoi

Platforms tested: F17

Flag Day: no

Doc impact: no
Ticket 47565 - Content Sync update file needs extensibleObject

The Content Sync Plug-in update file will cause a schema violation
that causes dse.ldif to fail to load after upgrading an older DS
instance.  The problem is that the nsslapd-depends-on-name attribute
is used, but the extensibleObject objectclass is not present for
the config entry.  This is required since nsslapd-depends-on-named
is not really defined in the schema like a normal attribute.
Ticket 47569 - ACIs do not allow attribute subtypes in targetattr keyword

When validating the targetattr ACI keyword, we check if the attribute
is defined in the schema.  This schema check fails if the attribute
has a subtype present.

This patch makes the attribute syntax lookup function check if a
subtype was specified before performing the looking.  If a subtype
is specified, it is stripped off and we just use the base attribute
name to lookup the syntax from the hashtable.
Ticket 47569 - Fix build warnings

The previous commit for this ticket introduced some build warnings.
This patch corrects the build warnings.
Ticket #538 - hardcoded sasl2 plugin path in ldaputil.c, saslbind.c

Bug description: The hardcoded sasl2 path is Fedora/RHEL specific.
It needs to support other architectures with other filesystem
format.

Fix description: This patch supports ARM architectures with GNU
triplet format.

https://fedorahosted.org/389/ticket/538

Reviewed by rmeggins (Thank you, Rich!)
Ticket 47368 - IPA server dirsrv RUV entry data excluded from replication

Bug Description:  If using fractional replication agreements and stripping attributes,
                  it's possible that no modificatins could be replicated, but the local
                  RUV gets updated.  This makes it impossible to detect if a consumer
                  is up to date.

Fix Description:  Added new attribute to db tombstone entry:  nsds5AgmtMaxCSN.

                  nsds5AgmtMaxCSN: <repl area>:<agmt name>:<host>:<port>:<consumer rid>:<maxcsn>
                  nsds5AgmtMaxCSN: dc=example,dc=com;to replica 1;localhost.localdomain;389;111;5270095c0000014d0000

                  Now, each agmt stores the maxcsn (that it should replicate, as different
                  agmts might be stripping different attributes) in the local db tombstone.
                  This maxcsn can be used to check the replicas tombstone RUV to check if
                  it has seen all the expected updates.

                  repl-monitor.pl has been updated to process the the new agmt maxcsn in its
                  report.  The script also incorrectly reported on agreements from other
                  replicas - this has been fixed.  Also re-worded the report terminology:
                  changed "Receiver" to "Consumer", and "Master" to "Supplier".  Also improved
                  the text report output as well.  Examples of the new output(text and html)
                  can be found in the ticket(see attachments).  The script is backwards compatible
                  with older versions of Directory Server.

https://fedorahosted.org/389/ticket/47368

Reviewed by: lkrispen & rmeggins (Thanks!!)
Ticket 47368 - Fix Jenkins errors

Removed some unused variables, fixed a memory leak when removing
a nsds4AgmtMaxCSN value, and fixed a bug where if you deleted one
agmt, it would remove all the nsds5AgmtMaxCSN attributes.

https://fedorahosted.org/389/ticket/47368
Ticket #47555 - db2bak.pl issue when specifying non-default directory

Bug description: db2bak.pl takes an option "-a backupdir", which is
supposed to be generated by the server and used as a backup directory.
But since the created directory inherits the parent's selinux context,
it fails to store the backup files in the directory.

Fix description: As the reporter agaviola suggested, it should be a
good idea to add one more level to the archive directory.
$archivedir = "${archivedir}/ID-${yr}_${mn}_${dy}_${h}_${m}_${s}";
But to keep the backward compatibility, introducing a new option "-A
backupdir" and when "-A" is given, storing the backup files in the
nested backup directory.  If the option is "-a backupdir", the backup
files are stored in the backupdir.

Respecting the selinux policy, the server and its utilities are not
supposed to create a file/directory where it is not allowed.  This
patch creates a symlink from the back up location to the specified
path by a user.  bak2db.pl follows the symlink and restore from the
back up directory.

https://fedorahosted.org/389/ticket/47555

Reviewed by rmeggins (Thank you, Rich!!)