The Samba-Bugzilla – Attachment 3489 Details for
Bug 5580
Unable to access DFS shares using libsmbclient
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch with Kerberos
libsmbclient-3.0.25.patch.txt (text/plain), 1.65 KB, created by
Brian Sheehan
on 2008-08-18 16:10:29 UTC
(
hide
)
Description:
patch with Kerberos
Filename:
MIME Type:
Creator:
Brian Sheehan
Created:
2008-08-18 16:10:29 UTC
Size:
1.65 KB
patch
obsolete
>--- samba-3.0.25/source/include/libsmbclient.h 2007-02-28 20:54:51.000000000 -0800 >+++ samba-3.0.25/source/include/libsmbclient.h.new 2008-08-14 15:05:46.515494000 -0700 >@@ -733,6 +733,22 @@ > > SMBCCTX * smbc_set_context(SMBCCTX * new_context); > >+/**@ingroup misc >+ * Set the users credentials globally so they can be used for DFS >+ * referrals. Probably best to use this function in the smbc_get_auth_data_fn >+ * callback. >+ * >+ * @param workgroup Workgroup of the user. >+ * >+ * @param user Username of user. >+ * >+ * @param password Password of user. >+ * >+ * @param is_kerberos Flag if kerberos should be used. >+ */ >+ >+void smbc_set_credentials(char *workgroup, char *user, char *password, int is_kerberos); >+ > /**@ingroup file > * Open a file on an SMB server. > * >--- samba-3.0.25/source/libsmb/libsmbclient.c 2007-04-09 10:30:58.000000000 -0700 >+++ samba-3.0.25/source/libsmb/libsmbclient.c.new 2008-08-14 15:05:26.006554000 -0700 >@@ -6604,6 +6604,24 @@ > return context; > } > >+/* Set the credentials so DFS will work when following referrals.*/ >+void >+smbc_set_credentials(char *workgroup, char *user, char *password, int is_kerberos) >+{ >+ struct user_auth_info auth_info; >+ pstrcpy(auth_info.username, user); >+ pstrcpy(auth_info.password, password); >+ auth_info.got_pass = True; >+ >+ if (is_kerberos) >+ auth_info.use_kerberos = True; >+ else >+ auth_info.use_kerberos = False; >+ >+ cli_cm_set_credentials(&auth_info); >+ set_global_myworkgroup(workgroup); >+} >+ > > /* Return the verion of samba, and thus libsmbclient */ > const char *
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 5580
:
3378
| 3489