With this LotusScript code, you can sign a Notes/Domino database without using Lotus Notes Administrator. Just create an agent with the LotusScript code snippet below and then run it. Right click on Run in your client, or SignAgent?openagent through your Web browser to sign the Notes/Domino database.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Sub Initialize Dim session As New Notessession Dim db As Notesdatabase Set db = session.Currentdatabase Call db.sign(DBSIGN_DOC_ALL) End Sub
MEMBER FEEDBACK TO THIS TIP
But with whose ID will it sign? If a normal user has logged in, it will sign with this ID. The normal user might not have the access to run restricted or unrestricted LotusScript agents. Ideally, it should sign with the Admin ID. Is there a way one can specify the ID where the entire database can be signed using LotusScript?
The agent will sign the database with the ID of the user who signed the agent. Then, you might ask "if the agent is signing with the Admin ID, what's the point?" Admin can use the Lotus Administrator to do it , but what about the developers who don't have access?
This agent can be used for the following scenarios:
- Use the Run on Behalf of property of the agent and select the Admin ID; the database will be signed with the ID selected. Anyone can run the agent, as it will sign with the Admin ID.
- This agent can be used for a feature that is used by developers or a client where the user can select single or multiple databases, and run the agent from a single button click. This will sign all the databases with the Admin ID, as the agent is signed with admin or by using the method in Point 1 above.
Do you have comments on this tip? Let us know.
Related information from SearchDomino.com:
This tip was submitted to the SearchDomino.com tip library by member Hemang Kapadia. Please let others know how useful it is via the rating scale at the end of the tip. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.