[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/authconfig/devel authconfig-5.3.13-locauthorize-default.patch, NONE, 1.1 authconfig-5.3.13-nisdomain.patch, NONE, 1.1



Author: tmraz

Update of /cvs/extras/rpms/authconfig/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20058

Added Files:
	authconfig-5.3.13-locauthorize-default.patch 
	authconfig-5.3.13-nisdomain.patch 
Log Message:
* Fri May  4 2007 Tomas Mraz <tmraz redhat com> - 5.3.13-4
- local nis domain is obtained from sysconfig/network (#235927)
- set "local authorization is sufficient" on by default


authconfig-5.3.13-locauthorize-default.patch:

--- NEW FILE authconfig-5.3.13-locauthorize-default.patch ---
--- authconfig-5.3.13/authconfig.py.locauthorize	2006-10-20 20:09:34.000000000 +0200
+++ authconfig-5.3.13/authconfig.py	2007-05-04 15:25:06.000000000 +0200
@@ -253,6 +253,8 @@
 		self.info = authinfo.read(self.printError)
 		# FIXME: what about printing critical errors reading individual configs?
 		self.pristineinfo = self.info.copy()
+		if self.info.enableLocAuthorize == None:
+			self.info.enableLocAuthorize = True # ON by default
 
 	def testAvailableSubsys(self):
 		self.nis_avail = (os.access(authinfo.PATH_YPBIND, os.X_OK) and
--- authconfig-5.3.13/authconfig-gtk.py.locauthorize	2006-08-24 21:22:17.000000000 +0200
+++ authconfig-5.3.13/authconfig-gtk.py	2007-05-04 15:27:45.000000000 +0200
@@ -177,6 +177,8 @@
 		}
 		self.info = authinfo.read(self.message_callback)
 		self.pristineinfo = self.info.copy()
+		if self.info.enableLocAuthorize == None:
+			self.info.enableLocAuthorize = True # ON by default
 		return
 
 	def destroy_widget(self, button, widget):

authconfig-5.3.13-nisdomain.patch:

--- NEW FILE authconfig-5.3.13-nisdomain.patch ---
--- authconfig-5.3.13/authinfo.py.nisdomain	2007-03-19 20:32:42.000000000 +0100
+++ authconfig-5.3.13/authinfo.py	2007-04-11 09:40:48.000000000 +0200
@@ -834,9 +834,8 @@
 				value = value.split(None, 1)
 				if len(value) < 1:
 					continue
-				if self.nisLocalDomain and value[0] != self.nisLocalDomain:
+				if value[0] != self.nisLocalDomain:
 					continue
-				self.nisDomain = value[0]
 				if len(value) < 2:
 					continue
 				value = value[1]
@@ -847,10 +846,6 @@
 					self.nisServer = commaAppend(self.nisServer, value)
 
 		f.close()
-		if self.nisLocalDomain and not self.nisDomain:
-			self.nisDomain = self.nisLocalDomain
-		if self.nisDomain and not self.nisLocalDomain:
-			self.nisLocalDomain = self.nisDomain
 		return True
 
 	def ldapHostsToURIs(self, s):
@@ -1380,6 +1375,9 @@
 
 		shv.close()
 
+		if self.nisLocalDomain:
+			self.nisDomain = self.nisLocalDomain
+
 		return True
 
 	# Compare two authInfoType structures and return True if they have any


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]