Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 28th, 2007, 09:30 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default Getting a Handle on Windows Login with AD

Hello Everyone,
   I have had a project set on my desk that I am not quite sure how I am going to accomplish. Essentially what I have been asked to do is, more or less, create a Smartcard authentication system where a User would type their username and password to log into windows as normal, however, along with that information that is getting sent to AD I would also need to send a PKI that is stored on USB drive or Smartcard.

I can use P/Invoke to get a handle that will let me grab the logon screen if I run a service in the background and, I am sure, after some research I could figure out how get the information that the user supplies in that window (My only expereience with this is writing information TO the window, not collecting data from)

So, my questions are:

1. How can I grab the PKI off the USB/Smartcard?
and
2. How would I go about transmitting the logon credentials along with the PKI to AD/Certificate Server?

I am, obviously, not looking for source code if someone could just tell me which APIs i need to take a look at to achieve this functionality, that would be much appreciated.

(I have looked into the CAPICOM assembly and while it will generate certificates for me, it does not provide near the level of functionality I am being required to work with.)

Any help would be much appreciated!

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================




Similar Threads
Thread Thread Starter Forum Replies Last Post
Add existing AD user to AD group via ADSI? thiazi Classic ASP Basics 0 August 24th, 2007 09:27 PM
Using windows login credentials aldwinenriquez ASP.NET 2.0 Professional 0 June 18th, 2006 08:34 PM
How to handle multiple IE windows ah_teck81 Classic ASP Professional 8 January 28th, 2005 08:26 PM
How to handle multiple IE windows ah_teck81 Classic ASP Basics 0 January 26th, 2005 05:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.