@NotesIDFileNewWorkstation
Syntax
@NotesIDFileNewWorkstation(RetCTXHandle;IDTYPE;RegServer;OrgUnit;
LastName;FirstName;MidInitial;Password;
IDFileName;Location;Comment;
MAILSYSTEM;MailServerName;MailFileName;
ForwardAdress;FLAGS;MinPasswordLen;ErrorText);
Description
Creates a new Notes ID.
Optionally, an entry can also be created in the Name and Address Book, and a mail file can be created for the new user.
The process is controlled primarily by FN IDTYPE, FN MAILSYSTEM and FN FLAGS.
All other parameters are largely optional TEXT parameters and can be specified as "".
Exceptions are RetCTXHandle and FN MinPasswordLen.
FN IDTYPE
KFM_IDFILE_TYPE_FLAT 0 /* Flat name space (V2 compatible) */
KFM_IDFILE_TYPE_STD 1 /* Standard (user/server hierarchical) */
KFM_IDFILE_TYPE_DERIVED 4 /* Derived from certifer context. */
FN MAILSYSTEM
MAILSYSTEM_NOTES 0 /* Notes mail user */
MAILSYSTEM_CCMAIL 1 /* CC:mail user */
MAILSYSTEM_VIMMAIL 2 /* VIM comatible mail user */
MAILSYSTEM_NONE 99 /* no mail system */
FN FLAGS
fREGCreateIDFileNow 0x0001 /* set to create the ID-file */
fREGUSARequested 0x0002 /* set if an US or Canadian ID should be created */
fREGCreateMailFileNow 0x0004 /* set if the mail file should be created */
fREGCreateAddrBookEntry 0x0008 /* set if N&A entry should be created or modified */
fREGOkayToModifyID 0x0010 /* set to overwrite existing ID-file */
fREGOkayToModifyAddrbook 0x0020 /* set to modify existing N&A entry */
fREGSaveIDInFile 0x0040 /* set to create an ID-file on the harddisc */
fREGCreateLimitedClient 0x0080 /* set to create a Lotus Mail user */
fREGCreateDesktopClient 0x0100 /* set to create a Lotus Notes Desktop user */
fREGSaveIDInAddrBook 0x0200 /* set to attach the ID to the N&A entry */
fREGCreateMailFileUsingAdminp 0x0800 /* set to use admin process to create mail-DB */
fREGCommonPW 0x1000 /* set to use with NT User Manager extension dll */
TEXT ERRORTEXT (return value)
Path name of the file for which an error occurred during access.
@Return-Wert:
If the @Function was executed successfully, 1 is returned; otherwise @ERROR.
Example:
RetECPW:=@NotesIDFileEncodePassword("Cert");
ExpTD1:=[10.10.2010 10:10:10];
CertifierPath:="D:\\TMP\\IDFILES\\Cert.ID";
RetCTXHandle:=@NotesIDFileOpenCertifierCtx(CertifierPath;RetECPW;"WU-ENT-BER-50/WHATSUP/DE";ExpTD1;RETTEXT5;RETNUMBERHIERAR6;RETNUMBERFILEV7);
IDType:=4;
RegServer:="";
OrgUnit:="";
LastName:="Nachname";
FirstName:="Vorname";
MidInitial:="";
Password:="NewPassword";/*Password for neue ID*/
IDFileName:="D:\\TMP\\IDFILES\\NewUser.ID";
Location:="";
Comment:="";
MailSystem:=0;
MailServerName:="";
MailFileName:="";
ForwardAdress:="";
Flags:=121;
MinPasswordLen:=0;
RetBool:=@NotesIDFileNewWorkstation(RetCTXHandle;IDType;RegServer;OrgUnit;LastName;FirstName;MidInitial;
Password;IDFileName;Location;Comment;MailSystem;MailServerName;MailFileName;ForwardAdress;Flags;MinPasswordLen;
ErrorText);
@LogReport(RetBool);
@LogReport(ErrorText);
RetCTXHandle:=@NotesIDFileCloseCertifierCtx(RetCTXHandle);
Note : This text was machine-translated and may contain inaccuracies.
