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 8361723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:45:42+00:00 2026-06-09T11:45:42+00:00

I need to reset a user password. to do so, I use the following

  • 0

I need to reset a user password. to do so, I use the following code:

DirectoryEntry de = ..
de.AuthenticationType = AuthenticationType.Secure
de.Password = txtPassword.text
de.CommitChanges()

When i run the code – nothing happens. The user password does not change, and no exception is thrown.

if i use the following method:

de.Invoke("SetPassword", .. );

when i run the code, I get a message that says: Please insert smartcard …

I have admin privilages over the user account.
The user does not have UAV set for smart card.

Any ideas ?

  • 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-06-09T11:45:43+00:00Added an answer on June 9, 2026 at 11:45 am

    The Password property of the DirectoryEntry class isn’t what you think it is. You’re not changing the user’s password, you’re changing the password you’re using to access further information from the DirectoryEntry object.

    From the MSDN documentation:

    You can set the Username and Password properties to specify alternate
    credentials with which to access the information in Active Directory
    Domain Services. Any other DirectoryEntry objects retrieved from this
    instance (for example, through Children) are automatically created
    with the same alternate credentials.

    With your second method, if you’re being asked to insert a smartcard I doubt that has anything to do with the user you’re modifying – it’s more likely it’s asking for your smartcard. If you’re not set up to use smartcards either, then I’m really not sure why it’s asking you for one at all.

    Take a look at this related question and see if the answers there help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following a question I just asked, what is the need for a reset.css to
I need to send emails from my web application (on account creation, password reset,
What PAM call do I have to make to reset a user's password? I
I want to generate a password reset token for a User model that I
I need to provide functionality to reset a users password on our asp.net web
I am trying to allow the user to reset their password using Devise's recoverable
I need secure Restfull services in the provider. I want that the user must
I need to reset a root password for one of my mysqld processes. I
I need to reset a MySQL Field value automatically at midnight. It is a
Basically I need to reset Identity Increment for all tables to its original. Here

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.