Active Directory [closed]

2019-06-24 14:41发布

How can i get the password for a user from Active Directory

7条回答
The star\"
2楼-- · 2019-06-24 14:55

Simple, you cannot. Passwords are not stored in nearly all authentication systems. Instead, they are converted into a 'hash' that is stored instead. Then, when you want to prove that you know the password, you convert the password you type into a hash using the same algorithm and compare that to the stored data.

Some use public/private keys to perform the hashing, some use alternative algorithms. None of them can "un-convert" the hash back into the original password.

查看更多
姐就是有狂的资本
3楼-- · 2019-06-24 14:57

Administrators do not have access to users passwords, only the ability to change them.

查看更多
Juvenile、少年°
4楼-- · 2019-06-24 14:59

You cannot get the password stored in Active Directory because they are stored as hashes. The only time you can learn of a password in Active Directory is when it is being set, but for that you need a password filter in place, and to put the paassword filter in place, you have to be an admin on a Domain Controller.

You can also not change a user's password because changing a password requires that you know the user's existing password. You can only reset a user's password, but for that you need to have Reset Password rights on the user account.

Resetting a user's password is an administrative task that is often delegated to junior administrators, and in most cases delegated admins can reset user account passwords.

If interested, there is a good discussion about the difference between changing an Active Directory user account password and resetting an Active Directory user account password here:

http://www.activedirsec.org/t43140076/what-is-the-difference-between-the-change-password-and-reset/

查看更多
smile是对你的礼貌
5楼-- · 2019-06-24 15:09

You'll need administrative access to a domain controller to get the hashes. You'll then need to use a hash cracker, such as Cain, to see if you can recover the passwords. If the password is not simple, this could take days or years.

Note that this is illegal in most situations, and it's usual to reset passwords rather than recover them.

查看更多
做自己的国王
6楼-- · 2019-06-24 15:13

I doubt very much if this is possible considering it is a password. But you might have better luck asking this in ServerFault?

I'm not sure if you will be able to get access, but once its out of beta you'll be able to register.

查看更多
趁早两清
7楼-- · 2019-06-24 15:18

Programmatically through supported API's you can't read the passwords from Active Directory but you can get to the passwords at the point in time when they are set by implementing a Password Filter.

查看更多
登录 后发表回答