metze/samba/wip.git
16 years agor3888: Just proving :-) to tridge that a Setfileinfo with a modified
Jeremy Allison [Sat, 20 Nov 2004 02:33:12 +0000 (02:33 +0000)]
r3888: Just proving :-) to tridge that a Setfileinfo with a modified
write time is sticky, and causes any subsequent writes not to update
the last write time. Added write that extends the file followed by
fnum specific smbflush. It stays the same time :-).
Jeremy.
(This used to be commit a2ea2166dcb7044d7b9e53417e53febea2f81e20)

16 years agor3887: Much better understanding of delayed write time, and the interaction
Jeremy Allison [Sat, 20 Nov 2004 01:51:32 +0000 (01:51 +0000)]
r3887: Much better understanding of delayed write time, and the interaction
with setfileinfo modifying the write time. I have some ideas on how
to emulate this in the Samba server now but the commented case will
be very hard...
Jeremy.
(This used to be commit c9211d084719a16f671b315a9c0bc6ed59fa8c8e)

16 years agor3886: Trying to understand delayed file write update times. Added another
Jeremy Allison [Sat, 20 Nov 2004 01:09:25 +0000 (01:09 +0000)]
r3886: Trying to understand delayed file write update times. Added another
test that uses 2 connections and queries the time via pathinfo, not fileinfo.
MSDN states : "When writing to a file, the last write time is not fully updated
until all handles used for writing have been closed." - but this is obviously
untrue. W2K3 seems to use a 2 second granularity for this. Next I'll try using
SetFileTime equivalent to see if this takes the same time to take effect.
Jeremy.
(This used to be commit 2e47e241f98c3dba8be346cea726def38399eb97)

16 years agor3885: Add security descriptor comparison to our RPC-SAMSYNC test. We now
Andrew Bartlett [Sat, 20 Nov 2004 00:29:04 +0000 (00:29 +0000)]
r3885: Add security descriptor comparison to our RPC-SAMSYNC test.  We now
verify that the security descriptor found in the SamSync is the same
as what is available over SAMR.

Unfortunately, the administrator seems unable to retrieve the SACL on
the security descriptor, so I've added a new function to compare with
a mask.

Andrew Bartlett
(This used to be commit 39ae5e1dac31a22086be50fb23261e02be877f3f)

16 years agor3881: Split up the LIBNDR_GEN subsystem into NDR_* and RPC_NDR_* subsystems.
Jelmer Vernooij [Fri, 19 Nov 2004 20:21:13 +0000 (20:21 +0000)]
r3881: Split up the LIBNDR_GEN subsystem into NDR_* and RPC_NDR_* subsystems.
This reduces the total size of the samba binaries from 119 Mb to 73 Mb.
Next step will be to have the build system obtain some of this information
by itself, so that we don't have to write ~10 lines per interface manually.
(This used to be commit 16d905f6b0cbec591eebc44ee2ac9516a5730378)

16 years agor3876: fix compiler warnings
Stefan Metzmacher [Fri, 19 Nov 2004 15:43:35 +0000 (15:43 +0000)]
r3876: fix compiler warnings

metze
(This used to be commit 9ad3837dbad6dbf5ee0122be2bbffac325ece9be)

16 years agor3870: Delete wrappers for tdb_lockkeys() and tdb_unlockkeys().
Tim Potter [Fri, 19 Nov 2004 02:57:35 +0000 (02:57 +0000)]
r3870: Delete wrappers for tdb_lockkeys() and tdb_unlockkeys().
(This used to be commit 5af52c559e731d55ccd019a2b06f486a2f86e6ce)

16 years agor3869: in the NDR encoded replPropertyMetaData attribute in ADS
Stefan Metzmacher [Fri, 19 Nov 2004 02:35:48 +0000 (02:35 +0000)]
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
(This used to be commit db35f3b0f99943311ff8b797e8336616dab28220)

16 years agor3861: - Put ndr and rpc client code in seperate files
Jelmer Vernooij [Thu, 18 Nov 2004 20:53:23 +0000 (20:53 +0000)]
r3861: - Put ndr and rpc client code in seperate files
- Add some const
(This used to be commit a00bda88e1b6abdc36e5aa8c2a35f64855f67c96)

16 years agor3838: use "security.NTACL" instead of "security.NTAcl" for the xattr name for ACLs
Andrew Tridgell [Thu, 18 Nov 2004 05:35:48 +0000 (05:35 +0000)]
r3838: use "security.NTACL" instead of "security.NTAcl" for the xattr name for ACLs
(This used to be commit db72290bbe87644a89385c465855629a1f881e4f)

16 years agor3837: added support for LsaLookupSids in the LSA rpc server. This allows the GUI...
Andrew Tridgell [Thu, 18 Nov 2004 05:17:24 +0000 (05:17 +0000)]
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.
(This used to be commit fdaa753578c7b80806d4040ed131f87ddbf988e0)

16 years agor3836: - fixed the handling of NT_STATUS_BUFFER_TOO_SMALL in nttrans server
Andrew Tridgell [Thu, 18 Nov 2004 04:19:26 +0000 (04:19 +0000)]
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.
(This used to be commit 4468018cb63fd884920c2b0f5235bded50c6b5db)

16 years agor3835: - added testing of setting an initial ACL on a file using NTTRANS create
Andrew Tridgell [Thu, 18 Nov 2004 03:59:24 +0000 (03:59 +0000)]
r3835: - added testing of setting an initial ACL on a file using NTTRANS create

- added support for initial ACLs in pvfs backend
(This used to be commit 05ee9179f74d243aa22fa00be7873c5db76a8ad1)

16 years agor3834: - fixed XATTR_NTACL_NAME
Andrew Tridgell [Thu, 18 Nov 2004 03:45:06 +0000 (03:45 +0000)]
r3834: - fixed XATTR_NTACL_NAME

- pvfs now passes RAW-ACLS
(This used to be commit 2e19edaa4ebc96b3e95e0b55c4fae8eaefd642b2)

16 years agor3833: NTACL is a better xattr name than DosAcl (tpot suggested this)
Andrew Tridgell [Thu, 18 Nov 2004 03:41:50 +0000 (03:41 +0000)]
r3833: NTACL is a better xattr name than DosAcl (tpot suggested this)
(This used to be commit 17911eea5995c12a2300dd3928612c77f8f0883e)

16 years agor3832: added NT ACL query/set to the posix NTVFS backend. The default ACL is
Andrew Tridgell [Thu, 18 Nov 2004 03:31:35 +0000 (03:31 +0000)]
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.
(This used to be commit 3a1f20d874ab2d8b2a2f2485b7a705847abf1263)

16 years agor3831: added nttrans server code for query/set security descriptor. This
Andrew Tridgell [Thu, 18 Nov 2004 02:06:11 +0000 (02:06 +0000)]
r3831: added nttrans server code for query/set security descriptor. This
means ACLs now can be set/fetched from the CIFS NTVFS backend.
(This used to be commit f49c636e10f1e4bba506baadb67a0e288f1717c4)

16 years agor3830: unified the query/set security descriptor code with the rest of the
Andrew Tridgell [Thu, 18 Nov 2004 01:41:43 +0000 (01:41 +0000)]
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.
(This used to be commit f68a6b6b915c37e48c42390c1e74c2d1c2636fa9)

16 years agor3829: added a RAW-ACLS test suite that tests query/set of ACLs on a file
Andrew Tridgell [Thu, 18 Nov 2004 01:02:27 +0000 (01:02 +0000)]
r3829: added a RAW-ACLS test suite that tests query/set of ACLs on a file
(This used to be commit 2ff9816ae0ae41e0e63e4276a70d292888346dc7)

16 years agor3828: added testing of opening an existing file with EAs (the EAs are ignored)
Andrew Tridgell [Wed, 17 Nov 2004 22:13:30 +0000 (22:13 +0000)]
r3828: added testing of opening an existing file with EAs (the EAs are ignored)
(This used to be commit 6d53c6a0aed31c87b47e5248f22b1e5767fad342)

16 years agor3827: fixed copyright notices to remove simo and lkcl who have no code left in this...
Andrew Tridgell [Wed, 17 Nov 2004 22:12:46 +0000 (22:12 +0000)]
r3827: fixed copyright notices to remove simo and lkcl who have no code left in this file
(This used to be commit c75eb859391f747abc3fe513166c9f8d73ca349c)

16 years agor3826: - added testing of ea lists in NTTRANS CREATE
Andrew Tridgell [Wed, 17 Nov 2004 22:00:15 +0000 (22:00 +0000)]
r3826: - added testing of ea lists in NTTRANS CREATE

- fixed push/pull of chained ea lists

- fixed a bug in the nttrans wire encoding
(This used to be commit fcd09224076508f9c10095bf2e2c394232a4d297)

16 years agor3821: added client side code and test code for NTTRANS_CREATE
Andrew Tridgell [Wed, 17 Nov 2004 20:56:26 +0000 (20:56 +0000)]
r3821: added client side code and test code for NTTRANS_CREATE
(This used to be commit 8422789c06c203ea1c4761fecb16f79f99ac479b)

16 years agor3810: create a LIB_SECURITY subsystem
Stefan Metzmacher [Wed, 17 Nov 2004 14:35:29 +0000 (14:35 +0000)]
r3810: create a LIB_SECURITY subsystem

- move dom_sid, security_descriptor, security_* funtions to one place
  and rename some of them

metze
(This used to be commit b620bdd672cfdf0e009492e648b0709e6b6d8596)

16 years agor3809: fix compiler warning
Stefan Metzmacher [Wed, 17 Nov 2004 14:34:02 +0000 (14:34 +0000)]
r3809: fix compiler warning

metze
(This used to be commit 241404474665b870d2dfdb684aa45e2e2716e1fe)

16 years agor3808: Put these in the same order as the IDL, to make it easier to spot what's unimp...
Andrew Bartlett [Wed, 17 Nov 2004 13:47:01 +0000 (13:47 +0000)]
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
(This used to be commit 3b81305e2b7ee3e6acabcd8b0e9ed121d4b08840)

16 years agor3807: Cross-check the basic attributes for groups and aliases in RPC-SAMSYNC.
Andrew Bartlett [Wed, 17 Nov 2004 13:39:37 +0000 (13:39 +0000)]
r3807: Cross-check the basic attributes for groups and aliases in RPC-SAMSYNC.

Andrew Bartlett
(This used to be commit 90398fda41dd15480899e3628df186eb02fdc139)

16 years agor3806: added support to smb_server and pvfs for the NTTRANS Create call. This
Andrew Tridgell [Wed, 17 Nov 2004 12:36:14 +0000 (12:36 +0000)]
r3806: added support to smb_server and pvfs for the NTTRANS Create call. This
call has an optional sec_desc and ea_list.
(This used to be commit 8379ad14e3d51a848a99865d9ce8d56a301e8a3c)

16 years agor3805: Fix the LSA portions of the RPC-SAMSYNC test - I was not using the LSA
Andrew Bartlett [Wed, 17 Nov 2004 12:27:16 +0000 (12:27 +0000)]
r3805: Fix the LSA portions of the RPC-SAMSYNC test - I was not using the LSA
secrets interface correctly.  (New interface added).

Andrew Bartlett
(This used to be commit 994ac7f031e2b2d528595a4a0a446d92074d6ecf)

16 years agor3804: Add more comparison tests in RPC-SAMSYNC.
Andrew Bartlett [Wed, 17 Nov 2004 11:56:13 +0000 (11:56 +0000)]
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
(This used to be commit 3f52fa3a42b030c9aef21c8bd88aad87a0aae078)

16 years agor3803: fixed detection of xattr support
Andrew Tridgell [Wed, 17 Nov 2004 10:02:55 +0000 (10:02 +0000)]
r3803: fixed detection of xattr support
(This used to be commit b7e4ec4550dd2d15714784e5fb29789be9ca8623)

16 years agor3801: added allocation size rounding. This is needed for ifstest.
Andrew Tridgell [Wed, 17 Nov 2004 07:17:55 +0000 (07:17 +0000)]
r3801: added allocation size rounding. This is needed for ifstest.
(This used to be commit 8a6fa43156667f75e058c7d44b1c15a6cf7067b2)

16 years agor3800: - fixed delete-on-close behaviour for streams
Andrew Tridgell [Wed, 17 Nov 2004 06:44:50 +0000 (06:44 +0000)]
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)
(This used to be commit f4b2b1311da6e37ac0947a3419d89c77ebbd6b63)

16 years agor3799: - added the bit for FS_ATTR_NAMED_STREAMS support into qfsinfo filesystem...
Andrew Tridgell [Wed, 17 Nov 2004 06:30:06 +0000 (06:30 +0000)]
r3799: - added the bit for FS_ATTR_NAMED_STREAMS support into qfsinfo filesystem attribute reply

- pvfs passes the RAW-STREAMS test
(This used to be commit c1a48a7542a52df734b54031f405d574e4c891e3)

16 years agor3798: added support for alternate data streams in xattrs into pvfs.
Andrew Tridgell [Wed, 17 Nov 2004 05:58:04 +0000 (05:58 +0000)]
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.
(This used to be commit b6452c4a2068cf7e837778559da002ae191b508a)

16 years agor3793: add some streams tests that show how the :$DATA suffix is handled
Andrew Tridgell [Wed, 17 Nov 2004 00:39:20 +0000 (00:39 +0000)]
r3793: add some streams tests that show how the :$DATA suffix is handled
(This used to be commit 41d8c95c94291e73fae1541543d6ce02b81c0c46)

16 years agor3792: improved the posix -> nt error mapping, so we get things like
Andrew Tridgell [Wed, 17 Nov 2004 00:31:56 +0000 (00:31 +0000)]
r3792: improved the posix -> nt error mapping, so we get things like
NT_STATUS_HOST_UNREACHABLE instead of NT_STATUS_UNSUCCESSFUL
(This used to be commit f2a488e5668ab5d262269f1bab1b33a63265cbe9)

16 years agor3791: fixed declaration of torture_rpc_login
Andrew Tridgell [Tue, 16 Nov 2004 23:41:18 +0000 (23:41 +0000)]
r3791: fixed declaration of torture_rpc_login
(This used to be commit fc9748841ec439a097e9713e1b60dbcd647469e2)

16 years agor3790: use a registration function that is called from dcerpc_*_init functions
Jelmer Vernooij [Tue, 16 Nov 2004 21:07:08 +0000 (21:07 +0000)]
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.
(This used to be commit 3c436590ae95b58ad6d00e72d6fdd08a4d80f208)

16 years agor3789: - fix error handling
Stefan Metzmacher [Tue, 16 Nov 2004 14:43:28 +0000 (14:43 +0000)]
r3789: - fix error handling
- formating changes

metze
(This used to be commit 7bb3e3751b1193cd16e6ff8aa468b36c823c1cd5)

16 years agor3788: give new accounts and groups a objectGUID
Stefan Metzmacher [Tue, 16 Nov 2004 13:20:32 +0000 (13:20 +0000)]
r3788: give new accounts and groups a objectGUID

metze
(This used to be commit 4839ea156fea95743127753c194fbc23ccf732fd)

16 years agor3787: a function to generate a random GUID
Stefan Metzmacher [Tue, 16 Nov 2004 13:14:02 +0000 (13:14 +0000)]
r3787: a function to generate a random GUID

metze
(This used to be commit 8bd2e3cb4e5123a3e26965b8535e16ee18005714)

16 years agor3786: send a mechListMIC to make the current samba3 client happy
Stefan Metzmacher [Tue, 16 Nov 2004 13:05:51 +0000 (13:05 +0000)]
r3786: send a mechListMIC to make the current samba3 client happy

metze
(This used to be commit 2403186562698b8e13c20741a0cbed812e1b8e89)

16 years agor3785: this strings are not const
Stefan Metzmacher [Tue, 16 Nov 2004 11:17:59 +0000 (11:17 +0000)]
r3785: this strings are not const

metze
(This used to be commit 436da375a2a815926aaa0565120a4750ead37cb0)

16 years agor3784: do a samdb lookup for the DsCrackNames server
Stefan Metzmacher [Tue, 16 Nov 2004 10:56:51 +0000 (10:56 +0000)]
r3784: do a samdb lookup for the DsCrackNames server

metze
(This used to be commit a2776eca83117131f8316ca222a2f385ffa5d7d5)

16 years agor3783: - don't use make proto for ldb anymore
Stefan Metzmacher [Tue, 16 Nov 2004 09:00:52 +0000 (09:00 +0000)]
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
(This used to be commit f5ee40d6ce8224e280070975efc9911558fe675c)

16 years agor3782: use ldb_ namespace
Stefan Metzmacher [Tue, 16 Nov 2004 06:14:36 +0000 (06:14 +0000)]
r3782: use ldb_ namespace

metze
(This used to be commit 9003698e0fba28551d41d41dec159cc9c42ce7d2)

16 years agor3770: - fix endless recursion loop in spnego fallback code
Stefan Metzmacher [Mon, 15 Nov 2004 20:31:12 +0000 (20:31 +0000)]
r3770: - fix endless recursion loop in spnego fallback code

- fix compiler warnings

metze
(This used to be commit 37a8bd2e30cab98bc8b1bf10d0a516827cbb3373)

16 years agor3769: fix the build of shared libraries
Stefan Metzmacher [Mon, 15 Nov 2004 20:25:40 +0000 (20:25 +0000)]
r3769: fix the build of shared libraries

metze
(This used to be commit 461ff03ce38c6bf6b90f95029287c6e6b01fc1e0)

16 years agor3768: Fix build of libraries
Jelmer Vernooij [Mon, 15 Nov 2004 19:53:45 +0000 (19:53 +0000)]
r3768: Fix build of libraries
(This used to be commit 9929aa94ef01eba64ccf41f4b22df0cdbe3e96b3)

16 years agor3762: - only load the readed bytes into the input buffer
Stefan Metzmacher [Mon, 15 Nov 2004 17:27:07 +0000 (17:27 +0000)]
r3762: - only load the readed bytes into the input buffer

- fix compiler warnings with gcc-4.0

metze
(This used to be commit 7a931ea0f4884d866bbb05b7b81f8e0598364813)

16 years agor3760: mention -o switch in help message
Simo Sorce [Mon, 15 Nov 2004 14:16:10 +0000 (14:16 +0000)]
r3760: mention -o switch in help message
(This used to be commit 0e7d8753101f22aa192ac5628675a0374484d0e9)

16 years agor3757: Some fixes for ldb_ldap
Simo Sorce [Mon, 15 Nov 2004 12:30:28 +0000 (12:30 +0000)]
r3757: Some fixes for ldb_ldap
Now we pass also the test-ldap tests :-)
(This used to be commit 0d58b1dc5aa0b00a924c1c5506f0c500c0b37b3e)

16 years agor3756: Fix netbios session request reply. The buffer should not be a stack-based
Volker Lendecke [Mon, 15 Nov 2004 12:24:02 +0000 (12:24 +0000)]
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
(This used to be commit 614dbd8fec09a5e4c63e4b7774aa38335e030a42)

16 years agor3755: add missing files
Simo Sorce [Mon, 15 Nov 2004 11:42:17 +0000 (11:42 +0000)]
r3755: add missing files
(This used to be commit 0b715b6ce21d23970d207d57e90133be17790d15)

16 years agor3754: merge in ldb modules support from the tmp branch ldbPlugins
Simo Sorce [Mon, 15 Nov 2004 11:40:27 +0000 (11:40 +0000)]
r3754: merge in ldb modules support from the tmp branch ldbPlugins
(This used to be commit 71323f424b4561af1fdddd2358629049be3dad8c)

16 years agor3753: Have some modules default to "NOT" and enable them again when
Jelmer Vernooij [Mon, 15 Nov 2004 11:13:35 +0000 (11:13 +0000)]
r3753: Have some modules default to "NOT" and enable them again when
their dependencies are found
(This used to be commit 8e7e98ae5fca8be8c6a0b4c543b6828c46172171)

16 years agor3752: Remove direct.pm for now (not used and breaks solaris build)
Jelmer Vernooij [Mon, 15 Nov 2004 10:58:56 +0000 (10:58 +0000)]
r3752: Remove direct.pm for now (not used and breaks solaris build)
(This used to be commit f28638628a10fbb42276517527d681bd0b3f6217)

16 years agor3751: Some fixes to using enable and disable for subsystems, ext libs and modules
Jelmer Vernooij [Mon, 15 Nov 2004 10:43:10 +0000 (10:43 +0000)]
r3751: Some fixes to using enable and disable for subsystems, ext libs and modules
(This used to be commit c7757dd9adc18549fa3f908c2714624ec3f91394)

16 years agor3750: fix the build
Stefan Metzmacher [Mon, 15 Nov 2004 08:51:31 +0000 (08:51 +0000)]
r3750: fix the build

metze
(This used to be commit 51630caeb1419565b4196c5672f113373586dafc)

16 years agor3749: don't consider it a failure if we fail to re-encode a codepoint above
Andrew Tridgell [Mon, 15 Nov 2004 07:31:16 +0000 (07:31 +0000)]
r3749: don't consider it a failure if we fail to re-encode a codepoint above
1M, or in the case of non-UTF charsets, above 256
(This used to be commit 02595c14ac44403dd193d084dea9b91a67554a94)

16 years agor3748: pvfs passes RAW-EAS but not RAW-STREAMS yet
Andrew Tridgell [Mon, 15 Nov 2004 06:59:03 +0000 (06:59 +0000)]
r3748: pvfs passes RAW-EAS but not RAW-STREAMS yet
(This used to be commit d288a0d4a1ef4cb08d1d959e8e1f0e5f06d7d203)

16 years agor3747: - added some of the infrastructure needed for streams support in pvfs
Andrew Tridgell [Mon, 15 Nov 2004 06:57:26 +0000 (06:57 +0000)]
r3747: - added some of the infrastructure needed for streams support in pvfs
  (the IDL, and the load/save meta-data logic)

- changed pvfs_resolve_name() to default to non-wildcard, needing
  PVFS_RESOLVE_WILDCARD to enable wildcards. Most callers don't want
  wildcards, so defaulting this way makes more sense.

- fixed deletion of EAs
(This used to be commit e7afd4403cc1b7e0928776929f8988aa6f15640b)

16 years agor3746: added RAW-STREAMS and RAW-EAS tests to smbtorture
Andrew Tridgell [Mon, 15 Nov 2004 06:55:27 +0000 (06:55 +0000)]
r3746: added RAW-STREAMS and RAW-EAS tests to smbtorture
(This used to be commit 5ed3d68d20860bdedcfeb2461af570aedc689674)

16 years agor3745: fixed the posix backend after the recent build changes (it had lost
Andrew Tridgell [Mon, 15 Nov 2004 05:28:11 +0000 (05:28 +0000)]
r3745: fixed the posix backend after the recent build changes (it had lost
the detection of HAVE_XATTR_SUPPORT during configure)
(This used to be commit c3b318143f2cfd6376a740afd77900c342e0eec4)

16 years agor3744: Support building subsystems as a shared library. Modules don't work yet,
Jelmer Vernooij [Mon, 15 Nov 2004 00:32:37 +0000 (00:32 +0000)]
r3744: Support building subsystems as a shared library. Modules don't work yet,
so while this does compile, it does not work yet.
(This used to be commit 3d885562c9f83d60c5d4957b067e35387dfa50dd)

16 years agor3743: auto-support the RH schema location as well
Andrew Tridgell [Mon, 15 Nov 2004 00:31:32 +0000 (00:31 +0000)]
r3743: auto-support the RH schema location as well
(This used to be commit 4fc794d0b4bc6f2a0115628589f9366800a369ca)

16 years agor3742: make test-ldap give a sane error message when the openldap schema files are...
Andrew Tridgell [Mon, 15 Nov 2004 00:15:25 +0000 (00:15 +0000)]
r3742: make test-ldap give a sane error message when the openldap schema files are missing
and auto-link the files if they are found in /etc/ldap/schema/
(This used to be commit 88b03ffc85d43ac83193a093cdb246794d74c4e4)

16 years agor3741: FILE_ATTRIBUTE_DIRECTORY is illegal in open of a file
Andrew Tridgell [Sun, 14 Nov 2004 23:37:02 +0000 (23:37 +0000)]
r3741: FILE_ATTRIBUTE_DIRECTORY is illegal in open of a file
(This used to be commit ad7815fababe5783df5e8fb4a490921a5af693d6)

16 years agor3740: Convert more files to .mk, fix the build
Jelmer Vernooij [Sun, 14 Nov 2004 23:10:04 +0000 (23:10 +0000)]
r3740: Convert more files to .mk, fix the build
(This used to be commit a7c3c8cb6256acf672996fc6bf6128865a9ba0a9)

16 years agor3739: Remove a bunch of unused m4 macros
Jelmer Vernooij [Sun, 14 Nov 2004 22:47:39 +0000 (22:47 +0000)]
r3739: Remove a bunch of unused m4 macros
(This used to be commit 2a38b77a1d8674b46028214896e37747c4082f13)

16 years agor3738: Use a hardcoded list of .mk files rather then "find" (breaks on
Jelmer Vernooij [Sun, 14 Nov 2004 22:33:21 +0000 (22:33 +0000)]
r3738: Use a hardcoded list of .mk files rather then "find" (breaks on
some machines)
(This used to be commit 9e65718102da901bbe07213c6cb16d837ccc3127)

16 years agor3737: - Get rid of the register_subsystem() and register_backend() functions.
Jelmer Vernooij [Sun, 14 Nov 2004 22:23:23 +0000 (22:23 +0000)]
r3737: - Get rid of the register_subsystem() and register_backend() functions.
- Re-disable tdbtool (it was building fine on my Debian box but other
machines were having problems)
(This used to be commit 0d7bb2c40b7a9ed59df3f8944133ea562697e814)

16 years agor3736: Fix the build for builds that haven't got all libs samba
Jelmer Vernooij [Sun, 14 Nov 2004 21:25:07 +0000 (21:25 +0000)]
r3736: Fix the build for builds that haven't got all libs samba
can use installed.
(This used to be commit 359a3570f32902db0e9f59f168af464e8c652cea)

16 years agor3735: Allow building subsystems as static libraries (.a files). To enable
Jelmer Vernooij [Sun, 14 Nov 2004 16:51:32 +0000 (16:51 +0000)]
r3735: Allow building subsystems as static libraries (.a files). To enable
this support, run SUBSYSTEM_OUTPUT_TYPE=STATIC_LIBRARY ./config.status

I haven't enabled this by default because there are some circular dependencies
in the makefile that have to be resolved first (LIBRPC depends on LIBSMB
and LIBSMB depends on LIBRPC..)
(This used to be commit fc0432069bf3569a47a7c32f4bf789cec2ca44db)

16 years agor3734: Fix some incorrect dependencies
Jelmer Vernooij [Sun, 14 Nov 2004 16:34:30 +0000 (16:34 +0000)]
r3734: Fix some incorrect dependencies
(This used to be commit 3add9e7de52496b135a230cccfd2d99a8b77ddd0)

16 years agor3733: More build system fixes/features:
Jelmer Vernooij [Sun, 14 Nov 2004 16:22:01 +0000 (16:22 +0000)]
r3733: More build system fixes/features:
 - Use .mk files directly (no need for a SMB_*_MK() macro when adding a new SUBSYSTEM, MODULE or BINARY). This allows addition of new modules and subsystems without running configure
 - Add support for generating .dot files with the Samba4 dependency tree (as used by the graphviz and springgraph utilities)
(This used to be commit 64826da834e26ee0488674e27a0eae36491ee179)

16 years agor3730: More build system fixes and simplifications
Jelmer Vernooij [Sun, 14 Nov 2004 13:52:16 +0000 (13:52 +0000)]
r3730: More build system fixes and simplifications
the hierarchy in the init functions is correct now
will also make it easier to implement some other features
(This used to be commit cbe819a75568403ac8850ea4d344c607a46d61c2)

16 years agor3729: permission changes on directories always include the FILE_ATTRIBUTE_DIRECTORY bit
Andrew Tridgell [Sun, 14 Nov 2004 09:16:03 +0000 (09:16 +0000)]
r3729: permission changes on directories always include the FILE_ATTRIBUTE_DIRECTORY bit
(This used to be commit 5af815ffc3531e4ae4a6844e9f754656d9acf76e)

16 years agor3726: More simplifications/fixes in the build system
Jelmer Vernooij [Sat, 13 Nov 2004 18:20:33 +0000 (18:20 +0000)]
r3726: More simplifications/fixes in the build system
(This used to be commit e32f87fdea3070ea715ef547f2a406aa63ab775f)

16 years agor3725: The new RPC-SAMSYNC test, complete with SAMR comparisons. This is
Andrew Bartlett [Sat, 13 Nov 2004 13:48:59 +0000 (13:48 +0000)]
r3725: The new RPC-SAMSYNC test, complete with SAMR comparisons.  This is
certainly not complete, we need to verify all incoming data, not just
accounts.

This needs to be exercised against some 'intersting' users, but for
now it shows that the IDL is already very accurate, particularly after
the previous commits cleanups of names.

Also commit the changes to keep RPC-LOGIN building.

Andrew Bartlett
(This used to be commit 87ec6834bc75012527454abc0e854b1cf2120088)

16 years agor3724: Rename a number of structures, for better consistance between SAMR and
Andrew Bartlett [Sat, 13 Nov 2004 13:45:41 +0000 (13:45 +0000)]
r3724: Rename a number of structures, for better consistance between SAMR and
NETLOGON.

In particular, rename samr_Name to samr_String - given that many
strings in this pipe are not 'names', the previous was just confusing.
(I look forward to PIDL turning these into simple char * some day...).

Also export out a few changes from testjoin.c to allow for how I have
written the new RPC-SAMSYNC test.

Andrew Bartlett
(This used to be commit 9cd666bcfb1fc752a4717010a7c4f05131dc728e)

16 years agor3723: Now that timestring() always returns talloc'ed memory, we don't need
Andrew Bartlett [Sat, 13 Nov 2004 13:33:45 +0000 (13:33 +0000)]
r3723: Now that timestring() always returns talloc'ed memory, we don't need
this talloc strdup here (do we?).

Andrew Bartlett
(This used to be commit d6aca06793b4bc72399c7357c5f357d6db036513)

16 years agor3722: - add userdomain in the binding dialog
Stefan Metzmacher [Sat, 13 Nov 2004 11:33:01 +0000 (11:33 +0000)]
r3722: - add userdomain in the binding dialog

- print samba_version_string() on Help->About

- some minor format fixes

metze
(This used to be commit b11bcb2704e39415ffb11defb0e04c8b34784011)

16 years agor3721: We cracked the NTLM2 puzzle long ago, and set the flags elsewhere.
Andrew Bartlett [Sat, 13 Nov 2004 07:44:50 +0000 (07:44 +0000)]
r3721: We cracked the NTLM2 puzzle long ago, and set the flags elsewhere.
Remove the conditional set.

Andrew Bartlett
(This used to be commit f5d8a4dde58a88408892501fd3ce53f19e67f1f1)

16 years agor3720: fixed the pulling of zero length ucs2 strings in smbd. I found this
Andrew Tridgell [Sat, 13 Nov 2004 07:22:14 +0000 (07:22 +0000)]
r3720: fixed the pulling of zero length ucs2 strings in smbd. I found this
bug using ifstest.exe, which is a IFS (Installable File System) test
suite. With this fix I was pleasantly surprised to find that Samba4
passes many (maybe even most?) of the tests in ifstest.
(This used to be commit a20cbca7880b66d3cf21213cccf93675e03f8728)

16 years agor3719: pvfs now passes the RAW-RENAME test
Andrew Tridgell [Sat, 13 Nov 2004 06:49:13 +0000 (06:49 +0000)]
r3719: pvfs now passes the RAW-RENAME test
(This used to be commit 3ab8136431aebf8a2625405c796dc4c697eb9e51)

16 years agor3718: added support for the ntrename level in pvfs_rename().
Andrew Tridgell [Sat, 13 Nov 2004 06:46:51 +0000 (06:46 +0000)]
r3718: added support for the ntrename level in pvfs_rename().
(This used to be commit 3d50982f5419b9a5c53f2b82a2313669cdeaaa21)

16 years agor3717: - expanded the RAW-RENAME test a little
Andrew Tridgell [Sat, 13 Nov 2004 05:47:27 +0000 (05:47 +0000)]
r3717: - expanded the RAW-RENAME test a little

- added support for wildcard rename in pvfs

- made more consistent use of pvfs_map_errno()
(This used to be commit e255d1c3a811c480a850452aaf636d9fa36f69fe)

16 years agor3716: Improvements in the RPC-SAMSYNC tests:
Andrew Bartlett [Sat, 13 Nov 2004 03:57:54 +0000 (03:57 +0000)]
r3716: Improvements in the RPC-SAMSYNC tests:

 We now (for the first time) start to parse the 'user sensitive info'
 field, which reveals the user's NT and LM passwords from Win2k3.

 Using this, the 'validate samsync against netlogon' portion of the
 tests works for accounts.

 Trusted domains and secrets are now retreived, but like users,
 require further cross-validation work.

Andrew Bartlett
(This used to be commit c1d3794cad8b001661b48ecb05df5c38a69be92c)

16 years agor3700: pvfs passes RAW-WRITE but not BASE-DELAYWRITE
Andrew Tridgell [Fri, 12 Nov 2004 09:38:37 +0000 (09:38 +0000)]
r3700: pvfs passes RAW-WRITE but not BASE-DELAYWRITE
(This used to be commit 7f3315d9196301a23d2a48f9fc0e9302c28027bf)

16 years agor3699: - split the delayed write testing out of RAW-WRITE, as it is not yet
Andrew Tridgell [Fri, 12 Nov 2004 09:37:59 +0000 (09:37 +0000)]
r3699: - split the delayed write testing out of RAW-WRITE, as it is not yet
  clear what the correct behaviour is for delayed stat info update.

- use a common torture_setup_dir() function for setting up a test
  directory in torture tests.
(This used to be commit f7fb34715b7d6ea3c35ddd684cfb27459a420339)

16 years agor3698: mark RAW-SFILEINFO as working
Andrew Tridgell [Fri, 12 Nov 2004 03:38:47 +0000 (03:38 +0000)]
r3698: mark RAW-SFILEINFO as working
(This used to be commit f0760858f89dc4cead26b84db61cec470ac8e67d)

16 years agor3696: Feed directly to perl, rather then creating an intermediate file
Jelmer Vernooij [Fri, 12 Nov 2004 02:57:15 +0000 (02:57 +0000)]
r3696: Feed directly to perl, rather then creating an intermediate file
(This used to be commit dab264b78cdf709f1e2618b2b52b0e4aa2ad85b7)

16 years agor3695: Add intermediate functions to use when migrating from .m4+.mk to .pm files
Jelmer Vernooij [Fri, 12 Nov 2004 02:47:24 +0000 (02:47 +0000)]
r3695: Add intermediate functions to use when migrating from .m4+.mk to .pm files
(This used to be commit fb849a309b823296a31bbf0b5b683760119c615c)

16 years agor3694: added support for the RENAME_INFORMATION level of setfileinfo and
Andrew Tridgell [Fri, 12 Nov 2004 02:45:52 +0000 (02:45 +0000)]
r3694: added support for the RENAME_INFORMATION level of setfileinfo and
setpathinfo. pvfs now passes the RAW-SFILEINFO test.
(This used to be commit 31ac31398ba52dfc554e58edaa7ae257caf5fdc6)

16 years agor3691: Use packages
Jelmer Vernooij [Fri, 12 Nov 2004 02:00:58 +0000 (02:00 +0000)]
r3691: Use packages
(This used to be commit 975f06b626a3cc25e69bbe95dcfa04dc78e3dc92)

16 years agor3690: Use perl's 'use' statement to include the build system parts
Jelmer Vernooij [Fri, 12 Nov 2004 01:40:02 +0000 (01:40 +0000)]
r3690: Use perl's 'use' statement to include the build system parts
rather then using "cat"
(This used to be commit 4d018b2b701faa56d7e3bb7634729296b53e0acb)

16 years agor3689: Large number of COM updates:
Jelmer Vernooij [Fri, 12 Nov 2004 00:48:24 +0000 (00:48 +0000)]
r3689: Large number of COM updates:
 - Work on server side and local COM support (should work, just no
  example classes yet)
 - Use vtables so that local and remote calls can be used transparently
 - Generate 'proxies and stubs' rather then heavily modified code in client.pm and server.pm. proxies (client side code) are generated in proxy.pm, stubs (server side dispatchers) are generated in stubs.pm
 - Support registering classes and interfaces
 - DCOM interfaces no longer have to be in the same IDL file as their
    base interface, which will allow us to split up dcom.idl
(This used to be commit 7466947a23985f9bb15209b67880f7b94dc515c8)

16 years agor3687: Gaah - I forgot to add the new file for the RPC-SAMSYNC test...
Andrew Bartlett [Thu, 11 Nov 2004 23:25:33 +0000 (23:25 +0000)]
r3687: Gaah - I forgot to add the new file for the RPC-SAMSYNC test...

See -r 3686

Andrew Bartlett
(This used to be commit ab12134286267299c0bf60d03407429bb7de593f)