Univention Bugzilla – Attachment 9070 Details for
Bug 45090
BIND9 password change does not work with dns/backend=ldap and systemd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use systemctl
file_45090.txt (text/plain), 2.25 KB, created by
Philipp Hahn
on 2017-07-28 10:55:39 CEST
(
hide
)
Description:
Use systemctl
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2017-07-28 10:55:39 CEST
Size:
2.25 KB
patch
obsolete
>diff --git a/services/univention-bind/usr/lib/univention-server/server_password_change.d/univention-bind b/services/univention-bind/usr/lib/univention-server/server_password_change.d/univention-bind >index 7de86c37f6..7d74985dfa 100755 >--- a/services/univention-bind/usr/lib/univention-server/server_password_change.d/univention-bind >+++ b/services/univention-bind/usr/lib/univention-server/server_password_change.d/univention-bind >@@ -36,39 +36,10 @@ if [ -n "$bind_bindpw" -a "$bind_bindpw" != "/etc/machine.secret" ]; then > exit 0 > fi > >-bind_service () { >- local action="$1" >- >- # start / stop bind9 only if the ldap backend is configured >- if [ "$dns_backend" = "ldap" ]; then >- if [ "$action" = "start" ]; then >- # start bind9 only if it has been stopped by this script >- if [ "$dns_bind9_stoppedbyserverpasswordchange" = "yes" ] ; then >- echo "starting bind9 after server password change" | logger -t "server-password-change" >- invoke-rc.d bind9 start >/dev/null >- univention-config-registry unset dns/bind9/stoppedbyserverpasswordchange >/dev/null >- fi >- fi >- if [ "$action" = "stop" ]; then >- if invoke-rc.d bind9 status | grep -q "is running" ; then >- univention-config-registry set dns/bind9/stoppedbyserverpasswordchange=yes >/dev/null >- echo "stopping bind9 due to upcoming server password change" | logger -t "server-password-change" >- invoke-rc.d bind9 stop >/dev/null >- fi >- fi >- fi >-} >- >-if [ "$1" = "prechange" ] ; then >- bind_service stop >-fi >- >-if [ "$1" = "nochange" ] ; then >- bind_service start >-fi >- > if [ "$1" = "postchange" ] ; then > # update zone files > sed -i "s|\!x-bindpw=\(.*\),x-tls|\!x-bindpw=$(cat /etc/machine.secret),x-tls|" /etc/bind/univention.conf.d/* >- bind_service start >+ # Reload or restart LDAP-BIND (if running) >+ [ "$dns_backend" = "ldap" ] && >+ systemctl reload-or-try-restart > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 45090
:
9070
|
9071