Addlogin, Addlogin 12, Metho – Kofax DM API User Manual

Page 148

Advertising
background image

128 C

HAPTER

4

AddLogin

AddLogin

Use this method to set the logon information that gets passed to the
DM Server. The DM Server authenticates the logon information when
the

Execute

() method is called.

Syntax

PCDLogin.AddLogin( intNetworkType, _

strUnitName, _

strUserName, _

strPassword )

Parameters

Usage

Before you do a call to

AddLogin

, you need to get the logon libraries

available on the DM Server. (See

PCDGetLoginLibs

.)

Example

The following is a simple example that uses a user name with an
Attaché password.

.

.

.

'Available Logon types for the DM Server,

intNetworkType

The network type of the network alias. Valid
values are:

Library Logon (No Network) 0

NetWare Bindery 1

NetWare NDS 2

Microsoft Network 8

strUnitName

The DM library name, NetWare server
name, NDS tree name, or Windows domain,
workgroup, or server name.

strUserName

The user name for the specified unit.

strPassword

The password for the specified user.

Advertising