credentials

Problem with this code to test the Credentials?

I wrote this method to test for credentials but I dunno why when it goes to the GetResponse method is actually goes and runs the webservice. I just want it to test if the credentials for that web service are correct or not. private bool TestCredentials(string sURL, ref string sUsername, ref string sPassword) { bool ret...

ServiceBase Credentials

I have a window service that Inherits System.ServiceProcess.ServiceBase. While running in debug mode (havent tested compiled), the thread does not see the current user credentials. I need the credentials so I can set up the WebProxy and I would prefer to use the account that service is running under instead of passing the user and pwd ...

WCF - Transport Authentication - Get Credentials of Authenticated User

Hi, I have a NetTcpBinding with SecurityMode.TransportWithMessageCredential. Transport.ClientCredentialType is set to MessageCredentialType.Windows, but I'm considering MessageCredentialType.UserName. Then there's a class DataStoreServerProxy for fetching database data which implements IDataStoreContract. It contains methods such as ...

Manage remote service using alternate credentials

--Update-- I have to admit that I was sceptical it would work... but below is the code. I had to make a minor change to the code you suggested. Whenever I tried IPC$ it would return a 53 result code, even though I'm sure the share exists. So at the suggestion of another website I removed the share and just the computer name and this ...

How to properly deal with encrypted Word and Excel documents for viewing in a UIWebView?

I have a UIWebView that works fine for viewing an unencrypted Word or Excel document stored in the app's local Documents folder. I can use either: [webView loadData:documentData MIMEType:mimeType textEncodingName:textEncoding baseURL:baseDocumentURL]; Or: [webView loadRequest:[NSURLRequest requestWithURL:baseDocumentURL]]; In bot...

Use NuSoap basic auth webservice in C#

He there, I have a basic webservice which works in C# if i remove the Basic auth option. But when i add the Basic auth meganism and set NetworkCredentials in C# I get this wierd error. C# does authenticate correctly but after that something goed wrong. Service s = new Service(); s.Credentials = new Credentials("jan", "password"); Str...

Using sharepoint to pass credentials to other sites

Hi, being completely new to the Sharepoint scene, I was wondering what basic solutions are to the problem I'm facing. I have 2 different webapplications, which are both accessed by my clients by different logins. I want to simplify things and let them just log in on a Sharepoint application, so they have 2 links on their portal to t...

Default proxy credentials with native c++

In .NET you have the handy System.Net.CredentialCache.DefaultCredentials to set all your needed proxy data to the default values of the system. How can i do something similar in native C++? I need the proxy address, username and password. Our project uses MFC and cURL ...

How do I access Windows credentials?

(Control Panel\All Control Panel Items\Credential Manager) How would I access Windows credentials from a Visual Basic form? This is not for hacking purposes, simply knowledge and so I can recover my OWN passwords. :) Thanks! ...

Using ASP.net credentials to log in from a WinForms application

Hello, We have an ASP.net application but some screens are deemed too slow to use by our users. As a result, we are trying to provide a WinForms-based alternative to those data-input centric screens so we can use richer controls like Grids with immediate screen updates and feedback for the user. Ideally, I would like the users to login...

blackberry exchange credentials

is there a way for my custom blackberry app to retrieve the user's exchange credentials? Presumably, the blackberry has been setup to point to Exchange and I'd like to be able to use those same credentials for our app that is behind an NTLM based set of web services. I can build my own custom login screen, but was thinking it'd be clea...

How to call with credentials a .NET Webservice from Android?

I´m having trouble using .NET Web Services with the Android Platform because the web service i want to consume is locked behind Windows (NTLM) authentication. How can i to use NTLM authentication with an HttpClient request in a android application? Regards ...

Login to Sharepoint from ASP.NET site

I have a preexisting asp.net site that uses forms authentication. I am setting up a Sharepoint 2007 site on the same box. I would like to use my existing asp.net site authentication and once logged in provide a link to the sharepoint site that has the user auto-logged in. It doesn't matter to me if Windows or Forms auth is used. I tr...

How to specify user credentials for a click-once application?

For a regular .exe file i can always right click and select "run as..". How can i run a Click-Once application under different credentials in a similar way? I am talking about the application itself, not the installer. ...

WCF using Transport always attempts to use HTTPS when I don't want it to.

I keep getting the following error "Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]." This started because I went to Basic Transport Authentication by adding: <webHttpBinding> <binding name="secureBasic"> <security mode="Transpo...

How to securely store database credentials for Windows application?

I have a python application designed to run as a service on Linux, and I've been asked to install it on a Windows XP box in an office where there are no Linux machines (for me, this makes it a bizarre and confusing place as I have virtually no experience developing for Windows). On Linux the application has its own user, and the applica...

Is it possible to programmatically backup/restore Windows domain/certificate credentials?

I've been trying to use the Windows Authentication low level credential API functions to backup/restore credentials. http://msdn.microsoft.com/en-us/library/aa374731%28VS.85%29.aspx#low_level_credentials_management_functions However, I've found that while I can use CredEnumerate to obtain every credential on the system, all the pass...

DB Schema of a Role Based Access Control

Hi, I'm currently developing a member administration for a local association here and I'm developing the database schema at the moment. I'd like to share it with you to improve it and give other an example of a Role Based Access Model (RBAC). I'd appreciate any constructive criticism especially about the relationships I used between the...

C# WebRequest returning 401

There is a web file within my intranet that my computer is authorized to read and write. I can open up IE or Firefox and view the file by typing int the url address. I need to write a C# desktop app that reads/writes to that file. Even though my computer has access, all my attempts so far result in 401, unauthorized access errors. The pr...

How to protect credentials during Flex ChannelSet.login?

It has just occurred to me that when my Flex application does a ChannelSet.login, it is essentially sending the username and password over the wire in an unencrypted form to the BlazeDS server. While I use the binary AMF protocol over an AMFChannel, it would take nothing for somebody to sniff these passwords. Most of my clients do not ...