search for: smbc_getxattr

Displaying 15 results from an estimated 15 matches for "smbc_getxattr".

2008 Dec 17
2
Segmentation fault in smbc_getxattr()->...->convert_sid_to_string() in samba-3.2.6
...000033a8661bb4 in vsnprintf () from /lib64/tls/libc.so.6 #3 0x00000033a86481a1 in snprintf () from /lib64/tls/libc.so.6 #4 0x00002aaaaaaebf36 in convert_sid_to_string () from /usr/lib/libsmbclient.so.0 #5 0x00002aaaaaaedbda in cacl_get () from /usr/lib/libsmbclient.so.0 #6 0x00002aaaaaaf05ff in SMBC_getxattr_ctx () from /usr/lib/libsmbclient.so.0 #7 0x00002aaaaaae1d75 in smbc_getxattr () from /usr/lib/libsmbclient.so.0 #8 0x0000000000400fad in main () Can somebody please help me solve this. I'm unable to use smbc_getxattr() in the latest version of samba. thanks, -Kishore
2011 Jun 13
1
Out of memory error while calling smbc_getxattr().
Hi, I'm using samba 3.2.6 and getting the following error whille calling? smbc_getxattr(). cli_lsa_lookup_sids_noalloc(): out of memory Here is the relavent code snippet of the function cli_lsa_lookup_sids_noalloc()... if (dom_idx != 0xffffffff) { ??????????????????????? dom_name = ref_domains->domains[dom_idx].name.string; ??????????????????????? name = lsa_names.names[i].na...
2020 May 25
2
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...will be printed and not the owner of ?dir? (not even the user I?m connecting as). I can get the real owner & group via: > const char *owner_attr = "system.nt_sec_desc.owner+"; > const char *group_attr = "system.nt_sec_desc.group+"; > char buf[256]; > > smbc_getxattr(path, owner_attr, buf, sizeof(buf)): > printf("Owner='%s'\n", path, buf); > smbc_getxattr(path, group_attr, buf, sizeof(buf)) < 0) > printf(?Group=%s\n?, buf); (And then manually translating the username & group in but to an uid/gid - so I can work around it but i...
2020 May 28
2
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...kly confusing/frustrating tools to manage ACL currently available. So I can now use the same command on all platforms. It current builds and works for Linux, FreeBSD, Solaris & MacOS and I?ve also recently added SMB support to it (via libsmbclient, currently requires Kerberos. I?ve been using smbc_getxattr() and smbc_setxattr() for reading and writing SMB ACLs, but there are some problems with that so I?ve started wondering if perhaps there is some better way I _should_ use instead? Something that doesn?t gets in the way and re-orders ACLs under my feet for example... ( Problems with ACLs being reor...
2020 May 27
0
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...not even the user I?m connecting as). > > > I can get the real owner & group via: > > > const char *owner_attr = "system.nt_sec_desc.owner+"; > > const char *group_attr = "system.nt_sec_desc.group+"; > > char buf[256]; > > > > smbc_getxattr(path, owner_attr, buf, sizeof(buf)): > > printf("Owner='%s'\n", path, buf); > > smbc_getxattr(path, group_attr, buf, sizeof(buf)) < 0) > > printf(?Group=%s\n?, buf); > > (And then manually translating the username & group in but to an uid/gid - so I...
2011 Jun 20
2
How do i get file attributes using samba.
Hi, I need to extract the following attributes of a file in Windows share using samba. /* FileAttributesField */ #define FILE_ATTRIBUTE_READONLY???????? 0x001L #define FILE_ATTRIBUTE_HIDDEN?????????? 0x002L #define FILE_ATTRIBUTE_SYSTEM?????????? 0x004L #define FILE_ATTRIBUTE_DIRECTORY??????? 0x010L #define FILE_ATTRIBUTE_ARCHIVE????????? 0x020L #define FILE_ATTRIBUTE_NORMAL?????????? 0x080L
2019 Jul 13
0
rsync alternative -- smbclient?
...s way easier than hand-coding a CPython extension). But then I ran across a bug [3] in libsmbclient in 4.9.x that prevents the notify API from working. Sigh. The biggest problem, however, is the discontinuity in the way ACLs / xattrs are handled -- libsmbclient appears to translate the ACLs in the smbc_getxattr() API, and there's no way to "apply" those to the Linux filesystem backing the Sysvol share. (I don't have my notes with specifics in front of me, but I remember looking at the result of smbc_getxattr() and thinking "okay, what syscall am I supposed to use to apply these to /...
2019 Jul 13
2
rsync alternative -- smbclient?
As you may have noticed I am looking into containers? in order to minimize configuration I also started looking into options for sysvol replication. I am aware of the list at https://wiki.samba.org/index.php/SysVol_replication_(DFS-R) Ignoring the robocopy option, essentially all of them use rsync, w/o ssh, w/o some extras like unison, osync, or lsyncd as Sven suggested, plus optionally defining a
2011 Jun 21
0
[jra@samba.org: Re: How do i get file attributes using samba.]
...M -0700, naga_kishore_kommuri at yahoo.com wrote: > Hi Allison, > Thanks for the reply. > Yes I tried system.dos_attr.mode. > But I think it will? give the following attributes only. Snippet from libsmbclient.h..... > .... > /* > ?* Mappings of the DOS mode bits, as returned by smbc_getxattr() when the > ?* attribute name "system.dos_attr.mode" (or "system.dos_attr.*" or > ?* "system.*") is specified. > ?*/ > #define SMBC_DOS_MODE_READONLY?????? 0x01 > #define SMBC_DOS_MODE_HIDDEN???????? 0x02 > #define SMBC_DOS_MODE_SYSTEM???????? 0x04 &...
2023 Sep 27
0
[Announce] Samba 4.18.7 Available for Download
...?? * BUG 15401: Avoid infinite loop in initial user sync with Azure AD Connect. ?? * BUG 15407: Samba replication logs show (null) DN. o? Ralph Boehme <slow at samba.org> ?? * BUG 15463: macOS mdfind returns only 50 results. o? Remi Collet <rcollet at redhat.com> ?? * BUG 14808: smbc_getxattr() return value is incorrect. o? Volker Lendecke <vl at samba.org> ?? * BUG 15481: GETREALFILENAME_CACHE can modify incoming new filename with ???? previous cache entry value. o? Stefan Metzmacher <metze at samba.org> ?? * BUG 15464: libnss_winbind causes memory corruption since sam...
2023 Sep 27
0
[Announce] Samba 4.18.7 Available for Download
...?? * BUG 15401: Avoid infinite loop in initial user sync with Azure AD Connect. ?? * BUG 15407: Samba replication logs show (null) DN. o? Ralph Boehme <slow at samba.org> ?? * BUG 15463: macOS mdfind returns only 50 results. o? Remi Collet <rcollet at redhat.com> ?? * BUG 14808: smbc_getxattr() return value is incorrect. o? Volker Lendecke <vl at samba.org> ?? * BUG 15481: GETREALFILENAME_CACHE can modify incoming new filename with ???? previous cache entry value. o? Stefan Metzmacher <metze at samba.org> ?? * BUG 15464: libnss_winbind causes memory corruption since sam...
2023 Jan 26
0
[Announce] Samba 4.17.5 Available for Download
Release Announcements --------------------- This is the latest stable release of the Samba 4.17 release series. Changes since 4.17.4 -------------------- o? Jeremy Allison <jra at samba.org> ?? * BUG 14808: smbc_getxattr() return value is incorrect. ?? * BUG 15172: Compound SMB2 FLUSH+CLOSE requests from MacOSX are not handled ???? correctly. ?? * BUG 15210: synthetic_pathref AFP_AfpInfo failed errors. ?? * BUG 15226: samba-tool gpo listall fails IPv6 only - finddcs() fails to find ???? DC when there is only...
2023 Jan 26
0
[Announce] Samba 4.17.5 Available for Download
Release Announcements --------------------- This is the latest stable release of the Samba 4.17 release series. Changes since 4.17.4 -------------------- o? Jeremy Allison <jra at samba.org> ?? * BUG 14808: smbc_getxattr() return value is incorrect. ?? * BUG 15172: Compound SMB2 FLUSH+CLOSE requests from MacOSX are not handled ???? correctly. ?? * BUG 15210: synthetic_pathref AFP_AfpInfo failed errors. ?? * BUG 15226: samba-tool gpo listall fails IPv6 only - finddcs() fails to find ???? DC when there is only...
2023 Feb 16
1
[Announce] Samba 4.16.9 Available for Download
Release Announcements --------------------- This is the latest stable release of the Samba 4.16 release series. Changes since 4.16.8 -------------------- o? Jeremy Allison <jra at samba.org> ?? * BUG 14808: smbc_getxattr() return value is incorrect. ?? * BUG 15172: Compound SMB2 FLUSH+CLOSE requests from MacOSX are not handled ???? correctly. ?? * BUG 15210: synthetic_pathref AFP_AfpInfo failed errors. ?? * BUG 15226: samba-tool gpo listall fails IPv6 only - finddcs() fails to find ???? DC when there is only...
2023 Feb 16
1
[Announce] Samba 4.16.9 Available for Download
Release Announcements --------------------- This is the latest stable release of the Samba 4.16 release series. Changes since 4.16.8 -------------------- o? Jeremy Allison <jra at samba.org> ?? * BUG 14808: smbc_getxattr() return value is incorrect. ?? * BUG 15172: Compound SMB2 FLUSH+CLOSE requests from MacOSX are not handled ???? correctly. ?? * BUG 15210: synthetic_pathref AFP_AfpInfo failed errors. ?? * BUG 15226: samba-tool gpo listall fails IPv6 only - finddcs() fails to find ???? DC when there is only...