The Samba-Bugzilla – Attachment 8117 Details for
Bug 9336
Add NetworkManager dispatcher script for winbind (systemd)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
v4-0-test patch
0001-packaging-Add-NetworkManager-dispatcher-script-for-w.patch (text/plain), 1.91 KB, created by
Andreas Schneider
on 2012-10-29 20:26:46 UTC
(
hide
)
Description:
v4-0-test patch
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2012-10-29 20:26:46 UTC
Size:
1.91 KB
patch
obsolete
>From 7b01142ae7cc482b06f8a26578f5fa86b2d142ca Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@cryptomilk.org> >Date: Fri, 26 Oct 2012 12:46:21 +0200 >Subject: [PATCH] packaging: Add NetworkManager dispatcher script for winbind. > >Signed-off-by: Andreas Schneider <asn@cryptomilk.org> >Signed-off-by: Andreas Schneider <asn@samba.org> >--- > packaging/NetworkManager/30-winbind-systemd | 20 ++++++++++++++++++++ > packaging/NetworkManager/README | 6 ++++++ > 2 files changed, 26 insertions(+) > create mode 100755 packaging/NetworkManager/30-winbind-systemd > create mode 100644 packaging/NetworkManager/README > >diff --git a/packaging/NetworkManager/30-winbind-systemd b/packaging/NetworkManager/30-winbind-systemd >new file mode 100755 >index 0000000..af0edf9 >--- /dev/null >+++ b/packaging/NetworkManager/30-winbind-systemd >@@ -0,0 +1,20 @@ >+#!/bin/sh >+ >+winbind_is_active=$(/bin/systemctl is-active winbind.service) >+test "${winbind_is_active}" = "active" || exit 0 >+ >+winbind_offline_logon=$(testparm -s --parameter-name "winbind offline logon" 2>/dev/null) >+test "${winbind_offline_logon}" = "Yes" || exit 0 >+ >+case "$2" in >+ up|vpn-up) >+ nmb_is_active=$(/bin/systemctl is-active nmb.service) >+ if test "${nmb_is_active}" = "active"; then >+ /bin/systemctl try-restart nmb.service || : >+ fi >+ /usr/bin/smbcontrol winbind online || : >+ ;; >+ down) >+ /usr/bin/smbcontrol winbind offline >+ ;; >+esac >diff --git a/packaging/NetworkManager/README b/packaging/NetworkManager/README >new file mode 100644 >index 0000000..0db8be6 >--- /dev/null >+++ b/packaging/NetworkManager/README >@@ -0,0 +1,6 @@ >+This directory includes files for the dispatcher of NetworkManager. The files >+need to be copied to /etc/NetworkManager/dispatcher.d/ and will be automatically >+called if a network interface goes up or down. >+ >+30-winbind-systemd: This will set winbind into offline mode if you have winbind >+ offline logon turned on. >-- >1.8.0 >
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 Raw
Flags:
ddiss
:
review+
Actions:
View
Attachments on
bug 9336
: 8117