When a libsmbclient connection login fails, it tries to automatically login as
guest. If the Guest login succeeds then no error is returned.
This may be acceptable or handy in some cases, but when building low level file
access (in my case gnome-vfs smb module) based on libsmbclient code, an error
should be propogated back to the caller, instead of automatic Guest login.
Will attach a patch that adds this behavior in an API/ABI compatible way.
Created attachment 810 [details]
Patch which adds option to supress auto guest login
This patch is ABI incompatible with another patch that gnome-vfs needs:
(and that e.g. fedora ships)
If this patch goes in we should change the value of the flag so they don't conflict.
Also, it would be nice if the kerberos patch also got in.
Created attachment 811 [details]
Patch compatible with Kerberos patch
Thanks for pointing that out. Attached is a compatible patch.
Any progress on this? Its really important for good support in gnome-vfs.
Gnome-vfs already has code in cvs which relies on this patch if its been applied.
I've applied both this and the other outstanding gnome patch.
I renamed the constant to SMBCCTX_FLAG_NO_AUTO_ANONYMOUS_LOGON
to make the intent clearer though.
Thanks. I've made the necessary changes to gnome-vfs to account for the new
originally reported against 3.0.8pre1. Cleaning up
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.