search for: query_secdesc

Displaying 5 results from an estimated 5 matches for "query_secdesc".

2003 May 21
1
python bindings api
...bit of code: from samba import smb creds = {...} # domain,username,password cnn = smb.connect("svr1") cnn.session_request("svr1") cnn.negprot() cnn.session_setup(creds) cnn.tconx("c$") fnum = cnn.nt_create_andx("boot.ini", FLAGS) # FLAGS = 1 secdesc = cnn.query_secdesc(fnum) Which raises the error: prs_mem_get: reading data of size 2 would overrun buffer. Failed to parse secdesc Traceback (most recent call last): File "<stdin>", line 1, in ? RuntimeError: query_secdesc failed - What are the valid values for FLAGS in the nt_create_andx api?...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
...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_secdesc.level = RAW_FILEINFO_SEC_DESC; > + q.query_secdesc.in.file.handle = dhandle; > + q.query_secdesc.in.secinfo_flags = SECINFO_DACL | SECINFO_OWNER | SECINFO_GROUP; > + status = smb2_getinfo_file(tree, tctx, &q); > + torture_assert_ntstatus_ok_goto(tctx, status, ret, done, "smb2_g...
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
...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_secdesc.level = RAW_FILEINFO_SEC_DESC; > + q.query_secdesc.in.file.handle = dhandle; > + q.query_secdesc.in.secinfo_flags = SECINFO_DACL | SECINFO_OWNER | SECINFO_GROUP; > + status = smb2_getinfo_file(tree, tctx, &q); > + torture_assert_ntstatus_ok_goto(tctx, status, ret, done, "smb2_g...
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