Ticket 47427 - Overflow in nsslapd-disk-monitoring-threshold

Bug Description:  If you directory try and set the threshold to -2,
                  the server allows it, but it should be rejected.

Fix Description:  With PR_snprintf and other NSPR formatting functions,
                  %lld must be used with LONG_MAX, instead of %ld which
                  must be used with regular printf.

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

Reviewed by: mreynolds (Thanks!)
(cherry picked from commit 5df006bd765163279f14cfbb0a136c15c69bed5b)
Ticket #47378 - fix recent compiler warnings

Description: This patch removes unused function compare_entries
in back-ldbm/sort.c.

https://fedorahosted.org/389/ticket/47378
(cherry picked from commit 9737076aa97622ac5f25d59e86b350050e700f60)
Ticket 47447 - logconv.pl man page missing -m,-M,-B,-D

Fix Description:  Added the missing info, and also updated the main arguments
                  with their long option names.

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

Reviewed by: nhosoi(Thanks!)
(cherry picked from commit 4ea4c8bf91f5c28bd643b0c06f590ec164156358)
CVE-2013-2219 ACLs inoperative in some search scenarios
Ticket 47440 - Fix compilation warnings and header files

Original patches submitted by: 	lslebodn(Thanks!!)

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

Reviewed by: richm(Thanks!)
(cherry picked from commit 29a1a2d0a7780d22a0724955370cbc4a0e6e6023)
Ticket 47440 - Fix runtime errors caused by last patch.

Author: richm

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

Reviewed by: mreynolds
(cherry picked from commit 1cc8ede3497d752555c23e1b9783550921b64fea)
Ticket #47448 - Segfault in 389-ds-base-1.3.1.4-1.fc19 when setting up FreeIPA replication

https://fedorahosted.org/389/ticket/47448
Reviewed by: lkrispenz (Thanks!)
Branch: master
Fix Description: valueset_add_valueset() sets the values in the vs1
destination valueset.  It expects that vs1 is empty.  Particularly, the
sorted array.  If the source valueset vs2->sorted is NULL, it assumes
vs1->sorted is NULL already, and does not free it and set it to NULL.
The fix is to free both vs1->sorted and vs1->va.  NOTE: this fixes
the crash, but does not address the larger issue that the semantics of
valueset_add_valueset are not correct - valueset_add_valueset should add
the values from vs2 to vs1, rather than replace vs1 with vs2.
Also added post-condition assertions.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
Ticket #47455 - valgrind - value mem leaks, uninit mem usage

https://fedorahosted.org/389/ticket/47455
Reviewed by: lkrispenz, nhosoi (Thanks!)
Branch: master
Fix Description: Make sure to use slapi_valueset_done to free valuesets to
clean up everything.  Make sure to free the values in valueset_set_valueset
before setting them.  The calculation of the size of the values to write
to the changelog was wrong.  It was finding the size of the length by doing
sizeof(bv.bv_len) which is 8 bytes on 64-bit platforms, but using PRInt32 which
is 4 bytes on all platforms to actually store the length.  So each length
calculation was using an extra 4 bytes, and writing this as uninitialized
memory to the changelog db.
In slapi_valueset_add_attr_valuearray_ext(), if an error is returned, and
the PASSIN flag was used, set the vs->va[0] to NULL - this will allow the
called to use both slapi_valueset_done(vs) and valuearray_free(&addvals) -
addvals will still own all of the values.
Cleaned up some other memory leaks and uninitialized memory uses.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
Ticket #47456 - delete present values should append values to deleted values

https://fedorahosted.org/389/ticket/47456
Reviewed by: lkrispenz (Thanks!)
Branch: master
Fix Description: When deleting all values, entry_delete_present_values_wsi was
deleting all values in the deleted_values set and replacing them with the
present_values set.  It should not delete the values in the deleted_values
set, it should just add to them.  This also renames valueset_add_valueset
to valueset_set_valueset, which is what it was doing anyway.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
bump version to 1.3.1.5
Fix compiler warning
(cherry picked from commit ec6ebc0b0f085a82041d993ab2450a3922ef5502)
fix compiler warnings
Ticket 47450 - Fix compiler formatting warning errors for 32/64 bit arch

Description:  Properly cast NSPR integer data types when formatting strings for logging.

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

Reviewed by: richm(Thanks!)
 fix compiler warning
(cherry picked from commit 904416f4631d842a105851b4a9931ae17822a107)
Fix compiler warnings for Ticket 47395 and 47397

Ticket 47395 47397 v2 correct behaviour of account policy if only stateattr
    is configured or no alternate attr is configured
fix compiler warning in posix winsync code for posix_group_del_memberuid_callback
fix coverity 11895 - null deref - caused by fix to ticket 47392

reviewed by: nhosoi (Thanks!)
(cherry picked from commit b61143cc79cb5c3e23f403c4980f8a03ab7426c0)
fix coverity 11915 - dead code - introduced with fix for ticket 346

just get rid of unused variable was_present_null
reviewed by: nhosoi (Thanks!)
(cherry picked from commit ba70aac1991a04455ba83362e22c33f7f6ab227a)
Ticket #47455 - valgrind - value mem leaks, uninit mem usage

https://fedorahosted.org/389/ticket/47455
Reviewed by: lkrispenz, nhosoi (Thanks!)
Branch: master
Fix Description: Can only free import job if it is not a task.  If it is
a task, the job will be freed by the task destructor.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
(cherry picked from commit 36a907be5accb9fccb5941683defb5b03140a1a6)
bump version to 1.3.1.6