search for: zero_struct

Displaying 20 results from an estimated 22 matches for "zero_struct".

2002 May 09
1
patch to configure.in for Solaris/gcc (-KPIC vs. -fPIC)
To Solaris admins.... Here's a patch for 2.2.4 for building on Solaris using GCC. You'll need to rerun autoconf after applying.... The second patch removes compiler warnings about redefinitions of ZERO_STRUCT. Now winbind should compile on solaris quietly. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org --...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0454: Format string bug in afsacl.so VFS plugin
...---------- next part -------------- diff -urN samba-3.0.23d/source/modules/vfs_afsacl.c samba/source/modules/vfs_afsacl.c --- samba-3.0.23d/source/modules/vfs_afsacl.c 2006-06-23 08:16:50.000000000 -0500 +++ samba/source/modules/vfs_afsacl.c 2007-01-29 20:11:07.000000000 -0600 @@ -901,7 +901,7 @@ ZERO_STRUCT(dir_acl); ZERO_STRUCT(file_acl); - pstr_sprintf(name, fsp->fsp_name); + pstrcpy(name, fsp->fsp_name); if (!fsp->is_directory) { /* We need to get the name of the directory containing the -------------- next part -------------- -----BEGIN PGP SIGNATURE----- Version: GnuP...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0454: Format string bug in afsacl.so VFS plugin
...---------- next part -------------- diff -urN samba-3.0.23d/source/modules/vfs_afsacl.c samba/source/modules/vfs_afsacl.c --- samba-3.0.23d/source/modules/vfs_afsacl.c 2006-06-23 08:16:50.000000000 -0500 +++ samba/source/modules/vfs_afsacl.c 2007-01-29 20:11:07.000000000 -0600 @@ -901,7 +901,7 @@ ZERO_STRUCT(dir_acl); ZERO_STRUCT(file_acl); - pstr_sprintf(name, fsp->fsp_name); + pstrcpy(name, fsp->fsp_name); if (!fsp->is_directory) { /* We need to get the name of the directory containing the -------------- next part -------------- -----BEGIN PGP SIGNATURE----- Version: Gnu...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0453: Buffer overrun in nss_winbind.so.1 on Solaris
...trncpy(request.data.winsreq, argp->key.name, sizeof(request.data.winsreq) - 1); + request.data.winsreq[sizeof(request.data.winsreq) - 1] = '\0'; if( (ret = winbindd_request_response(WINBINDD_WINS_BYNAME, &request, &response)) == NSS_STATUS_SUCCESS ) { @@ -515,7 +516,8 @@ ZERO_STRUCT(response); ZERO_STRUCT(request); - strncpy(request.data.winsreq, argp->key.name, strlen(argp->key.name)); + strncpy(request.data.winsreq, argp->key.name, sizeof(request.data.winsreq) - 1); + request.data.winsreq[sizeof(request.data.winsreq) - 1] = '\0'; if( (ret = winbindd...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0453: Buffer overrun in nss_winbind.so.1 on Solaris
...trncpy(request.data.winsreq, argp->key.name, sizeof(request.data.winsreq) - 1); + request.data.winsreq[sizeof(request.data.winsreq) - 1] = '\0'; if( (ret = winbindd_request_response(WINBINDD_WINS_BYNAME, &request, &response)) == NSS_STATUS_SUCCESS ) { @@ -515,7 +516,8 @@ ZERO_STRUCT(response); ZERO_STRUCT(request); - strncpy(request.data.winsreq, argp->key.name, strlen(argp->key.name)); + strncpy(request.data.winsreq, argp->key.name, sizeof(request.data.winsreq) - 1); + request.data.winsreq[sizeof(request.data.winsreq) - 1] = '\0'; if( (ret = winbindd...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
..._assert_goto(tctx, ok == true, ret, done, > + "Unable to connect to 'acl_xattr_ign_sysacl_posix'\n"); > + > + ok = smb2_util_setup_dir(tctx, tree, BASEDIR); > + torture_assert_goto(tctx, ok == true, ret, done, "Unable to setup testdir\n"); > + > + ZERO_STRUCT(dhandle); > + status = torture_smb2_testdir(tree, dname, &dhandle); > + torture_assert_ntstatus_ok_goto(tctx, status, ret, done, "torture_smb2_testdir\n"); > + > + torture_comment(tctx, "Get the original sd\n"); > + > + ZERO_STRUCT(q); > + q.query_secdes...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 06:33:26PM +0200, Ralph Böhme via samba wrote: > On Thu, Aug 25, 2016 at 12:14:00PM -0700, Jeremy Allison wrote: > > On Wed, Aug 24, 2016 at 04:06:42PM +0200, Ralph Böhme via samba wrote: > > > > > > Yeah, as much as I'd like to avoid adding a new option, I guess we > > > have to do something about it, my latest take on this is >
2016 Aug 29
1
Issue with acl_xattr:ignore system acls in 4.5rc2
..._assert_goto(tctx, ok == true, ret, done, > + "Unable to connect to 'acl_xattr_ign_sysacl_posix'\n"); > + > + ok = smb2_util_setup_dir(tctx, tree, BASEDIR); > + torture_assert_goto(tctx, ok == true, ret, done, "Unable to setup testdir\n"); > + > + ZERO_STRUCT(dhandle); > + status = torture_smb2_testdir(tree, dname, &dhandle); > + torture_assert_ntstatus_ok_goto(tctx, status, ret, done, "torture_smb2_testdir\n"); > + > + torture_comment(tctx, "Get the original sd\n"); > + > + ZERO_STRUCT(q); > + q.query_secdes...
2016 Aug 27
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 04:03:49PM -0700, Jeremy Allison wrote: > On Fri, Aug 26, 2016 at 02:46:19PM -0700, Jeremy Allison via samba wrote: > > On Fri, Aug 26, 2016 at 06:44:05PM +0200, Ralph Böhme wrote: > > > > > > Cheerio! > > > -slow > > > > Still reviewing this - but a few things that will need changing: > > > > When adding the
2002 Nov 08
4
How to Refresh jobs in samba queues ??
Hi all, I have working properly a print server with samba-2.2.6 and using the printing system lprng. I have just the following problem, when I open the window queue to see the jobs in it from Win2K and WinNT workstation the queues are not refreshing, I have to push F5 key continously to refresh the queue jobs information. Is there a way in samba or windows (I don't know where is the
2006 Jul 13
2
Kerberos Keytab Code Update in 3.0.23
First thing - I'd like to say a big "THANK YOU" to the developers. I just upgraded to samba-3.0.23 and I've noticed an alarming issue with respect to my configuration. I've been using the built-in keytab management and it looks like the updated code no longer creates the userPrincipal in Active Directory. Whether this is an issue for others or not, it would be nice to have
2005 Mar 17
0
usrmgr.exe and problems
...(IS_SAM_CHANGED(pwd, PDB_GROUPSID)) - set_unix_primary_group(pwd); + if (IS_SAM_CHANGED(pwd, PDB_GROUPSID) && !set_unix_primary_group(pwd) ) { + pdb_free_sam(&pwd); + return False; + } /* write the change out */ if(!pdb_update_sam_account(pwd)) { @@ -2933,8 +2935,10 @@ ZERO_STRUCT(plaintext_buf); - if (IS_SAM_CHANGED(pwd, PDB_GROUPSID)) - set_unix_primary_group(pwd); + if (IS_SAM_CHANGED(pwd, PDB_GROUPSID) && !set_unix_primary_group(pwd) ) { + pdb_free_sam(&pwd); + return False; + } if(!pdb_update_sam_account(pwd)) { pdb_free_sam(&pwd); @@ -3624,...
2008 Jul 22
2
Samba 3.2 PDC - Creating Zone Identifier files and not able to read/write/delete them.
Hello, I use a Suse 11.0 as a Samba 3.2 PDC. The clients run XP SP3. I have upgraded a few weeks ago from Suse 10.3 and now all files tranfer that I do - for example, downloading a file using a web browser - it leaves a trash file named "transferd-file:Zone.Identifier" or "tranferd-file:encryptable". The odd thing is that from Windows I can`t read/write/delete these files.
1999 Oct 08
0
FW: lsa query failing
...DEBUG(0,("api_lsa_close: prs_uint32 %d failed.\n", ! (int)i )); ! return False; ! } } ! return True; } --- 586,601 ---- static BOOL api_lsa_close( uint16 vuid, prs_struct *data, prs_struct *rdata) { ! LSA_R_CLOSE r_c; ! ! ZERO_STRUCT(r_c); ! ! /* store the response in the SMB stream */ ! if (!lsa_io_r_close("", &r_c, rdata, 0)) { ! DEBUG(0,("api_lsa_close: lsa_io_r_close failed.\n")); ! return False; } ! return True; } Alan. -----Original Message----- From: Luke Kenneth Casson L...
2005 May 11
1
SV: Error with usrmgr and groups.
It's exactly the same. Except that I use tdbsam instead of ldap and the error message therefore also is different in the log file. But the example and result is the same. Do you have any idea of workaround or fix? Cheers, Joel -----Ursprungligt meddelande----- Fr?n: Doug Campbell [mailto:doug@bpta.net] Skickat: den 11 maj 2005 10:49 Till: Joel Larsson, PF, Posten; samba@lists.samba.org
2017 Mar 02
0
cifs-utils release 6.7 ready for download
...Simo Sorce <simo at redhat.com>     Signed-off-by: Jeff Layton <jlayton at samba.org> commit 912cbe49114392bd7c375c4c37698d406eb0660e Author: Jeff Layton <jlayton at samba.org> Date:   Thu Feb 23 18:49:59 2017 -0500     data_blob: remove need for replace.h          We only need ZERO_STRUCT there.          Signed-off-by: Jeff Layton <jlayton at samba.org> commit ebdd0a9d9745f19a13415a65914dcc9993f28e96 Author: Jeff Layton <jlayton at samba.org> Date:   Thu Feb 23 20:56:27 2017 -0500     spengo.c/asn1.c: remove need for replace.h          Just need stdbool.h instead.     ...
2019 Feb 22
0
[Announce] Samba 4.10.0rc3 Available for Download
...6: printing: Check lp_load_printers() prior to pcap cache update. o Christof Schmitt <cs at samba.org> * BUG 13787: waf: Check for libnscd. o Andreas Schneider <asn at samba.org> * BUG 13770: s3:vfs: Correctly check if OFD locks should be enabled or not. * BUG 13778: Public ZERO_STRUCT() uses undefined C11 function memset_s(). CHANGES SINCE 4.10.0rc1 ======================= o Jeremy Allison <jra at samba.org> * BUG 13750: libcli: dns: Change internal DNS_REQUEST_TIMEOUT from 2 to 10 seconds. o Tim Beale <timbeale at catalyst.net.nz> * BUG 13676: samba...
2019 Feb 22
0
[Announce] Samba 4.10.0rc3 Available for Download
...6: printing: Check lp_load_printers() prior to pcap cache update. o Christof Schmitt <cs at samba.org> * BUG 13787: waf: Check for libnscd. o Andreas Schneider <asn at samba.org> * BUG 13770: s3:vfs: Correctly check if OFD locks should be enabled or not. * BUG 13778: Public ZERO_STRUCT() uses undefined C11 function memset_s(). CHANGES SINCE 4.10.0rc1 ======================= o Jeremy Allison <jra at samba.org> * BUG 13750: libcli: dns: Change internal DNS_REQUEST_TIMEOUT from 2 to 10 seconds. o Tim Beale <timbeale at catalyst.net.nz> * BUG 13676: samba...
2019 Mar 06
0
[Announce] Samba 4.10.0rc4 Available for Download
...6: printing: Check lp_load_printers() prior to pcap cache update. o Christof Schmitt <cs at samba.org> * BUG 13787: waf: Check for libnscd. o Andreas Schneider <asn at samba.org> * BUG 13770: s3:vfs: Correctly check if OFD locks should be enabled or not. * BUG 13778: Public ZERO_STRUCT() uses undefined C11 function memset_s(). CHANGES SINCE 4.10.0rc1 ======================= o Jeremy Allison <jra at samba.org> * BUG 13750: libcli: dns: Change internal DNS_REQUEST_TIMEOUT from 2 to 10 seconds. o Tim Beale <timbeale at catalyst.net.nz> * BUG 13676: samba...
2019 Mar 06
0
[Announce] Samba 4.10.0rc4 Available for Download
...6: printing: Check lp_load_printers() prior to pcap cache update. o Christof Schmitt <cs at samba.org> * BUG 13787: waf: Check for libnscd. o Andreas Schneider <asn at samba.org> * BUG 13770: s3:vfs: Correctly check if OFD locks should be enabled or not. * BUG 13778: Public ZERO_STRUCT() uses undefined C11 function memset_s(). CHANGES SINCE 4.10.0rc1 ======================= o Jeremy Allison <jra at samba.org> * BUG 13750: libcli: dns: Change internal DNS_REQUEST_TIMEOUT from 2 to 10 seconds. o Tim Beale <timbeale at catalyst.net.nz> * BUG 13676: samba...