Remote server-side agent can't change a db size quota

I have a server-side agent that’s designed to change the size quota of a database on another server. Both servers are running 6.5.4 and the target server trusts the server running the agent via a reference to the server name in the “trusted servers” field on the target server’s NAB entry. In addition the source server, the agent signer, and the target server all have manager access to the target database whose quota is being modified.

When ran, the agent opens the target db on the remote server, reads the quota value, and seems to have Manager access to the database (according to property db.currentaccesslevel). However, when attempting to modify the quota value (via a call to db.sizequota=x) I get the error “4005: Notes error: You are not authorized to perform that operation”.

I’ve increased the agent signer’s authority to allow unrestricted operations on both the agent host server and the target server. I’ve also changed the agent properties to allow unrestricted operations but I still get the same error message.

The agent runs OK from a Notes client, and OK server-side as long as the target is not on a remote server.

None of the online documentation I’ve found that discusses remote agents mentions any restrictions on operations of this sort but I’m wondering whether it’s a limitation of the security protocol that’s implemented which means this sort of operation isn’t allowed.

Any ideas would be appreciated! :slight_smile:

Warm regards!

Phil Haynes

Subject: Remote server-side agent can’t change a db size quota

Just a guess, but, perhaps the remote server needs to be a DB admin on the server where the DB exists. Similar issue with webadmin administration (registration server must be DB admin on mail server) to set mail quotas.

Dave - IBM

Subject: It works! :slight_smile:

Hi Dave,

Thanks for your great suggestion - it works like a charm!!! :slight_smile:

Warm regards,

Phil Haynes

Subject: RE: Remote server-side agent can’t change a db size quota

I too have the exact problem.

In my case, there is an schedule agent runs on serverA and it has to change the mail file quota (SizeQuota) on serverB.

serverA is listed as trusted server for serverB, it has administrative access to the mailfile. Agent signer also has manager access to the mailfile and server.

Our clients are not ready to add the server as database administrator on the server document.

is there any workaround for this?

in the help file it says, SizeQuota property can only be set by a script that has administrator access to the server on which the database resides.

Its not mentioned as database administrator.

Please help me on this.

Subject: RE: Remote server-side agent can’t change a db size quota

Hi Dave,

Thanks for the suggestion. I’ll give it a try first thing in the morning (I’m at home now) and will let you know the results…

Cheers,

Phil

Subject: Remote server-side agent can’t change a db size quota

is there also a SizeWarning set on the db? Are you atempting to lower the quota or raise it? If you try to lower it and there is a SizeWarning set that is higher then the quota it will give you an ambiguous error. Check that out.