0

I'm using the Adldap library to import users into a local database. When I try to look at the result of the dd() request, I see that the AD does not send the password.

$users = Adldap::search()->users()->select(['cn', 'samaccountname', 'objectguid', 'mail', 'useraccountcontrol', 'password'])->limit(5)->get();
dd($users);

Somehow to get the password or password hash and is this possible?

4
  • do you mean the column? did you check that the column in your table is also password? maybe this is case sensitive? Have not used Adldap so I cant give insight Commented Dec 21, 2023 at 8:20
  • Did you check that the model hasn't a $hidden property which contains "password" ? Commented Dec 21, 2023 at 14:57
  • @Mr.Kenneth, Yes, the password field is from the active directory. Commented Dec 22, 2023 at 5:49
  • @Takachi, Adldap is not exactly a model in the database; it is an interface for working with the active directory. It does not have the usual fields characteristic of the model, and therefore there is no hidden array. Commented Dec 22, 2023 at 5:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.