Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force password change with user in AD environments #710

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions conf/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
$ad_options['force_pwd_change'] = false;
# Allow user with expired password to change password
$ad_options['change_expired_password'] = false;
# Force who_change_password to be 'user', useful in AD environments
$ad_force_low_privileged_change = false;

# Samba mode
# true: update sambaNTpassword and sambaPwdLastSet attributes too
Expand Down
4 changes: 4 additions & 0 deletions htdocs/change.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@
}
}

if ($ad_force_low_privileged_change){
$who_change_password = "user";
}

}
}
}
Expand Down