mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
f78ff75c51
Now the initial account search is performed under the transaction, ensuring the overall password change is atomic. We set DSDB_SESSION_INFO to drop our privileges to those of the user before we perform the actual password change, and restore them afterwards if we need to update the bad password count. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14611 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit fcabcb326d385c1e1daaa8dae9820e33a3868f56) [jsutton@samba.org Included dsdb/common/util.h header for DSDB_SESSION_INFO define]