Click here to Skip to main content
15,896,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Instalation Pin
Heath Stewart22-Jul-04 5:50
protectorHeath Stewart22-Jul-04 5:50 
GeneralRe: Instalation Pin
Heath Stewart22-Jul-04 5:40
protectorHeath Stewart22-Jul-04 5:40 
GeneralDCOM replacement in .NET Pin
Muhammad Ahmed21-Jul-04 23:17
Muhammad Ahmed21-Jul-04 23:17 
GeneralRe: DCOM replacement in .NET Pin
mav.northwind21-Jul-04 23:35
mav.northwind21-Jul-04 23:35 
GeneralRe: DCOM replacement in .NET Pin
Muhammad Ahmed22-Jul-04 1:09
Muhammad Ahmed22-Jul-04 1:09 
GeneralRe: DCOM replacement in .NET Pin
mav.northwind22-Jul-04 2:00
mav.northwind22-Jul-04 2:00 
General(OT?): webservice credentials Pin
Stephan Wright21-Jul-04 21:30
Stephan Wright21-Jul-04 21:30 
GeneralRe: (OT?): webservice credentials Pin
Heath Stewart22-Jul-04 4:56
protectorHeath Stewart22-Jul-04 4:56 
You can't get the Windows user password. What would be the point of security, then? You must either prompt for credentials (not uncommon; even Windows does this, though it uses DPAPI to store them for later use - don't consider rolling your own; and I'll tell you why in a second) or connect to a Web Service on the LAN (part of a Windows domain) using the default credential cache (see CredentialCache.DefaultCredentials, which includes the Windows identity for authentication like IE would when connecting on an intranet).

Besides, do not use BASIC authentication and send the domain passwords - of all passwords especially - in clear text to the unsecured web service! Eek! | :eek: If you must use BASIC authentication, connect to a web service entirely over SSL (using https://, if available). Otherwise, a simple sniffer will pick up domain passwords and next thing you know you're fired, your companies bankrupt, and your sys admin executes you.

If you want articles on DPAPI and how to use it (though you probably won't need it if you use CredentialCache.DefaultCredentials), read How To: Create a DPAPI Library[^].

You should also check out the Web Service Enhancements (WSE) 2.0 package from Microsoft at http://msdn.microsoft.com/webservices/building/wse[^]. This provides many, many options for industry-standard, SOAP-based (i.e., not tied to the wire protocol like HTTP authentication) authentication, encryption, digital signatures, and routing.

 

Microsoft MVP, Visual C#
My Articles
QuestionFetching Font information ? Pin
sachinkalse21-Jul-04 21:02
sachinkalse21-Jul-04 21:02 
AnswerRe: Fetching Font information ? Pin
Heath Stewart22-Jul-04 4:41
protectorHeath Stewart22-Jul-04 4:41 
GeneralRe: Fetching Font information ? Pin
sachinkalse22-Jul-04 14:50
sachinkalse22-Jul-04 14:50 
GeneralRe: Fetching Font information ? Pin
Heath Stewart23-Jul-04 5:27
protectorHeath Stewart23-Jul-04 5:27 
GeneralRe: Fetching Font information ? Pin
sachinkalse25-Jul-04 16:41
sachinkalse25-Jul-04 16:41 
GeneralRe: Fetching Font information ? Pin
Heath Stewart26-Jul-04 4:38
protectorHeath Stewart26-Jul-04 4:38 
GeneralRe: Fetching Font information ? Pin
sachinkalse26-Jul-04 15:27
sachinkalse26-Jul-04 15:27 
GeneralRe: Fetching Font information ? Pin
Heath Stewart26-Jul-04 17:56
protectorHeath Stewart26-Jul-04 17:56 
GeneralRe: Fetching Font information ? Pin
sachinkalse26-Jul-04 18:26
sachinkalse26-Jul-04 18:26 
GeneralRe: Fetching Font information ? Pin
Heath Stewart26-Jul-04 18:37
protectorHeath Stewart26-Jul-04 18:37 
Generalevaluating simple strings as boolean Pin
MonkeyBob21-Jul-04 20:09
MonkeyBob21-Jul-04 20:09 
GeneralRe: evaluating simple strings as boolean Pin
Angel Reyes21-Jul-04 20:20
Angel Reyes21-Jul-04 20:20 
GeneralRe: evaluating simple strings as boolean Pin
MonkeyBob21-Jul-04 20:57
MonkeyBob21-Jul-04 20:57 
GeneralRe: evaluating simple strings as boolean Pin
mav.northwind21-Jul-04 22:38
mav.northwind21-Jul-04 22:38 
GeneralRe: evaluating simple strings as boolean Pin
Heath Stewart22-Jul-04 4:20
protectorHeath Stewart22-Jul-04 4:20 
GeneralRe: evaluating simple strings as boolean Pin
Nick Parker22-Jul-04 4:13
protectorNick Parker22-Jul-04 4:13 
GeneralCut Image Pin
jzb21-Jul-04 18:50
jzb21-Jul-04 18:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.