Displaying 20 results from an estimated 400 matches similar to: "libsmbclient: readdir caches dirents?"
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 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
2008 Aug 22
2
smbclient 3.2: smbc errno NT_STATUS_OK -> 22
As I was upgrading other things, the Debian package management system required me to upgrade Samba, from 3.0.24-6 to 3.2.0-4.
All the sudden it quit working, which means I can't run an smbget or smbclient will allow DIR and CD but not GET. Either way with the new version I get (debugging on at level 10)
smbc errno NT_STATUS_OK -> 22
followed by
Can't read 64000 bytes at offset 0, file
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 Dec 11
0
libsmbclient smbc_context problems.
Hello all!
I have a problem/question regarding sambas context caching.
I have a little C module which uses some basic functions from
libsmbclient. I.e smbc.opendir().
When I use this from a linux terminal and supply a user/pass it works
as it should. (Access granted when right user/pass and access denied
when wrong pass. Obviously! :))
The problem is that if I use the module from a web
2010 Aug 04
1
'force create mode' not working when 'unix extensions = yes'
The parameters 'force create mode' and 'force directory mode' have no effect when the option 'unix extensions' is active. The documentation does not report any interaction between the unix extensions and the forced modes, so I'm assuming it's a bug.I'd like to know if it is a known bug ?Has it been solved, if so in which version ?
My server runs Debian lenny,
2020 Sep 07
4
NT_STATUS_NETWORK_SESSION_EXPIRED
Hi,
Looking for some help with this issue, been struggling for a few weeks
We run a file server using Samba 4.9.5 (openSUSE Leap 15.2
4.9.5+git.343.4bc358522a9-lp151.2.27.1).
Active Directory using Windows Server 2016. The Samba server is a
member of the domain. Windows 10 desktops and Linux desktops are also
domain members.
Windows 10 desktops map network drives to the Samba server, no issues
2014 Mar 24
0
Cannot list directory with smbclient
I'm using BackupPC to back up a windows server 2008 R2 machine using smb
(which invokes the smbclient program).
I'm aware that junction points give errors during the backup as in
NT_STATUS_ACCESS_DENIED listing \Documents and Settings\*
but I'm fine with that. The problem I'm having is not about a junction
point, but with a normal directory. This directory is not being backed
2004 May 09
1
Samba 2.2.9 Available for Download
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This is the latest stable release of the Samba 2.2 code base.
This is a maintenance release of Samba 2.2.8a to address the
problem with user password changes after applying the Microsoft
hotfix described in KB282741 to Windows NT 4.0/200x/XP clients.
No other changes have been applied since Samba 2.2.8a.
There are no further Samba 2.2.x releases
2004 May 09
1
Samba 2.2.9 Available for Download
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This is the latest stable release of the Samba 2.2 code base.
This is a maintenance release of Samba 2.2.8a to address the
problem with user password changes after applying the Microsoft
hotfix described in KB282741 to Windows NT 4.0/200x/XP clients.
No other changes have been applied since Samba 2.2.8a.
There are no further Samba 2.2.x releases
1999 Jun 30
0
How to backup from Win to Linux using smb
> I have big problem: I need to automaticaly copy files from Win'pc to Linux
> server.
I submitted this one to the mailing list awhile back, but I've made some
improvements, so here it is again.
We have cron run a script every night that backs up all the systems (Win and
Unix) to a single tape. Naturally, the tape capacity needs to be large enough
for all the systems involved.
2011 Jun 03
2
missing symbols talloc_* (opensuse 11.4/samba 3.5.7-xxx)
I just recently upgraded to opensuse 11.4.
basic smbd is running mostly fine (some name res-errors, login server missing, (can't connect to Domain service). Notably nmbd won't start due
to undefined symbols:
/usr/sbin/nmbd: symbol lookup error: /usr/sbin/nmbd: undefined symbol: _talloc_realloc_array.
ldd -r shows a bunch of similar undefined symbols (shown further below).
my samba rpm
2014 Oct 31
4
[PATCH] fish: fix dir completion on filesystems w/o dirent.d_type (RHBZ#1153844).
On filesystems whose dirent.d_type is DT_UNKNOWN or some unknown value,
manually check whether an entry is a directory, thus completing in the
proper way.
---
fish/destpaths.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/fish/destpaths.c b/fish/destpaths.c
index f224106..df1ec00 100644
--- a/fish/destpaths.c
+++ b/fish/destpaths.c
@@ -191,7 +191,13 @@
1998 Nov 18
5
PC Backup Script?
I am trying to setup my Sun running samba 1.9.18p10 so that it can
backup my dept's PCs. I can get it to work manually using the
smbclient command with no problem. What I would like to do is have
a script that is able to take a list of PCs, determine if a PC is online,
backup that PC, then move on to the next one. If a PC is down,
it can report an error to the admin to state that the
2014 Oct 31
0
Re: [PATCH] fish: fix dir completion on filesystems w/o dirent.d_type (RHBZ#1153844).
On Fri, Oct 31, 2014 at 05:56:10PM +0100, Pino Toscano wrote:
> On filesystems whose dirent.d_type is DT_UNKNOWN or some unknown value,
> manually check whether an entry is a directory, thus completing in the
> proper way.
Happens on Windows (NTFS) too, and it's also annoying there ...
> ---
> fish/destpaths.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
2006 Jan 06
1
Folder with a questionmark "?mnt1"
Hey guys,
i had a folder ~/mnt1 where a smbmount was mounted in.
I browsed the subnet with smbc as normal user, than my ssh connection
crashed because of disconnecting my remote wlan. :-/
Now i cannot access to mnt1, even root can't. The folder listing needs a
lot of time and does not list mnt1 anymore.
The midnight comander (mc) shows that folder in red color with the name
?mnt1 also after
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
2020 Sep 07
0
NT_STATUS_NETWORK_SESSION_EXPIRED
On 07/09/2020 09:51, David Mace via samba wrote:
> Hi,
>
> Looking for some help with this issue, been struggling for a few weeks
>
> We run a file server using Samba 4.9.5 (openSUSE Leap 15.2
> 4.9.5+git.343.4bc358522a9-lp151.2.27.1).
>
> Active Directory using Windows Server 2016. The Samba server is a
> member of the domain. Windows 10 desktops and Linux desktops are
2020 Sep 07
0
NT_STATUS_NETWORK_SESSION_EXPIRED
Check
/etc/krb5.conf
[libdefaults]
default_realm = YOUR.INTERNAL.REALM
# The following krb5.conf variables are only for MIT Kerberos.
kdc_timesync = 1
ccache_type = 4 < this one best is to match the windows defaults.
(see: https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/maximum-lifetime-for-service-ticket )
2008 Jul 01
13
[ANNOUNCE] Samba 3.2.0 Available for Download
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
==============================================================
"Patience is the companion of wisdom."
Saint Augustine
==============================================================
Release Announcements
=====================
This is the first stable release of Samba 3.2.0.
Please be aware that Samba is now distributed under