Ticket #47701 - Make retro changelog trim interval programmable

Description: Fixing resource leak CID 12435 (Coverity) introduced
by commit bb4f0c428f9e53bccb875a552f5cae1ee6f733be

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

Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
Ticket 525 - Replication retry time attributes cannot be added

Description: Coverity CID 12434 Dereference before null check
introduced by commit dde9abef5ca71fc0557c66cabb99cb0a6f5e0332.

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

Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
Ticket 47699: Propagate plugin precedence to all registered function types

Bug Description:
	A plugin can define its nsslapd-pluginprecedence (config), that is number that order the
	plugins in the plugin list.
	If a plugin register an other plugin (slapi_register_plugin), this number is not
	preserved in the new plugin and it gets a default plugin precedence value.

Fix Description:
	When registering a plugin (slapi_register_plugin) a plugin identity is provided that
	contains the original plugin configuration (with its precedence).
	The fix consist to set (in slapi_register_plugin_ext ) the precedence to the
	value store in the plugin identity. It is done in slapi_register_plugin_ext
	because referencial integrity calls directly slapi_register_plugin_ext.

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

Reviewed by: Rich Megginson / Mark Reynolds

Platforms tested: F17

Flag Day: no

Doc impact: no
Ticket 408 - create a normalized dn cache

covscan Defect type: FORWARD_NULL
15. 389-ds-base-1.3.1.6/ldap/servers/slapd/dn.c:3036:var_deref_op -
    Dereferencing null pointer "node".
Introduced by commit 1d6dd39fb8b0ef8eb42ec9ef8c3d325e27a3d3c1
Fix: Check if "node" is null or not before referencing.

Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
Ticket 571 (dup 47361) - Empty control list causes LDAP protocol error is thrown

covscan Defect type:  Compiler Warnings
2. 389-ds-base-1.3.1.6/ldap/servers/slapd/control.c:364:25:
   warning - format '%d' expects argument of type 'int',
   but argument 4 has type 'PRUint64' [-Wformat=]
Introduced by commit d695afb6a637432e880296d8552f466981c0796c
Fix: Replaced %d with % NSPRIu64

Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
Ticket 408 - create a normalized dn cache

covscan Defect type: FORWARD_NULL
15. 389-ds-base-1.3.1.6/ldap/servers/slapd/dn.c:3036:var_deref_op -
    Dereferencing null pointer "node".
Introduced by commit 1d6dd39fb8b0ef8eb42ec9ef8c3d325e27a3d3c1
Fix: Check if "node" is null or not before referencing.
Note: Found second FORWARD_NULL in addition to
      commit 5ac08038a05877b4240755801debd5e5a3a94c6f,