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)
(cherry picked from commit 0b5fede023836b8b41a31c0106775767f306d21d)
(cherry picked from commit b8c921f201929ec15974f2ccbe36af5caf74c74c)
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)
CVE-2013-2219 ACLs inoperative in some search scenarios
Ticket #543 - Sorting with attributes in ldapsearch gives incorrect result

Bug description: In the server side sorting compare function
compare_entries_sv, if multiple attribute types are specified,
the sort spec for each attribute is scanned one by one in the
for loop.  In the for loop, instead of using the "current"
spec, the first spec is kept using.  If the attribute types
have different syntaxes (e.g., cis, tel), then the first
syntax is unexpectedly selected for the second syntax.

Fix description: This patch correctly uses the current spec
in the for loop.

Reviewed by Nathan (Thank you!!)
(cherry picked from commit 95f425da43b380163c2ddae66fc77d2b863a00e5)
 fix compiler warning
(cherry picked from commit 904416f4631d842a105851b4a9931ae17822a107)
(cherry picked from commit 3a5f8de21fba3656670b8ee35e020f159d4110db)
(cherry picked from commit efcb1af30b63f91d3235914962bd4aa399bc08ba)
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
(cherry picked from commit ce4e813f3f446bdd746ec288f33d1effcb3bf919)
(cherry picked from commit 2bd9ced46f395513e0aaded8f8eea5962337bffc)
fix compiler warning in posix winsync code for posix_group_del_memberuid_callback
(cherry picked from commit f440e039a5f2a7b2ea0dd087d8e91c554abc1be0)
(cherry picked from commit 761d9d550ca1025293dc1607760adea38ddc5452)
fix coverity 11895 - null deref - caused by fix to ticket 47392

reviewed by: nhosoi (Thanks!)
(cherry picked from commit b61143cc79cb5c3e23f403c4980f8a03ab7426c0)
(cherry picked from commit 03a67b1432bbafe5eb7a82a8afd0832f220c229b)
(cherry picked from commit 877fee5b6228faf471eefed9a073dff13074b224)
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)
(cherry picked from commit fcf4154b73681752a5ac32954a1d25771a75478e)
(cherry picked from commit 67694e7a95f72067bba84e0f6af4ff1c4af89a9e)
Revert "fix coverity 11915 - dead code - introduced with fix for ticket 346"

This reverts commit dc9192efc1c502e53e54291a8afda33f56a97d03.
bump version to 1.2.11.22