Re: user Authentication through webservice

From: Manohar Kamath (mkamath_at_TAKETHISOUTkamath.com)
Date: 03/10/05


Date: Wed, 9 Mar 2005 20:47:32 -0600

You could just use integrated security for the web service, and pass the
default credentials from the client to the web service.

proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

where proxy is the proxy object to the web service.

-- 
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Buddy Ackerman" <buddy_nospam@buddyackerman.com> wrote in message
news:O7s4cJNJFHA.3420@tk2msftngp13.phx.gbl...
> I have a webservice based app that a company has purchased to use
> internally.  They want the authentication to integrate with their Active
> Directory.  Is there anyway that the client portion of the application
> (which is a .NET WinForms app) can send some information about the logged
in
> user so that I could athenticate that user before accessing the database?
> The database will not have individual user accounts  but will authenticate
> using a table in the database.  The reason that I need this is so that the
> company can push out the client app to it's users using Zenworks.  So, the
> install must get the user data from the Active directory.  Therefore I
need
> to be able to use whatever information he can get from the AD and use it
get
> the same info from the AD from the webserver code.  One thing I was
thinking
> of using was the AD object ID (a guid) but I don't know how I would pass
> that value to the DirectorySearcher's filter property and I don't know if
> that's a property that the ZenWorks install can grab anyway.
>
> So, to sum up the client app polls a webservice to get some data, I need
to
> be able to get some user information (gleaned from the AD) from the client
> and authenticate the user, then connect to the database and retrieve teh
> requested data.
>
> Any ideas?
>
>
> Thanks.
>
>


Relevant Pages

  • Re: WebServices and Datasets
    ... And if I call the GetChanges Method on the dataset that only the ... be shown in the dataset and to pass that to the web service, ... "Now to make sure the remote database is updated with changes should I ... client a change as occurred unless the client is constantly polling it. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: WebServices and Datasets
    ... > be shown in the dataset and to pass that to the web service, ... > well ther GetChanges method creates a new dataset object with only rows ... > "Now to make sure the remote database is updated with changes should I ... > client a change as occurred unless the client is constantly polling it. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: I need an advice...
    ... there are a few people working on it and it has to run in intranet. ... just need to store some data in a database which is on a server and they ... need to access this database from some other computers, with client ... Web service? ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Implementing a common SOAP Header across multiple Web Service Pages
    ... to set a client up to reference multiple Web ... the Web Service site would ... Your point about leaving the ASMX page as lean as possible and acting just ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Implementing a common SOAP Header across multiple Web Service Pages
    ... between my Web Service application and the client. ... public string SID; ... Web Service page, rather than to a dozen or so separate Web Service pages ... You can easily create a .ASMX file ...
    (microsoft.public.dotnet.framework.webservices)

Loading