single sign on for windows applications or windows services

P

Pouria

Hi,

Does anyone have any experience with single sign on for .Net windows
applications or windows services? So the idea is to be able to use the
user credentials from logging into windows to authenticate the user
for using a windows application or windows service. I have found some
information on the web on how this can be done for a web application
(which relies on internet explorer for the most part) but nothing for
windows applications or services. Can someone point me in the right
direction?

Best regards,
Pouria
 
N

Nicholas Paldino [.NET/C# MVP]

Pouria,

For windows applications, you already have a single sign on, and that's
handled by the os.

For services, it is the same thing, it's just that the service runs
under the credentials provided in the configuration for the service.

What is it that you are trying to do?
 
P

Pouria

Hi Nicholas,

I think my wording was misleading. Let me try to explain what I want
to do. Given a user name I want my windows application or service to
be able to inquire (via LDAP for example) whether the user has been
authenticated on the network. So the user may have logged into the
network on their PC and my windows application or service running on a
different PC (bug also on the same network which is behind a firewall)
to be able to tell given the user name, whether the user has logged
onto the network.

Thanks,
Pouria

Pouria,

For windows applications, you already have a single sign on, and that's
handled by the os.

For services, it is the same thing, it's just that the service runs
under the credentials provided in the configuration for the service.

What is it that you are trying to do?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Does anyone have any experience with single sign on for .Net windows
applications or windows services? So the idea is to be able to use the
user credentials from logging into windows to authenticate the user
for using a windows application or windows service. I have found some
information on the web on how this can be done for a web application
(which relies on internet explorer for the most part) but nothing for
windows applications or services. Can someone point me in the right
direction?
Best regards,
Pouria
 
G

Guest

Pouria,
It doesn't work the way you describe, given a particular user name, unless
there is some ActiveDirectory property in your system that says "this user is
currently logged onto the network".

When a user logs into their PC , they are authenticated onto the domain. You
can then check the System.Security.Principal IIdentity /
WindowsIdentity.GetCurrent methods to get the user's WindowsIdentity object
(assuming it is an authenticated domain user).

In other words, a user is either authenticated, or they are not.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




Pouria said:
Hi Nicholas,

I think my wording was misleading. Let me try to explain what I want
to do. Given a user name I want my windows application or service to
be able to inquire (via LDAP for example) whether the user has been
authenticated on the network. So the user may have logged into the
network on their PC and my windows application or service running on a
different PC (bug also on the same network which is behind a firewall)
to be able to tell given the user name, whether the user has logged
onto the network.

Thanks,
Pouria

Pouria,

For windows applications, you already have a single sign on, and that's
handled by the os.

For services, it is the same thing, it's just that the service runs
under the credentials provided in the configuration for the service.

What is it that you are trying to do?

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Does anyone have any experience with single sign on for .Net windows
applications or windows services? So the idea is to be able to use the
user credentials from logging into windows to authenticate the user
for using a windows application or windows service. I have found some
information on the web on how this can be done for a web application
(which relies on internet explorer for the most part) but nothing for
windows applications or services. Can someone point me in the right
direction?
Best regards,
Pouria
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top