Skip to main content
This forum is closed to new posts and responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Switching User ID when password is wrong
Feedback Type: Question
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.3
Reproducible: Always

I am writing a standalone application using Java to talk to a Notes client.

The user id file and password are supplied by the user through the application and the application then connects to the Notes client. Sometimes they enter these incorrectly.

In the client I first create a session using a default ID file set within the notes.ini file for the client.

Session session = NotesFactory.createSession((String) null, (String) null, "defaultPassword");

Then switch the ID file using:

session.createRegistration().switchToID(userSuppliedIDFilename, userSuppliedPassword);

If the password is correct, this all works fine. If the password is wrong however, I get the following log message prompting for the correct password:

The ID file being used is: CN=Test Test/=Development
Enter password (press the Esc key to abort):

Then the application can't respond to this so it hangs.

Is there any way to stop the prompt. i.e. get the switchToID() method to throw an exception when the password is wrong so that the application can return an error message to the user?

Or is there a way for my application to send the Esc key back to the prompt so I can abort the process as indicated in the message coming back from Notes?

Or is there a better way to create a client session with user-entered ID file and password? The application doesn't have access to a Domino server which is why I'm using the client.

Thanks
Richard


Feedback number WEBB97AQ2R created by ~Zelda Bubjumily on 05/01/2013

Status: Open
Comments:

Switching User ID when password is ... (~Zelda Bubjumil... 1.May.13)
. . Why not (~Sean Eljumigon... 1.May.13)
. . . . Why not (~Zelda Bubjumil... 2.May.13)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS