1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-08 16:23:49 +03:00
Commit Graph

2807 Commits

Author SHA1 Message Date
Stefan Metzmacher
9ad3837dba r3876: fix compiler warnings
metze
2007-10-10 13:06:00 -05:00
Tim Potter
5af52c559e r3870: Delete wrappers for tdb_lockkeys() and tdb_unlockkeys(). 2007-10-10 13:06:00 -05:00
Stefan Metzmacher
db35f3b0f9 r3869: in the NDR encoded replPropertyMetaData attribute in ADS
I see a new 64 bit time field which are seconds since 1601,

this will be mapped to NTTIME by th eparsing code

+#define NTTIME_1sec NTTIME

metze
2007-10-10 13:05:59 -05:00
Jelmer Vernooij
a00bda88e1 r3861: - Put ndr and rpc client code in seperate files
- Add some const
2007-10-10 13:05:58 -05:00
Andrew Tridgell
db72290bbe r3838: use "security.NTACL" instead of "security.NTAcl" for the xattr name for ACLs 2007-10-10 13:05:58 -05:00
Andrew Tridgell
fdaa753578 r3837: added support for LsaLookupSids in the LSA rpc server. This allows the GUI ACL editor on w2k to
correctly display names instead of SIDs.
2007-10-10 13:05:58 -05:00
Andrew Tridgell
4468018cb6 r3836: - fixed the handling of NT_STATUS_BUFFER_TOO_SMALL in nttrans server
- fixed revision number on default DACL

- fixed DACL_PRESENT bit in acl query

with these fixes cacls.exe and the GUI ACL editor in w2k both work
against pvfs. The GUI editor is slow as it times out looking up the
SID -> name mappings.
2007-10-10 13:05:58 -05:00
Andrew Tridgell
05ee9179f7 r3835: - added testing of setting an initial ACL on a file using NTTRANS create
- added support for initial ACLs in pvfs backend
2007-10-10 13:05:58 -05:00
Andrew Tridgell
2e19edaa4e r3834: - fixed XATTR_NTACL_NAME
- pvfs now passes RAW-ACLS
2007-10-10 13:05:58 -05:00
Andrew Tridgell
17911eea59 r3833: NTACL is a better xattr name than DosAcl (tpot suggested this) 2007-10-10 13:05:58 -05:00
Andrew Tridgell
3a1f20d874 r3832: added NT ACL query/set to the posix NTVFS backend. The default ACL is
based on the current nttoken, which is completely wrong, but works as a start.

The ACL is stored in the xattr system.DosAcl, using a NDR encoded IDL
union with a version number to allow for future expansion.

pvfs does not yet check the ACL for file access. At the moment the ACL
is just query/set.

We also need to do some RPC work to allow the windows ACL editor to be
used. At the moment is queries the ACL fine, but displays an error
when it fails to map the SIDs via rpc.
2007-10-10 13:05:57 -05:00
Andrew Tridgell
f49c636e10 r3831: added nttrans server code for query/set security descriptor. This
means ACLs now can be set/fetched from the CIFS NTVFS backend.
2007-10-10 13:05:57 -05:00
Andrew Tridgell
f68a6b6b91 r3830: unified the query/set security descriptor code with the rest of the
queryfileinfo/setfileinfo logic, so querying/setting a security
descriptor is treated as just another file query/set operation.

This will allow NTVFS backends to see the query/set security
descriptor operations as RAW_FILEINFO_SEC_DESC and
RAW_SFILEINFO_SEC_DESC operations.
2007-10-10 13:05:57 -05:00
Andrew Tridgell
2ff9816ae0 r3829: added a RAW-ACLS test suite that tests query/set of ACLs on a file 2007-10-10 13:05:57 -05:00
Andrew Tridgell
6d53c6a0ae r3828: added testing of opening an existing file with EAs (the EAs are ignored) 2007-10-10 13:05:57 -05:00
Andrew Tridgell
c75eb85939 r3827: fixed copyright notices to remove simo and lkcl who have no code left in this file 2007-10-10 13:05:57 -05:00
Andrew Tridgell
fcd0922407 r3826: - added testing of ea lists in NTTRANS CREATE
- fixed push/pull of chained ea lists

- fixed a bug in the nttrans wire encoding
2007-10-10 13:05:57 -05:00
Andrew Tridgell
8422789c06 r3821: added client side code and test code for NTTRANS_CREATE 2007-10-10 13:05:56 -05:00
Stefan Metzmacher
b620bdd672 r3810: create a LIB_SECURITY subsystem
- move dom_sid, security_descriptor, security_* funtions to one place
  and rename some of them

metze
2007-10-10 13:05:56 -05:00
Stefan Metzmacher
2414044746 r3809: fix compiler warning
metze
2007-10-10 13:05:56 -05:00
Andrew Bartlett
3b81305e2b r3808: Put these in the same order as the IDL, to make it easier to spot what's unimplemetned (tests of the group members)
Andrew Bartlett
2007-10-10 13:05:56 -05:00
Andrew Bartlett
90398fda41 r3807: Cross-check the basic attributes for groups and aliases in RPC-SAMSYNC.
Andrew Bartlett
2007-10-10 13:05:56 -05:00
Andrew Tridgell
8379ad14e3 r3806: added support to smb_server and pvfs for the NTTRANS Create call. This
call has an optional sec_desc and ea_list.
2007-10-10 13:05:56 -05:00
Andrew Bartlett
994ac7f031 r3805: Fix the LSA portions of the RPC-SAMSYNC test - I was not using the LSA
secrets interface correctly.  (New interface added).

Andrew Bartlett
2007-10-10 13:05:55 -05:00
Andrew Bartlett
3f52fa3a42 r3804: Add more comparison tests in RPC-SAMSYNC.
This compares values for the domain and for secrets.  We still have
some problems we need to sort out for secrets.

Also rename a number of structures in samr.idl and netlogon.idl, to
better express their consistancy.

Andrew Bartlett
2007-10-10 13:05:55 -05:00
Andrew Tridgell
b7e4ec4550 r3803: fixed detection of xattr support 2007-10-10 13:05:55 -05:00
Andrew Tridgell
8a6fa43156 r3801: added allocation size rounding. This is needed for ifstest. 2007-10-10 13:05:55 -05:00
Andrew Tridgell
f4b2b1311d r3800: - fixed delete-on-close behaviour for streams
- added a delete-on-close test to RAW-STREAMS

- don't allow rename of streams at the moment (I need to work out if
  its supposed to be allowed first)
2007-10-10 13:05:55 -05:00
Andrew Tridgell
c1a48a7542 r3799: - added the bit for FS_ATTR_NAMED_STREAMS support into qfsinfo filesystem attribute reply
- pvfs passes the RAW-STREAMS test
2007-10-10 13:05:55 -05:00
Andrew Tridgell
b6452c4a20 r3798: added support for alternate data streams in xattrs into pvfs.
The trickiest part about this was getting the sharing and locking
rules right, as alternate streams are separate locking spaces from the
main file for the purposes of byte range locking, and separate for
most share violation rules.

I suspect there are still problems with delete on close with alternate
data streams. I'll look at that next.
2007-10-10 13:05:54 -05:00
Andrew Tridgell
41d8c95c94 r3793: add some streams tests that show how the :$DATA suffix is handled 2007-10-10 13:05:54 -05:00
Andrew Tridgell
f2a488e566 r3792: improved the posix -> nt error mapping, so we get things like
NT_STATUS_HOST_UNREACHABLE instead of NT_STATUS_UNSUCCESSFUL
2007-10-10 13:05:54 -05:00
Andrew Tridgell
fc9748841e r3791: fixed declaration of torture_rpc_login 2007-10-10 13:05:53 -05:00
Jelmer Vernooij
3c436590ae r3790: use a registration function that is called from dcerpc_*_init functions
rather then a large table in librpc/gen_ndr/tables.c. This will allow us
to only link in only the required gen_ndr files (speeds up linking quite a
bit, makes binaries smaller).

Each gen_ndr_* file now has a init function that calls the init functions
of the interfaces it contains. I did it this way to keep pidl's code simple,
though it might hurt startup time a bit. I'd be happy to change it if
people like one function better.
2007-10-10 13:05:53 -05:00
Stefan Metzmacher
7bb3e3751b r3789: - fix error handling
- formating changes

metze
2007-10-10 13:05:53 -05:00
Stefan Metzmacher
4839ea156f r3788: give new accounts and groups a objectGUID
metze
2007-10-10 13:05:53 -05:00
Stefan Metzmacher
8bd2e3cb4e r3787: a function to generate a random GUID
metze
2007-10-10 13:05:53 -05:00
Stefan Metzmacher
2403186562 r3786: send a mechListMIC to make the current samba3 client happy
metze
2007-10-10 13:05:53 -05:00
Stefan Metzmacher
436da375a2 r3785: this strings are not const
metze
2007-10-10 13:05:53 -05:00
Stefan Metzmacher
a2776eca83 r3784: do a samdb lookup for the DsCrackNames server
metze
2007-10-10 13:05:53 -05:00
Stefan Metzmacher
f5ee40d6ce r3783: - don't use make proto for ldb anymore
- split ldh.h out of samba's includes.h

- make ldb_context and ldb_module private to the subsystem

- use ltdb_ prefix for all ldb_tdb functions

metze
2007-10-10 13:05:52 -05:00
Stefan Metzmacher
9003698e0f r3782: use ldb_ namespace
metze
2007-10-10 13:05:52 -05:00
Stefan Metzmacher
37a8bd2e30 r3770: - fix endless recursion loop in spnego fallback code
- fix compiler warnings

metze
2007-10-10 13:05:52 -05:00
Stefan Metzmacher
461ff03ce3 r3769: fix the build of shared libraries
metze
2007-10-10 13:05:52 -05:00
Jelmer Vernooij
9929aa94ef r3768: Fix build of libraries 2007-10-10 13:05:52 -05:00
Stefan Metzmacher
7a931ea0f4 r3762: - only load the readed bytes into the input buffer
- fix compiler warnings with gcc-4.0

metze
2007-10-10 13:05:52 -05:00
Simo Sorce
0e7d875310 r3760: mention -o switch in help message 2007-10-10 13:05:52 -05:00
Simo Sorce
0d58b1dc5a r3757: Some fixes for ldb_ldap
Now we pass also the test-ldap tests :-)
2007-10-10 13:05:51 -05:00
Volker Lendecke
614dbd8fec r3756: Fix netbios session request reply. The buffer should not be a stack-based
variable that is overwritten later.

Samba3 smbclient still does not like Samba4. In ntlmssp samba3 smbclient
expects an mechlistmic that 4 does not send.

Volker
2007-10-10 13:05:51 -05:00
Simo Sorce
0b715b6ce2 r3755: add missing files 2007-10-10 13:05:51 -05:00