[SCM] CTDB repository - branch 1.2 updated - ctdb-1.9.1-248-g981550e

Ronnie Sahlberg sahlberg at samba.org
Sun Nov 28 19:09:40 MST 2010


The branch, 1.2 has been updated
       via  981550e3ae8c1884a8c8f7786d0549e6144794e0 (commit)
      from  0a6165b2a3084d10d2f0b272dd05e2f5174a5055 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=1.2


- Log -----------------------------------------------------------------
commit 981550e3ae8c1884a8c8f7786d0549e6144794e0
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Nov 29 12:39:14 2010 +1100

    When we are no longer the natgw master, dont put the natgw ip on loopback.
    We put the ip on loopback just to make sure we would still interoperate with
    non-standard configurations on unix-KDC, that are configured to verify the optional
    HostAddresses field.
    This is not required for AD, since AD does not use this field, and is replaced in
    unix land with other/better mechanisms than this "dodgy" check.
    
    This makes it "easier" for applications that have bound to the natgw address
    to detect a socket problem and try to reconnect/recover if the ip address
    is completely missing from the system.
    
    At the same time, use the winbind specific hook that exists to explicitely tell winbindd : this address is gone, so if you have bound to it, this is a good time to close and rebind your socket.
    
    cq 1020333

-----------------------------------------------------------------------

Summary of changes:
 config/events.d/11.natgw |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/events.d/11.natgw b/config/events.d/11.natgw
index 512f8de..1d5ba0f 100755
--- a/config/events.d/11.natgw
+++ b/config/events.d/11.natgw
@@ -91,8 +91,10 @@ case "$1" in
 		# We do this so that the ip address will exist on a
 		# non-loopback interface so that samba may send it along in the
 		# KDC requests.
-		ip addr add $CTDB_NATGW_PUBLIC_IP_HOST dev lo scope host
 		ip route add 0.0.0.0/0 via $NATGWIP metric 10
+		# Make sure winbindd does not stay bound to this address
+		# if we are no longer natgwmaster
+		smbcontrol winbindd ip-dropped $CTDB_NATGW_PUBLIC_IP >/dev/null 2>/dev/null
 	fi
 
 	# flush our route cache


-- 
CTDB repository


More information about the samba-cvs mailing list