The Samba-Bugzilla – Attachment 12958 Details for
Bug 12575
samba_krb5_wrapper does not list devices when called with no arguments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.6
0001-Modify-smbspool_krb5_wrapper-to-just-fall-through-to.patch (text/plain), 2.20 KB, created by
Andreas Schneider
on 2017-02-17 11:13:23 UTC
(
hide
)
Description:
patch for 4.6
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2017-02-17 11:13:23 UTC
Size:
2.20 KB
patch
obsolete
>From 6bb28ea05547a62e708475fd827889afc1b2dfaf Mon Sep 17 00:00:00 2001 >From: Bryan Mason <bmason@redhat.com> >Date: Wed, 15 Feb 2017 22:57:42 -0800 >Subject: [PATCH] Modify smbspool_krb5_wrapper to just fall through to smbspool > if AUTH_INFO_REQUIRED is not set or is not "negotiate". > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=12575 > >Signed-off-by: Bryan Mason <bmason@redhat.com> >Reviewed-by: Andreas Schneider <asn@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> > >(cherry picked from commit adbdce78ecb4e852596108b69eeb8a4cba32fa83) >--- > source3/client/smbspool_krb5_wrapper.c | 32 +++++++++++++++++--------------- > 1 file changed, 17 insertions(+), 15 deletions(-) > >diff --git a/source3/client/smbspool_krb5_wrapper.c b/source3/client/smbspool_krb5_wrapper.c >index d26a7a6a128..bf97d82115a 100644 >--- a/source3/client/smbspool_krb5_wrapper.c >+++ b/source3/client/smbspool_krb5_wrapper.c >@@ -90,27 +90,29 @@ int main(int argc, char *argv[]) > int cmp; > int rc; > >- uid = getuid(); >- >- CUPS_SMB_DEBUG("Started with uid=%d\n", uid); >- if (uid != 0) { >- goto smbspool; >- } >- > /* Check if AuthInfoRequired is set to negotiate */ > env = getenv("AUTH_INFO_REQUIRED"); >+ >+ /* If not set, then just call smbspool. */ > if (env == NULL) { > CUPS_SMB_ERROR("AUTH_INFO_REQUIRED is not set"); >- fprintf(stderr, "ATTR: auth-info-required=negotiate\n"); >- return CUPS_BACKEND_AUTH_REQUIRED; >+ goto smbspool; >+ } else { >+ CUPS_SMB_DEBUG("AUTH_INFO_REQUIRED=%s", env); >+ cmp = strcmp(env, "negotiate"); >+ /* If AUTH_INFO_REQUIRED != "negotiate" then call smbspool. */ >+ if (cmp != 0) { >+ CUPS_SMB_ERROR( >+ "AUTH_INFO_REQUIRED is not set to negotiate"); >+ goto smbspool; >+ } > } > >- CUPS_SMB_DEBUG("AUTH_INFO_REQUIRED=%s", env); >- cmp = strcmp(env, "negotiate"); >- if (cmp != 0) { >- CUPS_SMB_ERROR("AUTH_INFO_REQUIRED is not set to negotiate"); >- fprintf(stderr, "ATTR: auth-info-required=negotiate\n"); >- return CUPS_BACKEND_AUTH_REQUIRED; >+ uid = getuid(); >+ >+ CUPS_SMB_DEBUG("Started with uid=%d\n", uid); >+ if (uid != 0) { >+ goto smbspool; > } > > /* >-- >2.11.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:
jra
:
review+
Actions:
View
Attachments on
bug 12575
: 12958