Search this blog...

9/7/12

How to delete all "Change HTTP Password in Domino Directory" request and log documents?


How to delete all "Change HTTP Password in Domino Directory" request and log documents?

Create a LotusScript agent in the admin4.nsf database.

The Adminp requests are specified by a code in the ProxyAction field : "127" =  "Change HTTP Password in Domino Directory"

Backup all data before running any agents.
This is sample code and is not supported by IBM.

This technote lists the code for each Adminp request.

Title: AdminP proxy action numeric codes
Doc #: 1178240
URL: http://www.ibm.com/support/docview.wss?uid=swg21178240

Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Dim doc2 As NotesDocument
Set db = session.CurrentDatabase
Set dc = db.AllDocuments
Set doc = dc.GetFirstDocument()
While Not(doc Is Nothing)
MessageBox doc.ProxyAction(0)
Set doc2 = dc.GetNextDocument(doc)
If doc.ProxyAction(0)="133" Then
MessageBox "Delete Document"
Call doc.RemovePermanently(True)
End If
Set doc = doc2
Wend
End Sub

No comments:

Post a Comment