The branch, v3-5-test has been updated
       via  7f57b62... Fix bug #7263 - Unable to print using Samba 3.5.1 and 
cups-1.1.23-40.46 on SLES10.
      from  0fc2424... s3-rpcclient: Fix Bug #7277. rpcclient was sending 
invalid data, causing cupsaddsmb to fail.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -----------------------------------------------------------------
commit 7f57b627800baba4bc030d9c3748ead9ac53397d
Author: Luca Olivetti <[email protected]>
Date:   Tue May 4 15:07:57 2010 -0700

    Fix bug #7263 - Unable to print using Samba 3.5.1 and cups-1.1.23-40.46 on 
SLES10.
    
    Fix cups encryption setting
    
    I had the same problem and it's due to the fact that samba doesn't respect 
the
    "cups encryption" setting since lp_cups_encrypt changes the value: if you 
set
    "cups encryption=no", the first call will change it to HTTP_ENCRYPT_NEVER,
    since that is 1 (i.e. true), the next call will change it to
    HTTP_ENCRYPT_ALWAYS and after that it'll remain set as HTTP_ENCRYPT_ALWAYS.
    This patch fixes this problem.
    
    Don't mix up the HTTP_ENCRYPT_XXX constants up with the
    enumeration constants (True, False, Auto) used in the
    loadparm code.
    (cherry picked from commit a9e008ee36c8fd9ca79b3bdfdc78111939c3e539)

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

Summary of changes:
 source3/param/loadparm.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index f362c9b..57ea2cd 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -5596,20 +5596,21 @@ FN_LOCAL_STRING(lp_cups_options, szCupsOptions)
 FN_GLOBAL_STRING(lp_cups_server, &Globals.szCupsServer)
 int lp_cups_encrypt(void)
 {
+       int result = 0;
 #ifdef HAVE_HTTPCONNECTENCRYPT
        switch (Globals.CupsEncrypt) {
                case Auto:
-                       Globals.CupsEncrypt = HTTP_ENCRYPT_REQUIRED;
+                       result = HTTP_ENCRYPT_REQUIRED;
                        break;
                case True:
-                       Globals.CupsEncrypt = HTTP_ENCRYPT_ALWAYS;
+                       result = HTTP_ENCRYPT_ALWAYS;
                        break;
                case False:
-                       Globals.CupsEncrypt = HTTP_ENCRYPT_NEVER;
+                       result = HTTP_ENCRYPT_NEVER;
                        break;
        }
 #endif
-       return Globals.CupsEncrypt;
+       return result;
 }
 FN_GLOBAL_STRING(lp_iprint_server, &Globals.szIPrintServer)
 FN_GLOBAL_INTEGER(lp_cups_connection_timeout, &Globals.cups_connection_timeout)


-- 
Samba Shared Repository

Reply via email to