This method will compact the backend Access database used by the specified LDAP server instance.
IDL Definition
HRESULT CompactDatabase( [in] VARIANT lInstanceId);
Parameter
lInstanceId
The LDAP server instance identifier.
Return Values
a standard HRESULT value
Remarks
This procedure is only applicable to LDAP servers that use Access as an underlying database.
WARNING: The given LDAP server instance will be stopped and restarted during the compaction process. This is necessary in order for the Access DB driver to obtain an exclusive lock on the database as mandated by its compaction procedure.
The CompactDatabase method will fail if another LDAP instance, aside from the given one, is also using the same Access Database. Such instances must be stopped in order for the compact operation to succeed.