Ticket 47436 - 389-ds-base - shebang with /usr/bin/env

Bug Description:  There might be an issue that the script is executed
                  with unwanted version of <lang> if that language is
                  provided by enabled software collection.

Fix Description:  Added new configure option to set the perl directory.
                  This new option can be added to the spec file for
                  official RHEL/Fedora releases.

                  The main code change was in configure.ac

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

Reviewed by: rmeggins(Thanks!)
bump autoconf to 2.69, automake to 1.13.4, libtool to 2.4.2

This also simplifies the process of setting these in the future
Reviewed by: mreynolds (Thanks!)
Ticket #47422 - With 1.3.04 and subtree-renaming OFF, when a user is deleted after restarting the server, the same entry can't be added

Bug description:
1) As reported by baburaje12, regardless of the  nsslapd-subtree-
   rename-switch, "entrydn" was not stored in the id2entry db. The
   attribute value had to be stored in the db file if the switch
   was off.  Attribute values to avoid storing in the db file are
   maintained in an array protected_attrs_all statically. "Entrydn"
   should be dynamic depending on the switch.
2) When the switch is off, import was skipping to generate the
   parentid index, which leads to skipping to create the entrydn,
   as well.

Fix description:
1) Instead of keeping "entrydn" in the protected_attrs_all statically,
   this patch introduces an api set_attr_to_protected_list to add or
   remove "entrydn" based upon the value of nsslapd-subtree-rename-
   switch.
2) The condition to create a parentid index is fixed to always
   create it if the nsslapd-subtree-rename-switch is off.

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

Reviewed by rmeggins (Thank you, Rich!)
Ticket #47530 - dbscan on entryrdn should show all matching values

Bug description:
1) commit bded3015acdd5c71f05ceb10f10af220a02e6f74 was not a complete
   patch, which was failing in the case the entryrdn key is not given.
2) Coverity 13190: Logically dead code

Fix description:
1) If an entryrdn key is not given, it sets DB_NEXT to the db flag and
   continues scanning the entryrdn index.
2) The unnecessary checking 0 for the return code rc is removed.

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

Reviewed by rmeggins (Thank you, Rich!!)
Ticket 47513 - tmpfiles.d references /var/lock when they should reference /run/lock

The previous patch was using numeric comparison instead of string
comparison to check if localrundir was empty.  This was causing our
tmpfiles.d configuration to use the settings from the inf file,
which evaluates to /var/run when using --with-fhs.

This patch uses a proper string comparison which results in using
/run in the tmpfiles.d config as desired.
ticket #47550 wip
Ticket #47550 logconv: failed logins: Use of uninitialized value in numeric comparison at logconv.pl line 949

https://fedorahosted.org/389/ticket/47550
Reviewed by: nhosoi (Thanks!)
Branch: master
Fix Description: Copy/paste error.  Changed badPassword to badPasswordIp.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
Coverity Issue 12033

CID 12033 (#1 of 1): Unsigned compared against 0 (NO_EFFECT)unsigned_compare: This less-than-zero comparison of an unsigned value is never true. "val < 0UL".

Removed unneccesary comparision introduced by ticket:

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

Reviewed by: richm(Thanks!)
Ticket 47538 - RFE: repl-monitor.pl plain text output, cmdline config options

RFE Description:  Request option to print report in plain text(instead of HTML), and
                  be able to add the configfuration file directives as command line
                  options.

Fix Description:  Add a new option "-s" for displaying plain text report.

                  Added new options for the config file directives:

                      -c "connection value"
                      -a "alias value"
                      -k "color value"

                  Added a new option (-W, --prompt) to prompt for passwords.

                  Added "long names" to the commandline options.
                  Updated to use:  GetOpts::Long, strict, warnings

                  Cleaned up some HTML code/colors, and indentation.

                  Update man page.

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

Reviewed by: nhosoi, nkinder, and rmeggins(Thanks!!!)
Ticket 47398 - memberOf on a user is converted to lowercase

Bug Description:
	In order to compare the groups that an entry is memberof, all
	entry DN is normalized. When finally we decide to add (in a target entry)
	the group DN as a memberof value, we store the lowercase normalized value.

Fix Description:
	We keep the processus of comparison with normalized value but at the
	time we do the actual MOD on the target entry, we use the group entry
	DN (normalized but not lowercase) rather that the strict normalized one.
	Changes in memberof_get_groups_callback are for ADD,DEL,MOD ops
	Change in memberof_modop_one_replace_r is for MODRDN of leaf entry
	Change in memberof_replace_dn_from_groups is for MODRDN on group entry

	When retrieving the groups that an entry is memberof, the lowercase normalized DNs
	of the groups are kept in the callback_data (group_norm_vals).
	Because to know if a new group is in the groups already evaluated it needs
	lowercase normalized value.

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

Reviewed by: Noriko Hosoi (Thanks Noriko for the review and the comments. I change slightly
the fix description to take your comment into account).

Platforms tested: F17 acceptance and unit tests.
	Verify that the number of call of slapi_dn_normalization_ext is identical
	with/without the fix. (does not break https://fedorahosted.org/389/ticket/412)

Flag Day: no

Doc impact: no
Ticket 47519 - memory leaks in access control

The leaks originally reported in the ticket could not be reproduced by
myself or the reporter.  This fix is completely theoretical, and solely
based on the valgrind report.

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

Reviewed by: richm(Thanks!)
Ticket #47559 hung server - related to sasl and initialize

https://fedorahosted.org/389/ticket/47559
Reviewed by: nhosoi (Thanks!)
Branch: master
Fix Description: Use a mutex to protect calls to openldap functions that do
anything with crypto - bind, unbind, start_tls, other calls.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no