We help IT Professionals succeed at work.

Compair password in ActiveDirectory

239 Views
Last Modified: 2014-08-18
Hey

I have a TXT file contaning users and passwords.

For example:
Trudy;MyPassword1
Bob:MyPassword2

I would like to compair an users password in ActiveDirectory and the password in file. (match or not)

Is it possible (compair hash to the passwords in the file)

Thanks in advance

Mike
Comment
Watch Question

Commented:
Hey,

I really hope this isn't possible in any domain environment. You cannot extract password from AD as these are assigned to the user and this information can never be given to anyone else except the user itself. So no, it is not possible to do this.

Why would you even want to do this?? To check and see if a guest account still has a correct password?
CERTIFIED EXPERT

Commented:
You can't extract password from Active Directory to compare.

Passwords in AD are stored in hashes , and there is no method to extract them to friendly name

More is here
 https://www.myotherpcisacloud.com/post/2013/11/06/More-Windows-and-AD-Cryptography-Mumbo-Jumbo.aspx

Thanks,

-Prashant Girennavar.
CERTIFIED EXPERT
Top Expert 2014

Commented:
Well, you actually can crack the passwords if you have access to the files (the link above describes this),  You can access the files easily if you are a domain admin.  I wouldn't provide any guidance on cracking all the passwords, but if you go through all that you can end up with a list of usernames and passwords, which you could then compare to your list.  But no, there is no "reveal password" function built in to AD.

Commented:
Just my 2 cents but even if it would be possible (there must be some NSA guys listening in right??) would you ever in your right mind suggest an admin to do something like this?? I'm not quite sure about privacy regulations in the US but if you try to pull this of in the EU and the user finds out you will have one massive issue on your hands..

I for one would never try to go that route..
CERTIFIED EXPERT
Top Expert 2014

Commented:
No, I generally wouldn't recommend that an admin do this.  If there's any help for it, one user (whether an admin or not) should never know the password of another user.  The only semi-valid reason I'm aware of is a password-strength audit.
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.