Displaying 20 results from an estimated 100 matches similar to: "libsmbclient problem"
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 =
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
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.
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
2009 Feb 04
1
libsmbclient: readdir caches dirents?
I'm using libsmbclient with smbc contexts.
If I do an smbc_readdir() of a directory X then I get a
bunch of (correct) dirents.
I then smbc_rmdir() a subdirectory X/Y, which succeeds.
A subsequent smbc_readdir(), using the same smbc
context, still gives a dirent for X/Y.
I've observed this with libsmbclient from Samba 3.2.4,
3.2.7 and 3.3.0, talking to Samba and Win2K3 servers.
Two
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
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 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"
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 Dec 29
1
ext3 external journal and fstab
Hi again!
I would like to add an ext3 partition (eg. /dev/md11) with its external
journal (on /dev/md21) to /etc/fstab in order to have it mounted while
system-startup.
Do I have to specify the external journal device in fstab or does the
partition find its journal device by itself? If the first, ho should I
specify it?
I created the journal with mke2fs /dev/md22 -O journal_dev and the ext3
2024 Jan 08
0
[Announce] Samba 4.19.4 Available for Download
Release Announcements
---------------------
This is the latest stable release of the Samba 4.19 release series.
Changes since 4.19.3
--------------------
o? Samuel Cabrero <scabrero at samba.org>
?? * BUG 13577: net changesecretpw cannot set the machine account
password if
???? secrets.tdb is empty.
o? Bj?rn Jacke <bjacke at samba.org>
?? * BUG 15540: For generating doc, take,
2024 Jan 08
0
[Announce] Samba 4.19.4 Available for Download
Release Announcements
---------------------
This is the latest stable release of the Samba 4.19 release series.
Changes since 4.19.3
--------------------
o? Samuel Cabrero <scabrero at samba.org>
?? * BUG 13577: net changesecretpw cannot set the machine account
password if
???? secrets.tdb is empty.
o? Bj?rn Jacke <bjacke at samba.org>
?? * BUG 15540: For generating doc, take,
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 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
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
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 (
>
2018 Apr 17
1
[Announce] Samba 4.7.7 Available for Download
========================================================
"In politics stupidity
is not a handicap."
Napoleon Bonaparte
========================================================
Release Announcements
---------------------
This is the latest stable release of the Samba 4.7 release series.
Changes since 4.7.6:
--------------------
o Jeremy Allison <jra at
2018 Apr 17
1
[Announce] Samba 4.7.7 Available for Download
========================================================
"In politics stupidity
is not a handicap."
Napoleon Bonaparte
========================================================
Release Announcements
---------------------
This is the latest stable release of the Samba 4.7 release series.
Changes since 4.7.6:
--------------------
o Jeremy Allison <jra at
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,