Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: User recertification
Feedback Type: Problem
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.3
Reproducible: Not attempted

Hi,

I am trying to re3certify using lotus script, to those users whose certificate are going to expire in next 10 days.

Below is my code..

but this is not working, cant figure out what is failing
Please help.

Thanks in Advanced.

*********************************************
Sub Recert(Rdoc As NotesDocument,RCert As String, RCertPath As String, RCertPwd As String, UserName As String, Rdate As Integer)

On Error Goto errrecert

Dim RSession As New NotesSession
Dim RDb As NotesDatabase
Dim Rdoc1 As NotesDocument
Dim adminp As NotesAdministrationProcess
Dim notesID As Variant
Dim CertDate As New NotesDateTime( "" )

Call CertDate.SetNow
Call CertDate.AdjustYear(Rdate)


Set adminp = RSession.CreateAdministrationProcess("ACNE00/SERVER")

adminp.CertifierFile = RCertPath
adminp.CertifierPassword = RCertPwd
Set adminp.CertificateExpiration = CertDate

notesID = adminp.RecertifyUser(UserName)

Exit Sub


errrecert:
Msgbox " Errror in Recert : " + Cstr(Error)
End Sub


Feedback number WEBB9KBGK3 created by ~Rebecca Nonnistergon on 05/21/2014

Status: Open
Comments:

User recertification (~Rebecca Nonnis... 21.May.14)
. . Did you try debugging it (~Sven Nimgerost... 21.May.14)
. . . . Yes I have debug the code (~Rebecca Nonnis... 22.May.14)
. . . . . . Check admin4 (~Sven Nimgerost... 22.May.14)
. . . . adminp.CertificateExpiration (~Rebecca Nonnis... 22.May.14)
. . . . . . I tried your code and it works (~Sven Nimgerost... 22.May.14)
. . . . . . . . Error with date setting to certific... (~Rebecca Nonnis... 26.May.14)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS