public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-nds/nsscache/files: nsscache-0.8.3-starttls.patch
@ 2009-05-24 23:53 Robin H. Johnson (robbat2)
  0 siblings, 0 replies; only message in thread
From: Robin H. Johnson (robbat2) @ 2009-05-24 23:53 UTC (permalink / raw
  To: gentoo-commits

robbat2     09/05/24 23:53:36

  Modified:             nsscache-0.8.3-starttls.patch
  Log:
  Respin patch to apply better without the ../ and also make sure the state directory is created by default.
  (Portage version: 2.2_rc33/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  net-nds/nsscache/files/nsscache-0.8.3-starttls.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nds/nsscache/files/nsscache-0.8.3-starttls.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nds/nsscache/files/nsscache-0.8.3-starttls.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nds/nsscache/files/nsscache-0.8.3-starttls.patch?r1=1.1&r2=1.2

Index: nsscache-0.8.3-starttls.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-nds/nsscache/files/nsscache-0.8.3-starttls.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -p -w -b -B -u -u -r1.1 -r1.2
--- nsscache-0.8.3-starttls.patch	24 May 2009 21:00:10 -0000	1.1
+++ nsscache-0.8.3-starttls.patch	24 May 2009 23:53:36 -0000	1.2
@@ -3,35 +3,44 @@ Add a new configuration file to do it.
 
 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
 
-diff -Nuar ../nsscache-0.8.3.orig/nss_cache/sources/ldapsource.py ../nsscache-0.8.3/nss_cache/sources/ldapsource.py
---- ../nsscache-0.8.3.orig/nss_cache/sources/ldapsource.py	2008-09-08 18:31:58.000000000 -0700
-+++ ../nsscache-0.8.3/nss_cache/sources/ldapsource.py	2009-05-24 13:56:14.009240803 -0700
+diff -Nuar nsscache-0.8.3.orig/nss_cache/sources/ldapsource.py nsscache-0.8.3/nss_cache/sources/ldapsource.py
+--- nsscache-0.8.3.orig/nss_cache/sources/ldapsource.py	2008-09-08 18:31:58.000000000 -0700
++++ nsscache-0.8.3/nss_cache/sources/ldapsource.py	2009-05-24 16:50:59.579112740 -0700
 @@ -76,6 +76,8 @@
        self.conn = rlo(uri=conf['uri'],
                        retry_max=conf['retry_max'],
                        retry_delay=conf['retry_delay'])
-+      if configuration['ldap_tls_starttls'] == 1:
++      if conf['tls_starttls'] == 1:
 +          self.conn.start_tls_s()
      else:
        self.conn = conn
  
-@@ -120,6 +122,13 @@
+@@ -107,6 +109,8 @@
+       configuration['tls_cacertdir'] = self.TLS_CACERTDIR
+     if not 'tls_cacertfile' in configuration:
+       configuration['tls_cacertfile'] = self.TLS_CACERTFILE
++    if not 'tls_starttls' in configuration:
++      configuration['tls_starttls'] = 0
+ 
+     # Translate tls_require into appropriate constant, if necessary.
+     if configuration['tls_require_cert'] == 'never':
+@@ -120,6 +124,13 @@
      elif configuration['tls_require_cert'] == 'try':
        configuration['tls_require_cert'] = ldap.OPT_X_TLS_TRY
  
 +    # Should we issue STARTTLS?
-+    if configuration['ldap_tls_starttls'] in (1, '1', 'on', 'yes', 'true'):
-+        configuration['ldap_tls_starttls'] = 1
-+    #if not configuration['ldap_tls_starttls']:
++    if configuration['tls_starttls'] in (1, '1', 'on', 'yes', 'true'):
++        configuration['tls_starttls'] = 1
++    #if not configuration['tls_starttls']:
 +    else:
-+      configuration['ldap_tls_starttls'] = 0
++      configuration['tls_starttls'] = 0
 +
      # Setting global ldap defaults.
      ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,
                      configuration['tls_require_cert'])
-diff -Nuar ../nsscache-0.8.3.orig/nsscache.conf ../nsscache-0.8.3/nsscache.conf
---- ../nsscache-0.8.3.orig/nsscache.conf	2008-09-08 18:31:58.000000000 -0700
-+++ ../nsscache-0.8.3/nsscache.conf	2009-05-24 13:56:18.182858446 -0700
+diff -Nuar nsscache-0.8.3.orig/nsscache.conf nsscache-0.8.3/nsscache.conf
+--- nsscache-0.8.3.orig/nsscache.conf	2008-09-08 18:31:58.000000000 -0700
++++ nsscache-0.8.3/nsscache.conf	2009-05-24 16:51:25.468374563 -0700
 @@ -70,6 +70,9 @@
  # Default filename for trusted CAs
  #ldap_tls_cacertfile = '/usr/share/ssl/cert.pem'






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-24 23:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-24 23:53 [gentoo-commits] gentoo-x86 commit in net-nds/nsscache/files: nsscache-0.8.3-starttls.patch Robin H. Johnson (robbat2)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox