API to register users in Notes?

Hi,I am aware that users must necessarily be registered in the Domino Administrator so that a user id file and mail file can be created. I was wondering if there was any API that Lotus provides so that user registrations can be done programatically. Can someone shed some light on this?

What I am trying to do is this. I am adding users to the Domino directory via LDAP. I am looking for some mechanism by which I will not need to open Domino Administrator and register these users manually. I want this to happen automatically (some sort of automatic provisioning setting on Domino, perhaps). If this is not available, then I wanted to know if there is some API available where I can do the registration programatically.

Thanks in advance.

regards,

Muneer

Subject: API to register users in Notes ?

Hi Muneer,

The Notes C API contains functions for registering new users (and servers). The API toolkit is free and is available from the IBM/Lotus web site:

(IBM Developer)

In order to work fully automatically, the program you write must have access to the appropriate certifier id file and must have access to the certifier’s (encoded) password, otherwise the program will attempt to prompt for the certifier password.

Here is an extract from the API documentation of the RegNewUser function:

This function registers a new workstation in Notes. It performs three functions, each of which can be selected separately by setting the appropriate flag in the REGFlags word: (1) Create and certify a user’s ID file; (2) Create a mail file on the user’s specified mail server; and (3) Add or modify the user’s person record in the Domino Directory on the registration server. It will open the Domino Directory on the specified registration server, verify write access to the book, and look for the EntryName specified. If the user is found, an error will be returned unless the caller has specified in the REGFlags word that the user entry may be modified. If the ID file is found, an error will be returned unless the caller has specified that it may be modified (overwritten).

Subject: RE: API to register users in Notes ?

Hi Tom,This looks like it will do the trick!

Thanks!

regards,

Muneer

Subject: will lscript class NotesRegistration help?

maybe it does what you’re looking for.

at least it’s easier than using capi…

Markus Seitz

markus.seitz@icodex.com