The Samba-Bugzilla – Attachment 1209 Details for
Bug 2691
Guest access with Kerberos does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to allow guest access when kerberos keytab is enabled
sesssetup-guest.patch (text/plain), 910 bytes, created by
Markus Moeller
on 2005-05-09 05:06:46 UTC
(
hide
)
Description:
Patch to allow guest access when kerberos keytab is enabled
Filename:
MIME Type:
Creator:
Markus Moeller
Created:
2005-05-09 05:06:46 UTC
Size:
910 bytes
patch
obsolete
>*** sesssetup.c 2005-05-09 10:35:08.000000000 +0100 >--- sesssetup_new.c 2005-05-09 10:34:51.000000000 +0100 >*************** >*** 253,258 **** >--- 253,259 ---- > pw = smb_getpwnam( user, real_username, True ); > > if (!pw) { >+ if (!NT_STATUS_IS_OK(ret = do_map_to_guest(NT_STATUS_NO_SUCH_USER, &server_info, user, domain))) { > DEBUG(1,("Username %s is invalid on this system\n",user)); > SAFE_FREE(user); > SAFE_FREE(client); >*************** >*** 260,265 **** >--- 261,267 ---- > data_blob_free(&session_key); > return ERROR_NT(NT_STATUS_LOGON_FAILURE); > } >+ } else { > > /* setup the string used by %U */ > >*************** >*** 275,280 **** >--- 277,283 ---- > data_blob_free(&session_key); > return ERROR_NT(ret); > } >+ } > > /* make_server_info_pw does not set the domain. Without this we end up > * with the local netbios name in substitutions for %D. */
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 2691
: 1209