NotesSession.Initialize() on the server

Sorry for maybe a newbie question…

I initialize NotesSession object using Notes COM API in my application and run it on the server where Lotus client is not installed:

Dim session as New NotesSession

Dim database as NotesDatabase

session.Initialize()

database = session.GetDatabase(“”,“mail\user1”, False)

Would ECL and ACL be treated normally for local server account (session.EffectiveUserName in that case is local server name) on database mail\user1?

Cause I can’t run restricted agents from such an application on database like this, when I initialize it under local server account (there is an error message logged into console about signer not having Access External Programs ECL right). If I run it on the client and initialize NotesSession under some user account, everything works fine.

Restricted agent is signed under other Domino server account, but my local server contains all ECL entries for that account.

Any ideas about that would be highly appreciated.

TIA

Edmundas