Ticket 47433 - With SeLinux, setup-ds.pl and setup-ds-admin.pl fail to detect already ranged labelled ports

Bug Description:
	With SeLinux ports may be labelled per range. In the output of 'semanage port -l' a range is displayed
	with <portMin>-<portMax> rather than with an individual <portNum>.
	When parsing the output, DSCreate.pm(updateSelinuxPolicy) expects a list of individual ports so it fails
	to detect that a given port is in the range of ports.

Fix Description:
	When parsing the output of 'semanage port -l', if a range exists it checks that the provided port is
	in the range or not.

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

Reviewed by: Rich Megginson (thanks Rich)

Platforms tested: Fedora 17

Flag Day: no

Doc impact: no
Ticket 512 - improve performance of vattr code

Bug Description:
	The first part of the fix was incompleted, breaking fix #490.
	The problem was that when an entry had no cached virtual attribute, we continued
	to call the SP. In fact the cache mechanism supported only one virtual attribute (nsroledn)
	and used the 'watermark' (in the entry) to know if the virtual attribute was already evaluated.
	Now the virtual cache contains several attributes and we can not rely on only watermark to
	know if the attribute was already evaluated.

Fix Description:
	The fix implements a cache containing all the virtual attributes.
	If a virtual attribute is evaluated, its value is store in the cache.
	This even if the present value of the attribute is NULL (no Service Provider gave a result).
	The meaning of the watermark returns to its origin: it says if the cached virtual values are or not valid
	(a change in SP triggers invalidation of the cache).

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

Reviewed by: Ludwig Krispenz,Rich Megginson

Platforms tested: F18
	cos/roles acceptance
	#490 test case (test integrated in 389 CI tests https://github.com/tbordaz/dirsrvtests)
	#512 test case

Flag Day: no

Doc impact: no
Ticket #197 - BDB backend - clear free page files to reduce changelog size

Bug description: Even if entries in the database and changes in the
changelog database are deleted/trimmed, the unused pages of the data-
bases were not returned to the filesystem.

Fix description: This patch calls the compact API that Berkeley DB
provides, which compacts the database.

2 config parameters are introduced to specify the interval of the
compact calls.
Primary DBs (id2entry):
  dn: cn=config,cn=ldbm database,cn=plugins,cn=config
  nsslapd-db-compactdb-interval: <seconds>
Changelog DBs:
  dn: cn=changelog5,cn=config
  nsslapd-changelogcompactdb-interval: <seconds>
By default, 2592000 seconds (30 days)

Reviewed by Rich (Thank you!!)

https://fedorahosted.org/389/ticket/197
Ticket #48 - Active Directory has certain uids which are reserved and will cause a Directory Server replica initialization of an AD server to abort.

Coverity CID 11943 - Logically dead code

Fix description: The following commit mistakenly put the "Ignoring
ALREADY EXIST case" code before retrieving the ldap_result_code.
This patch fixes the order.
  commit b00b8acca54267560c6d7ec614bc52cfe541200a
  Author: Noriko Hosoi <nhosoi@redhat.com>
  Date:   Fri Aug 16 14:04:27 2013 -0700

Reviewed by Rich (Thank you!!)

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