Ticket 47577 - crash when removing entries from cache

Bug Description:  when the dn of an entry in the cache was adjusted to the parent dn, for soenm time
	teh dn was not defined, anothe thread accessing the dn of teh chached entry could crash

Fix Description:   hold the cache mutex when modifyingthe dn of an entry in the cache

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

Reviewed by: rmeggins
(cherry picked from commit 7272dbda7f43974eed003cbcfc0ddd57fe433687)
(cherry picked from commit 1056a6282f246a9c396b8052d726005fe8189512)
Ticket #47581 - Winsync plugin segfault during incremental backoff

Bug description: Once WinSync backoff timer is set, even if the
protocol that the backoff timer belongs to is deleted by removing
the windows sync agreement, the timer is not deleted from the event
queue.  Thus the timer is expired and backoff is called, it crashes
the server since the protocol handle is already freed, then.

Fix description: Make sure to delete the backoff timer when
1) a windows sync agreement is removed and the protocol is deleted, and
2) a new backoff timer set and there is already a backoff timer set up.

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

Reviewed by rmeggins (Thank you, Rich!!)
(cherry picked from commit d70e66b2157ce3ba40c5e1cb074c2d5c150ddc5b)
(cherry picked from commit 59846f7247bae47f8fbcfc808c4cb6e6e96e2dc9)
Ticket #47581 - Winsync plugin segfault during incremental backoff (phase 2)

Fix description: Apply the previous patch Ticket #47581 against the
replication plug-in (repl5_inc_protocol.c):
Make sure to delete the backoff timer when
1) a replication agreement is removed and the protocol is deleted, and
2) a new backoff timer set and there is already a backoff timer set up.

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

Reviewed by rmeggins (Thank you, Rich!!)
(cherry picked from commit 8eecc43e0160e132949ed504162b4536d6040620)
(cherry picked from commit 962fc45a15a4bc2e0d13d3d8b12225105ef43dbb)
Ticket 47379 - DNA plugin failed to fetch replication agreement

Bug Description:  When trying to get the next range of available values, if a shared config
                  server does not have a replication agreement that points to itself then
                  it can not obtain the bind credentials/info to successfully contact that
                  server when trying to get the next range.

Fix Description:  Extend the shared config server to allow for bind information, such as bind
                  method, and connection protocol.  For the bind DN and pw(for SIMPLE and DIGEST-MD5
                  bind methods), we store this in the plugin config entry.  As each bind pw needs to
                  use DES pw storage scheme, and this must be local to each server (not replicated
                  with the shared config server entry).

                  Fixed infinite loop in dna_fix_maxval() - we did not advance the server list if
                  there was a error.  Also improved config validation to make sure the shared config
                  entry is not within the scope & filter of the DNA config.

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

Reviewed by: richm & nkinder(Thanks!!)
(cherry picked from commit 3e2262e1c0410bdf4f9b9211aef13deb28f174d1)
Ticket 47379 - DNA plugin failed to fetch replication agreement

Description : Schema file 10dna-plugin.ldif modified in the commit
3e2262e1c0410bdf4f9b9211aef13deb28f174d1 had a tab which should
be white spaces.  It made the schema parsing fail and the server
uninstallable.  This patch replaces the tab with white spaces.
(cherry picked from commit 5f0580abd55b4fb34a954f0314c1188c43921363)
bump version to 1.3.1.13
Coverity (Part 7) + Jenkins fix

11704 - Dereference after null check:  repl5_replica_config.c

Jenkins error: dna.c

https://bugzilla.redhat.com/show_bug.cgi?id=970221

Reviewed by: richm(Thanks!)
Ticket 47588 - Compiler warnings building on F19

This addresses a few compiler warnings that show up when building
on F19.  The issues are minor (unused typedef and an incorrect
usage of memset in some debugging ifdef'd code).
(cherry picked from commit cafc4eb7a16e5ee4b90922fa0000e86d35290030)
(cherry picked from commit 3cf9c544585385a9b7eecfbcb79ce1fbc4ebccfa)
Ticket #47589 - Winsync replica initialization and incremental updates from DS to AD fails on RHEL7

Bug description: Cherry-picking the fix for  "Ticket #47492 - PassSync
removes User must change password flag on the Windows side" (commit
8d34f77f6d8d3c83dce1f29e6df709df1adef09d) dropped one line to set
suffix in map_entry_dn_outbound.

Fix description: This patch recovers the suffix setting code.
bump version to 1.3.1.14