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

Sample code

Hello again,

This is an somewhat modified extract from our User Administration Tool, hope this will help.

We do have a demo version of our tool, but it is still in Beta... But please let me know if you need it, and I could send it to you.

Dim userReg As New NotesRegistration

'____________________________________________________________________
'registration defaults

userReg.Expiration= Now() + expDays
userReg.CertifierIDFile = "C:\cert.id"
userReg.IDType = ID_HIERARCHICAL
userReg.MinPasswordLength = 8
userReg.RegistrationServer = "Server1/Birgoth"
userReg.CreateMailDB = False
userReg.StoreIdInAddressbook = False
userReg.IsNorthAmerican = False

'_____________________________________________________________________
'All users, register new user(=ID file)

dim lastName as string
dim idfilePath as string
dim mServer as string
dim firstName as string
dim mInitial as string
dim certPwd as string
dim mFile as string
dim pwd as string
dim licenseType as string

lastName = "Larson"
firstName = "Liza"
mInitial = ""
idfilePath = "C:\llarson.id"
pwd = "xxyx"
mServer = "Server1/Birgoth"
mFile = "mail\llarson.nsf"
certPwd = "password"

licenseType = 176



If Not userReg.RegisterNewUser(lastName, idfilePath, mServer,_
firstName, mInitial, certPwd, "", "", mFile, "",pwd, licenseType) Then
RegisterIDFile = "Could not register user"
Exit Function
End If

'___________________________________________________________
'add to DD

If Not userReg.AddUserToAddressbook( idfilePath, fullName, lastName,pwd,_
firstName, mInitial, mServer, mFile, "", "", "") Then
RegisterIDFile = "Could not add user to Domino Directory"
Exit Function
End If

Regards, Marta


Feedback response number WEBB7KFJVT created by ~Vijay Reponegenobu on 10/15/2008

Register users with Lotusscript and... (~Vijay Reponege... 14.Oct.08)
. . Will investigate ... some questions... (~Delores Fezkil... 14.Oct.08)
. . . . Sample code (~Vijay Reponege... 15.Oct.08)
. . . . . . Thanks for additional information, ... (~Delores Fezkil... 28.Oct.08)
. . . . . . . . No problem (~Vijay Reponege... 28.Oct.08)
. . . . . . . . . . SPR# KHON7L2RW6 (~Delores Fezkil... 3.Nov.08)
. . . . . . . . . . . . OK, thanks for keeping me updated (~Vijay Reponege... 4.Nov.08)
. . . . . . . . . . . . Fix submitted (~Delores Fezkil... 7.Nov.08)
. . . . . . . . . . . . . . Thank you too! (~Vijay Reponege... 9.Nov.08)
. . . . Security log messages (~Vijay Reponege... 15.Oct.08)
. . Problem fixed? (~Anita Umagenet... 20.Jan.11)
. . . . We have the problem.. (~Justin Xangero... 20.Jun.13)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS