similar to: libsmbclient and closing connections

Displaying 20 results from an estimated 7000 matches similar to: "libsmbclient and closing connections"

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"
2020 Oct 10
2
Lookup sid with libsmbclient (invoked from c# on mono)
> Hello, > > I'm trying to resolve SID from a linux using a program written in c# > running under mono. > > I already know the Windows API LookupSID ( > https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-lookupaccountsida) > and its underlying raw RPC call ( >
2002 Nov 28
0
problem with smbc_init in libsmbclient
Hi, I have attached a very simple c program, that first does a smbc_init and then a smbc_opendir. The problem: smbc_init return an error (No such file or directory) and then i get a segmentation fault. I don't know what possibly could be the problem. Maybe some of you guys have an idea. I think i have libsmbclient from samba 2.2.7(compiled on my own system) and the rest of the samba stuff is
2002 Nov 29
0
libsmbclient problem
Hi *, I have a problem (configuration problem probably) using the libsmbclient library (samba 2.2.6/7). I use a small c program to open directories (workgroups and servers) and list the contents of these dirs. I have two samba servers int the network. The first is everything-master and wins server, the second is nothing like that. The program works fine if I run it on the first server (using
2002 Nov 03
0
libsmbclient bug ?
Hello, I've tried using libsmbclient from the 2.2.6 samba package (on a slackware 8.1, compiled --with-libsmbclient --with-sendfile-support --enable-debug (without debug also) ) and it segfaults when I call smbc_stat() (or smbc_fstat() ) on a file. I'm sorry I'm not able to find out the problem with gdb, the output (with the library compiled with debugging enabled) is:
2013 Feb 04
0
not able to connect to windows machine
Hi, I am using samba4 and libsmbclient.h and libsmbclient.so. I have implemented the below apis locally within linux machines, but now I want to connect to my windows machine for this I am giving my windows machine username and password In below get_auth_data_fn() function: static void get_auth_data_fn(const char * m_pserver, const char * m_pshare,
2020 Oct 12
0
Lookup sid with libsmbclient (invoked from c# on mono)
This wrapper, I know how to make it in c# (Rewriting stdin and stdout is not possible because I?m discovering one sid after having examined another one) What I?m missing is the api calls (in order) that I need to do to create this connection. Many exports that rpcclient is using are not included in libsmbdlient. I can find the final rpc function, but not the functions to establish the right
2005 Jan 28
0
question about libsmbclient
Hello! I'm writing a file scanner that searches shares in SMB network (http://sf.net/projects/fsmbsearch if it matters). I would like to use libsmbclient to scan remote server. However, there is a problem, that I cannot solve. Out network is quite large (more than 2000 hosts). There is no strong administration, so each user choose whatever name for his computer. As a result, there many hosts
2002 Oct 21
0
PATCH for libsmbclient.c (samba-2.2.5)
Hello there, we are running samba-2.2.5 under AIX4.3.3 (IBM silver node). As we tried to run the perl module Filesys::SmbClient we found the following problem in samba-2.2.5/source/libsmb/libsmbclient.c : AIX returns for "rlp.rlim_max" (file handler) the largest unsigned integer. Inside the function smbc_init the variable "smbc_start_fd" is calculated by adding a "guard
2004 Apr 19
0
libsmbclient vs. C++
Is it possible to use libsmbclient with C++? I make a sample program. When I try to make it, I got the following errors: In function `main': undefined reference to `smbc_init undefined reference to `smbc_opendir When I change the extension to .c, the build was successfully. I use Mandrake cooker with gcc-3.3.2.
2007 Apr 06
1
Authentication problems using libsmbclient API and DFS shares
Hi, I'm trying to create a map of DFS links to actual server/share's.? I know that you can get this information by logging on to the DFS root server, but I'm trying to use the libsmbclient API to get this information. I have created a fairly simple DFS structure on 2003 servers with everything on the same domain. //MyDomain/DFSRoot /Link1 -> //Fileserv-1/FileShare1
2007 Sep 19
0
Authentication problems using libsmbclient to traverse DFS links
Hi, I'm trying to create a map of DFS links to actual server/share's. I know that you can get this information by logging on to the DFS root server, but I'm trying to use the libsmbclient API to get this information. I have created a fairly simple DFS structure on 2003 servers with everything on the same domain. //MyDomain/DFSRoot /Link1 -> //Fileserv-1/FileShare1 /Link2
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
Typical example: Here is some search & export for libsmbclient: adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep cli_rpc_pipe_open_noauth_transport <nothing> adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0 |grep cli_rpc_pipe_open U cli_rpc_pipe_open_noauth adiant at ubuntu:/usr/lib/x86_64-linux-gnu$ nm -D libsmbclient.so.0
2016 Oct 28
0
Samba and BTRFS server-side copy
On Fri, Oct 28, 2016 at 02:02:57AM +0200, Saint Germain via samba wrote: > > On linux, most current utilities like Nautilus (gvfs) still use SMB1 to > connect, so there is no chance to trigger a server-side copy. Oh, just checked the current gvfs source code to copy an smb file. It does: static gboolean copy_file (GVfsBackendSmb *backend, GVfsJob *job, const char
2020 Oct 12
2
Lookup sid with libsmbclient (invoked from c# on mono)
Vincent Le Toux via samba <samba at lists.samba.org> writes: > Indeed, rpcclient is the program I looked for the first time. > > I cannot invoke it in a command line because I have at least 1000 SID to > resolve > (I discover them one by one so I'll have to run rpcclient at least 1000 > times) You can pass multiples SID at a time to these commands. But you would have
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
2004 Jan 03
0
DEBUG(0, ...) got no contact to IPC$
Hello developers. How can I redirect debug message from stdout to file or /dev/null. In smb.conf I have log level = 0 log file = /var/log/smbd.log and I init libsmbclient smbc_init(Rget_auth_data, 0) I don't want to display any debug message on the screen. Please help. -- Rafal Michniewicz tel. 501-252-210 Linux Counter #145337 jabber: rafim@jabber.2000-plus.pl
2000 Jan 26
0
coding volunteers needed for msrpc server-side API conversion
ok, people, i _really_ need help with this. i estimate that if i work on this full-time it's going to take about... two weeks. i have one volunteer for the samr functions. it's been two days, already, and i'm only half-way through samr. that means, nothing else gets done, and samba-tng current cvs is broken because the _samr_lookup_rids() function goes into an infinite loop on that
2007 Aug 21
3
Segment violation during the list of directory with smbc_readdir
Dear samba, I have a small piece of code that crashes on Samba 3.0.5: int main() { int smbdh; struct smbc_dirent *smbdi; char *smb_url = "smb://SERVER/Archive/NOT EMPTY"; if(smbc_init(get_auth, 0) < 0) { fprintf(stderr, "error initializing libsmbclient: %s\n", strerror(errno)); return -1; } if((smbdh =
2005 Mar 16
1
Compile error: libsmbclient on 12rc1 on Solaris 9
snip from make.log: Compiling libsmb/libsmbclient.c with -KPIC "libsmb/libsmbclient.c", line 3249: warning: argument #3 is incompatible with prototype: prototype: pointer to char : "libsmb/libsmbclient.c", line 1167 argument : pointer to const char "libsmb/libsmbclient.c", line 3843: warning: argument #5 is incompatible with prototype: