Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 251861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:37:48+00:00 2026-05-11T21:37:48+00:00

http://support.microsoft.com/kb/892424 When the Smart card is required for interactive logon is set on Active

  • 0

http://support.microsoft.com/kb/892424

When the “Smart card is required for interactive logon” is set on Active Directory, it generates a random password. How do I utilize a smart card to authenticate a user over LDAP from a web application?

How do I know who the user is? Is there a way to access the cert? Can I get it from the session?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:37:48+00:00Added an answer on May 11, 2026 at 9:37 pm

    HTTPS and SSL mutual authentication should be used for this, because client already has at least corporate CA-signed certificate on its smart card stored.

    When mutual SSL authentication is used instead just server authentication, the client certificate is also verified by server, not only the server’s certificate by client (which is more common set-up for e.g. HTTPS enabled e-commerce sites). And you still get encrypted connection as a bonus.

    See e.g. Tomcat 6.0 SSL Configuration HOW-TO. The key point is to have the CA certificate in the trust-store and clientAuth attribute set to true.

    The login auth-method should be also specified to CLIENT-CERT in web.xml of the respective web-application:

    ...
    <login-config>
      <auth-method>CLIENT-CERT</auth-method>
      <realm-name>Foo * Bar * Realm</realm-name>
    </login-config>
    ...
    

    SubjectDN attribute from the client certificate is used to identify the user. LDAP (or ActiveDirectory) can be still used for authorization – e.g. by checking if user belongs to a group.

    It can be difficult to set it all on the first time. To get familiar with all the concepts I recommend following approach:

    • Use BASIC auth-method with user-names and passwords stored in a file
    • Use simple role-based authorization
    • Enable CLIENT-CERT auth-method + simple role-based authorization
    • Incorporate LDAP for checking roles
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 159k
  • Answers 159k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Remember ASP.NET is stateless. Any properties created are destroyed after… May 12, 2026 at 11:25 am
  • Editorial Team
    Editorial Team added an answer a1kmm's answer is good for specific application to URLs, but… May 12, 2026 at 11:25 am
  • Editorial Team
    Editorial Team added an answer public string Upload(HttpPostedFileBase FileData) {} is correct - the file… May 12, 2026 at 11:25 am

Related Questions

http://support.microsoft.com/kb/953102 We spent about 50 hours during Christmas holiday to identify this problem, causing
From http://support.microsoft.com/kb/317277 : If Windows XP restarts because of a serious error, the Windows
See http://support.microsoft.com/kb/312629/EN-US/ I am using reponse.direct in my app as well and I am
I've used a tutorial ( http://support.microsoft.com/kb/317535 ) to create a VB.NET Class that exports

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.