drz49609 2016-06-10 13:19
浏览 169
已采纳

Active Directory密码重置

We're trying to implement a php-based active directory password reset for our local intranet. One of the major requirements is that it respects the password policies set up in AD.

I've got a solution working well for when a user wants to reset their password, and they know their old password - essentially just a remove/add batch.

However, I'm having trouble figuring out a solution for when a user has forgotten their password. Because we don't know the old password, we'd have to do an administrative reset, but that doesn't respect the password policy. Alternatively, we could administratively reset the password, and then immediately force the user change their password. Unfortunately, doing two password resets in a row would force us to have the 'password minimum age' requirement turned off.

It seems like this has to be a typical use-case, so I'm guessing I'm just missing something obvious?

Thanks!

  • 写回答

1条回答 默认 最新

  • duanmeng3573 2016-06-10 13:50
    关注

    To have an administrative password reset respect the AD Password Policy for the user you must use a specific control OID. There has been a patch in the PHP bug tracker for a while to implement this functionality in an easier form:

    https://bugs.php.net/bug.php?id=69445

    It's still possible to do without this patch, but the encoding for the value used by the control is the hard part. Luckily someone else has already figured it out. See this answer for what you're looking for:

    https://stackoverflow.com/a/26763748/2242593

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算