Ticket 47740 - Fix coverity issues - Part 5

12494 - resource leak - /ldap/servers/slapd/saslbind.c
12487 - resource leak - /ldap/servers/plugins/replication/urp.c
12486 - resource leak - /ldap/servers/plugins/acl/acleffectiverights.c
12480 - resource leak - lib/ldaputil/certmap.c
12478 - resource leak - lib/ldaputil/certmap.c
12477 - resource leak - lib/ldaputil/certmap.c

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

Reviewed by: rmeggins(Thanks!)
Ticket #47740 - Coverity issue in 1.3.3

Description: Coverity 11778 - Resource leak
val was allocated by dbconf_decodeval, which was not freed if propval
failed to create.

Reviewed by mareynol@redhat.com (Thanks, Mark!)
Ticket #47735 - e_uniqueid fails to set if an entry is a conflict entry

Description: In commit e2b8468f459647261812f542485f3481d39bd26c,
to get the base type length when a state info is stripped from
the attribute type, the fix in str2entry_state_information_from_type
blindly returned the base type length for the ordinary sub-typed
attributes.  This patch fixes it so that only when the state info
is removed, the length is reset.

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

Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
Ticket 47732 - ds logs many "SLAPI_PLUGIN_BE_TXN_POST_DELETE_FN plugin returned error" messages

Bug Description:  there are many error messages relate to postop delete plugins
			whichare not justified

Fix Description:   the usn plugin always returns an error when an attempt is made
			to delete a non-existing entry, checking the ldap code in
			the pblock.
			But the plugin executes correctly and the error is aleady set
			so return succes

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

Reviewed by: richm, thanks
Ticket 47740 - Fix coverity issues: null deferences - Part 6

12474 - Null pointer dereference - ldap/servers/slapd/tools/migratecred.c
12473 - Null pointer dereference - ldap/srevers/slapd/snmp/main.c
12468 - Null pointer dereference - ldap/servers/plugins/memberof/memberof.c

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

Reviewed by: rmeggins(Thanks!)
Ticket 47733 - ds logs many "Operation error fetching Null DN" messages

Bug Description:  in ipa tests there are many of the above
			messages logged. The reason is that
			in txn access to database for a locked
			page DB_DEADLOCK is detected and
			after a few retries the error is logged.
			for more info cf to the ticket

Fix Description:   introduce a sleep in th eretry loop to get a chance that
			th epage will be released

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

Reviewed by: richm,thanks
Ticket 47740 - Crash caused by changes to certmap.c

Bug Description: dncomps & filtercomps could be incorrectly freed,
                 which lead to a crash.

Fix Description: Allocate "" for dncomps & filtercomps, instead of
                 setting it on the stack.

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

Reviewed by: rmeggins(Thanks!)
Revert "Ticket 47700 - Fix compiler warnings"

This patch breaks the build on rawhide.

This reverts commit 9698a97075e04219e103b2693ac5002d33b19486.
Ticket 47553: Enhance ACIs to have more control over MODRDN operations

Bug Description:
	This is enhancement of the access control related to the MODDN/MODRDN operation.
	We need the ability to specify a 'source tree' and a 'destination tree' where MODDN/MODRDN
	are allowed/denied.
	It is a requirement that 'source' and 'destination' targets can be specified in the same ACI.

Fix Description:
	Please refer to http://directory.fedoraproject.org/wiki/Access_control_on_trees_specified_in_MODDN_operation.
	Mainly:
		- parse new aci syntax
		- support of new 'moddn' right in aci
		- Check 'moddn' right in ldbm_back_modrdn
		- filter source/destination when looking for matching ressources
		- support of 'moddn' rights in GER control
		- new nsslapd-moddn-aci compatibility config flag
		- aci logging summary (display source/destination)
		- Skip readonly backend

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

Reviewed by: Rich Megginson (Big thanks Rich !!)

Platforms tested: F17

Flag Day: no

Doc impact: yes
Ticket 47743 - Memory leak with proxy auth control

Description:  We were not properly freeing the ber when parsing
              the proxy auth DN.

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

Reviewed by: rmeggins(Thanks!)