Providing library access, Providing library access 9, The logon process – Kofax DM API User Manual

Page 29

Advertising
background image

T

HE

DM A

RCHITECTURE

9

The Logon Process

If (opOK) Then

libname = Libs.GetAt(i)

opOK = opOK And Libs.ErrNumber = 0

If i = 0 Then LibCombo.Text = libname

LibCombo.AddItem libname

End If

Next

'List of Network logon types.

NetworkType.AddItem "Network Bindery"

NetworkType.AddItem "Network NDS"

NetworkType.AddItem "Microsoft Network"

NetworkType.Text = ""

End Sub


Private Sub cmdCancel_Click()

OK = False

Me.Hide

End Sub

Providing Library

Access

The next subroutine creates the

PCDLogin

object. It appends a network

alias to a document security token (DST). The following algorithm is
used:

1 Create the

PCDLogin

object.

2 Call the

AddLogin

method, which provides the logon mode,

logon location, user name, and password.

3 Call the

Execute

method.

4 Call the

GetDST

method.

Note: If there is no network alias, the user name and Attaché password are
used. Also, a second logon may be needed when file access occurs, such as
when the user logs on to the DM Server or when a valid user account on a
particular DM Server is required. A second logon may also be required if a
network alias to a DM Server is not set in Library maintenance.

The following example illustrates how you can provide Library logon
support for your users:

Private Sub cmdOK_Click()

Dim login As New PCDLogin

Dim fl As Object

Dim i As Long

Advertising