I'm working on a project to change user AD password by using a token. How can I find a user DN with only the user EMAIL?
In other words I have the user e-mail and I want to get the user DN.
$result = ldap_mod_replace($ds, $UserDN , $userdata);
$ds = connection to ldap "Already done"
$userdata = User new password"Already done"
$UserDN = That's what I have the problem.
Really thank you guys. :)