LotusScript: MoveReplica

Hi,

If you are a database administrator as listed in the security tab of the server document, you are able to issue a move command on a database using the admin client. This properly creates the check access and non-cluster move replica adminp entries to perform the action.

However, when trying to perform this task using the same LotusScript command results in an access denied error (Notes Error: You are not authorized to perform that operation). It seems this LotusScript command needs to perform a database open to potentially gather some information in order to fulfill it. So if you do not have database access or full access admin, you can not run the code. Using the admin client as the same user on the same server and same database, there are no errors.

noteID$ = notesAdministrationProcess .MoveReplica( sourceserver$ , sourcedbfile$ [ , destserver$ ] [ , destdbfile$ ] [ , copyacl ] [ , createftindex ] )

Our code is in an agent run from an action in a view of the Domain Catalog database. It gets the destination server from the user, and the server and path from the selected entry/entries in the domain catalog.

Set adminp = session.CreateAdministrationProcess(doc.Server(0))
noteID = adminp.MoveReplica(doc.Server(0), doc.Pathname(0), destServer)

Am I missing something? Or are we not going to be able to delegate use of this action in the database catalog to someone without full access admin rights? This will force us to use the admin client and manually connect to each server and find each database one by one, instead of bulk processing multiple servers/databases in a loop from the catalog.

Thanks,

Nick

Subject: Trusted server

I believe if you have an agent running on one server (ServerA), and, in lotusscript, you are trying to a handle to a database on another server (Server B), ServerA needs to be listed as a Trusted Server in ServerB’s server document.