Function : Database

NSFDbCopyACL - Copy a database's ACL to another database.
----------------------------------------------------------------------------------------------------------

#include <nsfdb.h>

STATUS LNPUBLIC NSFDbCopyACL(
DBHANDLE hSrcDB,
DBHANDLE hDstDB);

Description :

This function copies a database's Access Control List (ACL) to another database. The other database need not be a replica or even a copy of the original database. If the source or destination database is remotely located, the username associated with the workstation or server executing this function must have MANAGER access in the destination database's ACL in order to complete this operation. As of Notes/Domino 6, Extended Access information is copied if Extended Access is enabled on the database.

Parameters :

Sample Usage :


  else
  {
      /* Copy/replica, use src CutoffInterval to calc dst Cutoff */
      OSCurrentTIMEDATE(&replica_info_dst.Cutoff);
      if (TimeDateAdjust(&replica_info_dst.Cutoff, 0, 0, 0,
                   -((int) replica_info_src.CutoffInterval), 0, 0))
          goto Exit;

      if (error_status = NSFDbCopy(db_handle_src, db_handle_dst,
                                   copy_cutoff_td, NOTE_CLASS_ALL))
          goto Exit;
      if (error_status = NSFDbCopyACL(db_handle_src,
                                       db_handle_dst))
          goto Exit;
  }


See Also :

NSFDbCopy
----------------------------------------------------------------------------------------------------------