English 中文(简体)
How to get Lotus Notes Password (on local machine) using "Interop.Domino.dll" (C#)?
原标题:

I am making one application where i am reading mails from Lotus Notes. I have made this application interdependent of Domino Server.

But in this case.If user s Lotus Notes s is configured with Domino server.It shows pop-up for password.

I don t want to show pop-up.And don t want to add text box into UI.

Is there anyway to get NSF Password Programaticaly? Using Domino.dll.

最佳回答

I don t think there is a API function to retrieve a Domino password.

There is an API function to RESET the password, but the old password is a parameter.

Shaun

问题回答

Of course you can t do this. The password is not stored anywhere, but is used to gain access to the RSA private key which is what actually does the authentication. It sounds as though you are going to the mail file on the server, though..."If user s Lotus Notes s is configured with Domino server...". If there is a local replica of the mail file that is not encrypted you should not need to authenticate to access it. If it is encrypted, or you need to access the server, then the user absolutely will need to authenticate.

If this is an application which runs on a client workstation, and the user has the Notes client running on that workstation, it is possible to "share" the password, so that your application does not need to prompt the user. This is an option, enabled from the Notes client. In R8, this option is under File > Security > User Security, and then under the Security Basics tab, there is a check box labeled "Don t prompt for a password from other Notes based programs." (In R7 and earlier, its under a similar menu item, I think labeled just "User ID.")

From the Help path: IBM Domino Designer Basic User Guide and Reference > LotusScript/COM/OLE Classes > LotusScript Classes Coding Guidelines > Accessing the Domino Objects through COM

Call session.InitializeUsingNotesUserName("name", "passwordOptional")

This is after you set session to a newly-created Lotus.NotesSession object.

(You cannot get the user password from the Domino API after it s been used to unlock the ID. You can, however, get the password from the user and then submit it to Domino through the Interop.)





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签