Ticket #47824 - paged results control is not working in some cases when we have a subsuffix.

Bug Description: When a simple paged result search is run against
multiple backends, subsuffix backends were not correctly set to the
next loop when crossing the backend boundary.

Fix Description: This patch changes the logic to detect the page
search finished and set the next backend correctly to the paged-
results handle.  Also, when reusing the paged result handle in
pagedresults_parse_control_value, increment the refcnt.

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

Reviewed by mreynolds@redhat.com (Thank you, Mark!!)
Ticket 47824 - CI test: add test case for ticket 47824

Bug Description: Simple Paged Results search fails to return engries
under the sub suffixes if the search goes across the backend boundaries.

Test Description: Add 3 sub suffixes under the primary suffix.
Run Simple Paged Results search with the page size 4.
Compare the returned entry count with the created data count in assert.

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

Reviewed by mreynolds@redhat.com (Thank you, Mark!!)
Ticket 47790 - Integer config attributes accept invalid
 values at server startup

Bug Description:  Manually editing the dse.ldif allows invalid values to be set
                  for some configuration attributes

Fix Description:  Check integer config values to make sure they are numbers.

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

Jenkins: passed

Reviewed by: nhosoi(Thanks!)
Ticket #47664 - Page control does not work if effective rights control is specified

Bug Description: If an effective rights control and a simple paged
results control were specified in one search request, the simple
paged results control was ignored.

Fix Description: In the search iteration code, handling the simple
paged results was not fully implemented.  This patch adds it.

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

Reviewed by mreynolds@redhat.com (Thank you, Mark!!)
Ticket 47664 - CI test: add test case for ticket 47664

Bug Description: Passing Simple Paged Results control and Get Effective
Rights control at the same time, the search ignores paging.

Test Description: Import 20 entries.
Run Simple Paged Results + Get Effective Rights search with the page size 4.
If it returns 4 entries with Get Effective Rights attributes / page AND
the page count is 5, it passes the test.

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

Reviewed by mreynolds@redhat.com (Thank you, Mark!!)
Ticket 47812 - logconv.pl missing -U option from usage

Original patch submitted by: Marko Myllynen <myllynen@redhat.com>

Description: The usage ouput was missing the "U" option

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

Reviewed by: mreynolds
Ticket #47714 - [RFE] Update lastLoginTime also in Account Policy plugin if account lockout is based on passwordExpirationTime.

Description: Introducing a new attribute alwaysRecordLoginAttr to
Account Policy config entry (cn=config,cn=Account Policy Plugin,
cn=plugins,cn=config) to distinguish an attribute for checking the
account's activity (e.g., passwordExpirationTime) and an attribute
to be updated at the successful login (e.g., lastLoginTime).

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

Reviewed by mreynolds@redhat.com (Thanks, Mark!!)
Ticket 47714 - CI test: add test case for ticket 47713

Description: [RFE] Update lastLoginTime also in Account Policy
plugin if account lockout is based on passwordExpirationTime.

Test Description:
1) Check this change has no inpact to the existing functionality.
1-1. Set account policy config without the new attr alwaysRecordLoginAttr
1-2. Bind as a test user
1-3. Bind as the test user again and check the lastLoginTime is updated
1-4. Waint longer than the accountInactivityLimit time and bind as the
     test user, which should fail with CONSTANT_VIOLATION.
2) Verify a new config attr alwaysRecordLoginAttr
2-1. Set account policy config with the new attr alwaysRecordLoginAttr:
     lastLoginTime
     Note: bogus attr is set to stateattrname.
     altstateattrname type value is used for checking whether the account
     is idle or not.
2-2. Bind as a test user
2-3. Bind as the test user again and check the alwaysRecordLoginAttr:
     lastLoginTime is updated

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

Reviewded by mreynolds@redhat.com (Thanks, Mark!!)
Ticket 47714 - CI test: add test case for ticket 47714

Description: clean up the unused local method.
Ticket 47861 - Certain schema files are not replaced during upgrade

Bug Description:  Several schema files have been updated, but the upgrade
                  process does not replace all the schema files.

Fix Description:  Add the updated schema files to the schema upgrade script.

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

Reviewed by: lkrispenz(Thanks!)
Ticket 47819 - Fix memory leak

Description: Coverity resource leak 12720, also did a little code
             cleanup around slapi_ch_free() -> slapi_ch_free_string()

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

Reviewed by: rmeggins(Thanks!)
Ticket #346 - Fixing memory leaks

Description:
There was a leak in attrlist_replace/attrlist_replace_with_flags
when attr_replace failed to replace the attribute values.

commit 708a56b8d524131362e2d71b7fbc2eb257075e14 for Ticket #47834
tried to fix it, but it was wrong and introduced a double free.
This patch fixes it so that ...
If attr_replace fails and if to be replaced Slapi_Attr is newly
created in attrlist_replace//attrlist_replace_with_flags, the
Slapi_Attr is removed from the attrlist (alist) and Slapi_Attr
is freed.  Otherwise, values and Slapi_Attr are not freed since
Slapi_Attr is just pointing the attribute in the attrlist and
values are consumed in attr_replace.

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

Reviewed by rmeggins@redhat.com (Thank you, Rich!!)
Ticket #47579 - add dbmon.sh

Description: Porting dbmon.sh from
  https://github.com/richm/scripts/wiki/dbmon.sh
to the 389-ds-base package.

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

Porting was reviewed by the author rmeggins@redhat.com (Thank you, Rich!!)
Ticket #47579 - add dbmon.sh

Description: The link to report bugs should be the trac instead of bugzilla.
-Report bugs to http://bugzilla.redhat.com.
+Report bugs to https://fedorahosted.org/389/newticket.