Password Validation in Domino.NotesSession Automation Class

Hi,We have a driver for our VB Application which interacts with Lotus Notes to acces the Database to have full access with the Address Book.

We are acing a problem while creating a session with Lotus Notus using Domino.NotesSession class by providing the password with Initialize method. This method does not throw any error when “empty string” is suplied as password although Lotus Notes is configured with Password. It accepts both valid password and “empty string” and throws error if invalid password is supplied. But we need also to reject if “empty string” is supplied.

  1. Is there any way to achieve the same?

  2. Is there any method to check whether Password is configured in Lotus Notes or not?

Below is the code for your refrence:

Private Function ExecConnectionTest()

Dim session As New Domino.NotesSession

On Error GoTo Herr

session.Initialize EditPassword.text

Herr:

MsgBox “Invalid Password”

End Function