#!/bin/bash
#
# Univention nss ldap
#   machine password hook script
#
# SPDX-FileCopyrightText: 2011-2025 Univention GmbH
# SPDX-License-Identifier: AGPL-3.0-only

. /usr/lib/univention-server/lib/server_password_change/debug.sh

if [ "$1" = "postchange" -o "$1" = "nochange" ] ; then
	ucr commit /etc/sssd/sssd.conf
	systemctl restart sssd.service
fi
