The Samba-Bugzilla – Attachment 811 Details for
Bug 2092
libsmbclient needs option to suppress auto Guest login.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch compatible with Kerberos patch
samba-client-no-auto-anon.patch (text/plain), 1.91 KB, created by
Nate Nielsen
on 2004-11-29 11:14:37 UTC
(
hide
)
Description:
Patch compatible with Kerberos patch
Filename:
MIME Type:
Creator:
Nate Nielsen
Created:
2004-11-29 11:14:37 UTC
Size:
1.91 KB
patch
obsolete
>--- samba-3.0.8pre1.orig/source/include/libsmbclient.h 2004-09-08 14:50:02.000000000 -0600 >+++ samba-3.0.8pre1/source/include/libsmbclient.h 2004-11-29 11:03:14.377691087 -0700 >@@ -447,26 +447,32 @@ > } callbacks; > > > /** Space to store private data of the server cache. > */ > struct smbc_server_cache * server_cache; > > /** INTERNAL DATA > * do _NOT_ touch this from your program ! > */ > struct smbc_internal_data * internal; > >+ /** See flags below >+ */ >+ int flags; > }; > >+/* Flags for SMBCCTX->flags */ >+#define SMBCCTX_FLAG_NO_AUTO_ANON (1 << 2) /* don't try to do automatic anon login */ >+ > > /**@ingroup misc > * Create a new SBMCCTX (a context). > * > * Must be called before the context is passed to smbc_context_init() > * > * @return The given SMBCCTX pointer on success, NULL on error with errno set: > * - ENOMEM Out of memory > * > * @see smbc_free_context(), smbc_init_context() > * > * @note Do not forget to smbc_init_context() the returned SMBCCTX pointer ! >--- samba-3.0.8pre1.orig/source/libsmb/libsmbclient.c 2004-09-08 14:49:57.000000000 -0600 >+++ samba-3.0.8pre1/source/libsmb/libsmbclient.c 2004-11-26 17:50:10.000000000 -0700 >@@ -639,25 +639,27 @@ > > if (!cli_negprot(&c)) { > cli_shutdown(&c); > errno = ENOENT; > return NULL; > } > > if (!cli_session_setup(&c, username, > password, strlen(password), > password, strlen(password), > workgroup) && > /* try an anonymous login if it failed */ >- !cli_session_setup(&c, "", "", 1,"", 0, workgroup)) { >+ ((context->flags & SMBCCTX_FLAG_NO_AUTO_ANON) || >+ !cli_session_setup(&c, "", "", 1,"", 0, workgroup))) { >+ > cli_shutdown(&c); > errno = EPERM; > return NULL; > } > > DEBUG(4,(" session setup ok\n")); > > if (!cli_send_tconX(&c, share, "?????", > password, strlen(password)+1)) { > errno = smbc_errno(context, &c); > cli_shutdown(&c); > return NULL;
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
Actions:
View
Attachments on
bug 2092
:
810
| 811