Displaying 20 results from an estimated 5000 matches similar to: "libsmbclient vs. C++"
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 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
2024 Oct 25
0
Could not find a suitable mechtype in NEG_TOKEN_INIT error in libsmbclient 4.19.4
>
>> Looking at the packet captures, when its working on libsmbclient 4.10,
>> it first sends a SMB1 negotiate protocol request, to which server
>> sends back a SMB2 response. Then there is a SMB2 negotiate protocol
>> request/response again.
>>
>> In 4.19, there is a SMB2 client negotiate protocol request
>> straightaway and to which the server
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
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:
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
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
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 =
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 (
>
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 zombie
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"
2002 Sep 10
1
libsmbclient
Hello all
I recently recompiled samba 2.2.5 with LDAP, SSL and libsmbclient as
additional configure options. I used the base 2.2.5-2mdk source package
(to the uninitiated, it's a Mandrake package).
LDAP works fine (as it had before), haven't really tested SSL, but
here's the kicker: I can't find libsmbclient anywhere - although I'm not
really sure what I'm looking for
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
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:
2003 Jun 22
0
samba-2.2.8a libsmbclient install
Samba project,
I recently downloaded samba-2.2.8a.tar.bz2 and tried to install it
"--with-libsmbclient" but it failed in the install for one file :
Installing libsmbclient as /home/somos/u/samba/bin/libsmbclient
cp: cannot stat `libsmbclient': No such file or directory
chmod: getting attributes of `/home/somos/u/samba/bin/libsmbclient': No such fil
The reason is a slight
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,
2017 Jun 11
0
libsmbclient: poor performance using SMB2/3
Hello,
I use libsmbclient from Python, using pysmbc: https://pypi.python.org/pypi/pysmbc (its a very thin wrapper around libsmbclient).
When setting "client max protocol" in smb.conf to SMB2 (or higher), libsmbclient then switches to SMB2 if the server supports it. Performance of opendir() remains much the same, but calling stat() is about 40 times slower when using SMB2.
Time taken
2017 May 29
1
samba-4.5.x Doesn't work against Anonymous login to windows
Hi List,
I have samba-4.1.x and samba-4.5.x.
Windows 7 has an user with no password (anonymous login allowed).
I am trying to connect to windows 7 from smbc calls.
call smbc_opendir() with username and empty password.
When smbc_opendir() is called from samba-4.5.x "SPNEGO(ntlmssp) login
failed: NT_STATUS_WRONG_CREDENTIAL_HANDLE" is returned.
But the same call from samba-4.1.x is no
2004 Mar 05
1
FW: What version started building libsmbclient.so?
Ok, I have been doing a lot of reading and saw many references to samba
2.2.8a and libsmbclient.so and I thought that I would just go ahead and
download, compile and install it. After going through configure, the make
and make install, I still don't have a libsmbclient.so file to link my
program to. I have never come across this before, there has always been a
.so file created from any of
2007 Nov 16
0
Is there a PAM setup for libsmbclient?
I have a working winbind on my Radados server that let's Ubuntu Gutsy
workstartions authenticate from the server. I works great. A user account
that exists on the server with a home directory is able to login to Ubuntu
with GDM and have a Gnome desktop and their home directory is mounted from
the server, all is good.
The server has many shares that are being offered to users that are members