search for: smbc_open

Displaying 10 results from an estimated 10 matches for "smbc_open".

Did you mean: smb_open
2007 May 10
2
programming libsmbclient
hi all, I have a strange problem using the libsmbclient api.. retrieving or stating files named with percents in is for some of them impossible. Example: a file located at "smb://test/test/%7C2.txt" cannot be retrieved with my code, smbc_open fails with the code NT_STATUS_OBJECT_NAME_INVALID. I am not sure but, url encoding/decoding that would escape strings with "percent" in should be 'internals' of samba right ? At the same time under the same constraints, a file named 'whatever-you-want-except-with-percent...
2016 Oct 28
0
Samba and BTRFS server-side copy
...to copy an smb file. It does: static gboolean copy_file (GVfsBackendSmb *backend, GVfsJob *job, const char *from_uri, const char *to_uri) { SMBCFILE *from_file, *to_file; char buffer[4096]; size_t buffer_size; ssize_t res; char *p; gboolean succeeded; smbc_open_fn smbc_open; smbc_read_fn smbc_read; smbc_write_fn smbc_write; smbc_close_fn smbc_close; from_file = NULL; to_file = NULL; succeeded = FALSE; smbc_open = smbc_getFunctionOpen (backend->smb_context); smbc_read = smbc_getFunctionRead (backend->smb_context); smbc_write =...
2006 May 16
1
How to handle special characters in filenames
Hi, I'm using samba 3.0.21 on a FC 4 box. I'm connecting to Win XP pro clients. Using smbclient I can get and put files which contain '%' in file names. Using libsmbclient smbc_open this is not possible. I get 'No such file or directory Errno::ENOENT' error. Any ideas how to solve this. I guess it has to do with escaping special characters in smb urls but I haven't found the correct way of doing this. Any help would be greatly appreciated. Regards, Henrik
2013 Feb 04
0
not able to connect to windows machine
...ord) { m_pworkgroup = "igatecorp"; m_maxLenWorkgroup = 100; m_maxlenUsername = 100; m_maxLenPassword =100; m_pusername = "abc"; m_pPassword = "1"; } smbc_init( get_auth_data_fn, l_ndebug ); Int smbc_open(const char *furl, int flags, mode_t mode); But it is giving following debugt errors: START INIT INFO: Current debug levels: all: 50 tdb: 50 printdrivers: 50 lanman: 50 smb: 50 rpc_parse: 50 rpc_srv: 50 rpc_cli: 50 passdb: 50 sam: 50 auth: 50 winbind: 50 vfs: 50 idmap:...
2016 Oct 28
3
Samba and BTRFS server-side copy
On Thu, 27 Oct 2016 16:57:13 -0700, Jeremy Allison <jra at samba.org> wrote : > On Fri, Oct 28, 2016 at 01:42:35AM +0200, Saint Germain via samba > wrote: > > On Thu, 27 Oct 2016 16:27:05 -0700, Jeremy Allison <jra at samba.org> > > > if you see any of these then it happened. > > > > Ok I understand how to check that it happened, but how can I make
2007 Apr 06
1
Authentication problems using libsmbclient API and DFS shares
...9 12:39:04 2007 . . . ? sag.pdf?????????????????????? A?? 869300? Thu Mar 29 12:40:14 2007 ??????????????? 65389 blocks of size 65536. 36659 blocks available smb: \Link2\> showconnect //Fileserv-2/FileShare2 smb: \Link2\> However, problems ensue when I try to connect using the smbc_open and smbc_opendir functions.? Tracing execution under gdb I see that my authentication callback function is being called every time I use the smbc_opendir function (that's good).? I can authenticate without any problems to the DFS root, but the problem occurs when Samba tries to traverse the DFS...
2005 Jan 28
0
question about libsmbclient
...se only name I can't properly scan machines with the same names. If I use only IP - I can't scan machines with Win98. The solution is to use both! smbclient already allows to specify both name and IP (via -I cmdline option). But the libsmbclient doesn't have such ability. Functions like smbc_open get URL in form of //host/share or //ip.ip.ip.ip/share, but not both. I suggest adding this feature to libsmbclient. What is the best way to specify ip? I've seen sources of the libsmbclient and found that there are some "options". Currently supported options are "?mb=all",...
2005 Feb 17
0
libsmbclient and closing connections
Hi, Is there a way to close a connection that was created using smbc_init/smbc_open? I have written an apache module that authenticates the user against the samba permissions of the dir/file being accessed. Everything works great, except that the samba connections to dot get closed when the http connection dies. This becomes a major problem after a while as all kinds of zom...
2007 Sep 19
0
Authentication problems using libsmbclient to traverse DFS links
...7 abs-guide.pdf A 2069818 Thu Mar 29 12:39:04 2007 . . . sag.pdf A 869300 Thu Mar 29 12:40:14 2007 65389 blocks of size 65536. 36659 blocks available smb: \Link2\> showconnect //Fileserv-2/FileShare2 smb: \Link2\> However, problems ensue when I try to connect using the smbc_open and smbc_opendir functions. Tracing execution under gdb I see that my authentication callback function is being called every time I use the smbc_opendir function (that's good). I can authenticate without any problems to the DFS root,but the problem occurs when Samba tries to traverse the DFS t...
2020 Oct 10
2
Lookup sid with libsmbclient (invoked from c# on mono)
...nt me to the right flow of function calls so I can run this > RPC call using the samba API with well known lib ? > > I think that > > rpccli_lsa_lookup_sids is the final call. > Is this the case ? > What the first call to do ? > smbc_init ? (no return value to send to RPC in smbc_open ?) > cli_full_connection ? (this export has no source code related ?) > cli_full_connection_creds (no export ?) > > Are there any things I missed ? > > Thanks in advance for your help > > best regards, > Vincent LE TOUX > -- --- Vincent