kai/samba.git
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)

16 years agor3686: The results of some work on the NETLOGON pipe:
Andrew Bartlett [Thu, 11 Nov 2004 23:24:30 +0000 (23:24 +0000)]
r3686: The results of some work on the NETLOGON pipe:

Break out the samsync tests from RPC-NETLOGON into a new RPC-SAMSYNC,
that will cross-verify all the values.

Add support for the way netlogon credentials are shared between the
pipe that sets up schannel and the pipe that is encrypted with it.

Test this support, by calling both NETLOGON and SAMR operations in the
RPC-SCHANNEL test.

Move some of the Netlogon NEG flags into the .idl, now we have an idea
what a few of them really are.

Rename the sam_pwd_hash into a name that has meaning (all other crypto
functions were renamed in Samba4 ages ago).

Break out NTLMv2 functionality for operation on the NT hash - I intend
to do NTLMv2 logins in the samsync test in future, and naturally I
only have the hash.

Andrew Bartlett
(This used to be commit 6e6cc6fb9842113a1b0c7f6904dac709b320a6e5)

16 years agor3680: Move the multiple runs of this test into a loop. Also check that no
Andrew Bartlett [Thu, 11 Nov 2004 05:29:58 +0000 (05:29 +0000)]
r3680: Move the multiple runs of this test into a loop.  Also check that no
flags individually have an impact (above what we already expect).

Andrew Bartlett
(This used to be commit 68dd173dc0539f290f40ee90f398591409765932)

16 years agor3679: We now know a few more of the Netlogon negotiate flags.
Andrew Bartlett [Thu, 11 Nov 2004 05:04:22 +0000 (05:04 +0000)]
r3679: We now know a few more of the Netlogon negotiate flags.

Interestingly, all the interesting flags are a '4' (as hex digits in
the flag).

Andrew Bartlett
(This used to be commit 295e09fa3ea2cae48da1e934c1ec180e5678f0c9)

16 years agor3678: Remove testing code accidentily commited.
Andrew Bartlett [Thu, 11 Nov 2004 05:02:51 +0000 (05:02 +0000)]
r3678: Remove testing code accidentily commited.

Andrew Bartlett
(This used to be commit cd23ddd0a7e87e217a93af499122e97e8dae4dd7)

16 years agor3677: Seperate the SamLogon tests from the main RPC-NETLOGON test into a
Andrew Bartlett [Thu, 11 Nov 2004 04:32:01 +0000 (04:32 +0000)]
r3677: Seperate the SamLogon tests from the main RPC-NETLOGON test into a
RPC-SAMLOGON of their own.

I have expanded the tests to validate the use of various flags, which
change some of the crypto behaviour.

Andrew Bartlett
(This used to be commit 3a140a3691ce49ebf4d1efcb99cfffd26c68a28f)

16 years agor3676: Add a negitive test for NTLM2 session security (which should not
Andrew Bartlett [Thu, 11 Nov 2004 01:29:34 +0000 (01:29 +0000)]
r3676: Add a negitive test for NTLM2 session security (which should not
appear in netlogon, despite what the LM response may look like).

Make the logon tests less verbose - only print test names on failure.

Andrew Bartlett
(This used to be commit 49c335bcd8852bcf2f4663b9fd514bf3da0fa50d)

16 years agor3667: Small COM fixes
Jelmer Vernooij [Wed, 10 Nov 2004 21:20:51 +0000 (21:20 +0000)]
r3667: Small COM fixes
(This used to be commit 7484b9be7423ccd7e37432951700939e8a53d513)

16 years agor3660: This simulates the logon sequence of a XP login session I'm currently tuning
Volker Lendecke [Wed, 10 Nov 2004 16:50:15 +0000 (16:50 +0000)]
r3660: This simulates the logon sequence of a XP login session I'm currently tuning
Samba3/OpenLDAP for. For a concrete situation you have to adapt the domain,
pdcname and usernames/passwords. Sorry, not parametrized yet, but this should
be doable if necessary.

Volker
(This used to be commit 02f52058722fc1aea02d4fe237c97404d8e4f491)

16 years agor3658: use handle->fd == -1 as the primary indicator of a directory. This
Andrew Tridgell [Wed, 10 Nov 2004 12:40:33 +0000 (12:40 +0000)]
r3658: use handle->fd == -1 as the primary indicator of a directory. This
fixes a directory creation problem from WinXP
(This used to be commit 4b3afc6c395b430e7e56d8ebe0ddf85c556a5df5)

16 years agor3657: More netlogon torture. We now test both function calls (SamLogon and SamLogon...
Andrew Bartlett [Wed, 10 Nov 2004 11:41:31 +0000 (11:41 +0000)]
r3657: More netlogon torture.  We now test both function calls (SamLogon and SamLogonWithFlags).

Andrew Bartlett
(This used to be commit 7937503849125e8a351abd547accab3715fc8b13)

16 years agor3656: allow easy testing of the "realloc changes the pointer" type of problem that...
Andrew Tridgell [Wed, 10 Nov 2004 11:00:13 +0000 (11:00 +0000)]
r3656: allow easy testing of the "realloc changes the pointer" type of problem that abartlet
recently fixed.
(This used to be commit 70e53a21f25360d3421758f5c37972ebc2337a9c)

16 years agor3655: As required by the new torture test, add the LM session key output
Andrew Bartlett [Wed, 10 Nov 2004 10:58:15 +0000 (10:58 +0000)]
r3655: As required by the new torture test, add the LM session key output
parameter to SMBNTLMv2encrypt().

Andrew Bartlett
(This used to be commit 75ff351faf0a3231e17f000b006beb9cb545d905)

16 years agor3654: Add static and fix indentation.
Andrew Bartlett [Wed, 10 Nov 2004 10:56:43 +0000 (10:56 +0000)]
r3654: Add static and fix indentation.

Andrew Bartlett
(This used to be commit cef31134ec4cd09eafd4f9f8f64e5fe3d68f19de)

16 years agor3653: Move Interactive login tests up with the rest of the logon tests.
Andrew Bartlett [Wed, 10 Nov 2004 10:46:55 +0000 (10:46 +0000)]
r3653: Move Interactive login tests up with the rest of the logon tests.
(Hmm, this whole section should be broken out into a new file, I
think).

Add new tests, particularly of the LM key for NTLMv2 responses, and
the (changed, apparently) session key for LMv2 only logins.

Next is to add SAMR modification and cross-validation.

Andrew Bartlett
(This used to be commit be99ee4719a98c3fca13136d0c72f18a852fbd4e)

16 years agor3652: Fix malloc-history dependent failures in smbtorture.
Andrew Bartlett [Wed, 10 Nov 2004 04:52:22 +0000 (04:52 +0000)]
r3652: Fix malloc-history dependent failures in smbtorture.

Because -r 3591 removed the over-allocation, realloc() had a chance of
returning a different pointer.  This broke the length calculations in
the trans2 send code.

I think the length calculations coudld be better expressed (less cute
PTR_DIFF tricks) but I'm not going to touch this any more than I need
to.

Andrew Bartlett
(This used to be commit 4bfc916a2c3b9745f47ce4eaa892cdcc431e19db)

16 years agor3651: Add a new configure option --with-eparserdir
Andrew Bartlett [Wed, 10 Nov 2004 03:08:59 +0000 (03:08 +0000)]
r3651: Add a new configure option --with-eparserdir

This allows us to call 'make eparser_idl', generate the files required
by the ethereal pidl plugin, and put them in the right place.  (See
lorikeet/ethereal)

Andrew Bartlett
(This used to be commit bd9497b092335b2646a1955ea7c55ad33eb7d538)

16 years agor3636: Fix python build
Jelmer Vernooij [Tue, 9 Nov 2004 11:03:55 +0000 (11:03 +0000)]
r3636: Fix python build
(This used to be commit 0cf3978714cbe7ee49f5ab182ed007fcdf94b33b)

16 years agor3635: fixed the crash from the BASE-DISCONNECT test
Andrew Tridgell [Tue, 9 Nov 2004 10:50:13 +0000 (10:50 +0000)]
r3635: fixed the crash from the BASE-DISCONNECT test
(This used to be commit bdabb3f836d56ab0af9201321c00c8b385e053a5)

16 years agor3634: - fixed BASE-DISCONNECT test to force the async packets to be sent by
Andrew Tridgell [Tue, 9 Nov 2004 09:35:45 +0000 (09:35 +0000)]
r3634: - fixed BASE-DISCONNECT test to force the async packets to be sent by
  waiting for a chkpath response

- fixed open async send in BASE-DISCONNECT

with these changes BASE-DISCONNECT crashes Samba4, as it was designed
to do. I'll work on a fix :)
(This used to be commit 25e01384647116d8ea0f20a6988fb8fe63218840)

16 years agor3633: - moved module init functions to after smb.conf and command line
Andrew Tridgell [Tue, 9 Nov 2004 09:26:47 +0000 (09:26 +0000)]
r3633: - moved module init functions to after smb.conf and command line
  parsing, so that module init can take account of lp_ parms (thats
  why gensec:krb5=no wasn't working)

- added a BASE-DISCONNECT torture test that tests server response to
  clients disconnecting with open lock and open requests pending
(This used to be commit 5205f598b8c0be6985e61cc842cc5da109ba5b7e)

16 years agor3632: added an index on "member" in default provision. This speeds up my
Andrew Tridgell [Tue, 9 Nov 2004 09:20:15 +0000 (09:20 +0000)]
r3632: added an index on "member" in default provision. This speeds up my
connect/disconnect test by a factor of 20x

when andrew gets a chance to change auth_sam.c to not do a search on
member= and instead use the memberOf attribute for the user then we
should delete this index attribute, as maintaining the index is
expensive
(This used to be commit 0443537be8e7ba87bdf716c1366e777f17652e0d)

16 years agor3631: a couple of tweaks to the talloc hierarchy for async requests in
Andrew Tridgell [Tue, 9 Nov 2004 02:12:57 +0000 (02:12 +0000)]
r3631: a couple of tweaks to the talloc hierarchy for async requests in
pvfs. This prevents a possible crash due to free ordering on
unexpected disconnect.
(This used to be commit bfca9eb7cb7a2caf3a232d538808ff2ade8e1ca9)

16 years agor3630: More work on DCOM server side
Jelmer Vernooij [Tue, 9 Nov 2004 01:04:29 +0000 (01:04 +0000)]
r3630: More work on DCOM server side
(This used to be commit e995a1c0e5d2ee2dc50c31c01ce281a303dd5231)

16 years agor3629: A bit of work on the DCOM server architecture, small fixes
Jelmer Vernooij [Tue, 9 Nov 2004 00:30:44 +0000 (00:30 +0000)]
r3629: A bit of work on the DCOM server architecture, small fixes
(This used to be commit e7b67ff22fe0a76afc93ee522b253eaf5dccb11d)

16 years agor3626: More minor DCOM fixes
Jelmer Vernooij [Mon, 8 Nov 2004 22:18:18 +0000 (22:18 +0000)]
r3626: More minor DCOM fixes
(This used to be commit 709f279b192c8f9eeea04749169c00f2d57b20d3)

16 years agor3625: Couple of minor DCOM bugfixes
Jelmer Vernooij [Mon, 8 Nov 2004 20:54:00 +0000 (20:54 +0000)]
r3625: Couple of minor DCOM bugfixes
(This used to be commit 6f5bf44ade8bad10c6cf08a7d6e3528ec6b4ec8a)

16 years agor3618: - this adds the special case for DENY_DOS semantics, as shown by the BASE...
Andrew Tridgell [Mon, 8 Nov 2004 11:35:49 +0000 (11:35 +0000)]
r3618: - this adds the special case for DENY_DOS semantics, as shown by the BASE-DENYDOS test.

- pvfs now passes BASE-DENY1 and BASE-DENYDOS.
(This used to be commit aa09df22ee729c02552638859236d9068e9748ae)

16 years agor3615: split out struct pvfs_file_handle from struct pvfs_file. This is in
Andrew Tridgell [Mon, 8 Nov 2004 03:54:12 +0000 (03:54 +0000)]
r3615: split out struct pvfs_file_handle from struct pvfs_file. This is in
preparation for adding code to pass the BASE-DENY1 and BASE-DENYDOS
tests, which require a shared filesystem handle for some specific
combinations of two DENY_DOS opens on the same connection.
(This used to be commit 6e4fdf01d19051e3923d7703dbf990fc1722b09a)

16 years agor3613: fixed a typo
Andrew Tridgell [Mon, 8 Nov 2004 02:43:49 +0000 (02:43 +0000)]
r3613: fixed a typo
(This used to be commit 891e3097ee00d75f8f28efcccd8c15cd08b80e88)

16 years agor3612: This appears to be the 'offical' way to initialise this struct.
Andrew Bartlett [Mon, 8 Nov 2004 02:28:12 +0000 (02:28 +0000)]
r3612: This appears to be the 'offical' way to initialise this struct.

Andrew Bartlett
(This used to be commit 47d67c6e5b265e4192fcae0d9cd72b3ac097785e)

16 years agor3611: DCOM client support works!!
Jelmer Vernooij [Mon, 8 Nov 2004 02:12:15 +0000 (02:12 +0000)]
r3611: DCOM client support works!!

The torture test DCOM-SIMPLE now successfully does an
IStream_Read and a IStream_Write call.

This test can now be run successfully against the "Simple DCOM" Visual
Studio example.

(You have to quote out line 337 in pidl. pidl complains if the variable
 that contains the array size follows the array. I still need to fix this
 properly)

Next goals:
 - Clean up code
 - Server side support
 - Support custom marshalling
 - Support DCOM interfaces in files other then dcom.idl
(This used to be commit 8693344772a9b700533179f4bacfe27ec27dfcfe)

16 years agor3610: prevent segv with heimdal and password krb5 init
Andrew Tridgell [Mon, 8 Nov 2004 02:01:05 +0000 (02:01 +0000)]
r3610: prevent segv with heimdal and password krb5 init
(This used to be commit a4598e7fa17c7ec0fed9cb81f5a0fb30b133861b)

16 years agor3609: Lets spew out a few less error messages for tridge, and hope to get
Andrew Bartlett [Mon, 8 Nov 2004 01:46:00 +0000 (01:46 +0000)]
r3609: Lets spew out a few less error messages for tridge, and hope to get
krb5 going on recent heimdal installs.

Andrew Bartlett
(This used to be commit a758725407df0c87922a15aa32cc841bc4c059a2)

16 years agor3608: added BASE-DENYDOS test
Andrew Tridgell [Mon, 8 Nov 2004 01:21:45 +0000 (01:21 +0000)]
r3608: added BASE-DENYDOS test

this test demonstrates how w2k3 handles the special semantics of
DENY_DOS when 2 opens happen on the same connection. The 2nd open
doesn't actually do a NTFS open, it happens as a secondary reference
to the same internal file handle in the CIFS layer. The evidence is
that the 2nd open shares the same POSITION_INFORMATION field as the
first open, but only for the special DENY_DOS cases that would
normally be refused.
(This used to be commit eeec57d4f6d18a40e0ce451bfe051b3f699e8337)

16 years agor3607: EnumDomainAlises doesn't take a max_size parameter.
Tim Potter [Sun, 7 Nov 2004 22:05:18 +0000 (22:05 +0000)]
r3607: EnumDomainAlises doesn't take a max_size parameter.
(This used to be commit 996d042bf701860fcc9a9b424118c02addb2119b)

16 years agor3606: More DCOM fixes:
Jelmer Vernooij [Sun, 7 Nov 2004 21:30:59 +0000 (21:30 +0000)]
r3606: More DCOM fixes:
 - OXID tables work now. IOXIDResolver is used if there is used for getting a STRINGBINDING if none is known yet
 - Add custom dissectors for STRINGARRAY and DUALSTRINGARRAY. If there's a way to get rid of these later on (by supporting them thru pidl somehow), I'd be happy to use that instead of doing it manually.

I can now get to the point where we have created an object and are connected to
it. The only thing left to do is being able to set the Object UUID properly..
(This used to be commit 54e1e5edca50d3cd496c080715e84ec62cb2a10c)

16 years agor3602: Add looking up transport by endpoint protocol
Jelmer Vernooij [Sun, 7 Nov 2004 19:28:18 +0000 (19:28 +0000)]
r3602: Add looking up transport by endpoint protocol
(This used to be commit 76c02ecbe8581fbf07bb59dd22ba88eb97b4fd04)

16 years agor3601: Lots of smaller DCOM updates and fixes. Adds oxid tables, proper
Jelmer Vernooij [Sun, 7 Nov 2004 16:47:46 +0000 (16:47 +0000)]
r3601: Lots of smaller DCOM updates and fixes. Adds oxid tables, proper
use of contexts.
(This used to be commit 93eb3cd99c4fb065a69eabcead0c33804259c976)

16 years agor3600: fixed two debug typos
Andrew Tridgell [Sun, 7 Nov 2004 12:52:53 +0000 (12:52 +0000)]
r3600: fixed two debug typos
(This used to be commit d0149b173f70cf012e6ed2382394985fb4950af6)

16 years agor3599: fixed a couple of memory errors in the rpc netlogon server
Andrew Tridgell [Sun, 7 Nov 2004 12:40:07 +0000 (12:40 +0000)]
r3599: fixed a couple of memory errors in the rpc netlogon server
(found with valgrind)
(This used to be commit 151dd4593d30c703b70099cd240784134fdb4e0f)

16 years agor3598: hopefully fix the build on stratos
Andrew Tridgell [Sun, 7 Nov 2004 10:34:35 +0000 (10:34 +0000)]
r3598: hopefully fix the build on stratos
(This used to be commit e6e8a9c7f014ddf7c92476a6713582303bb944a0)

16 years agor3597: implement a suggestion from abartlet. By taking a refernce to the
Andrew Tridgell [Sun, 7 Nov 2004 10:20:50 +0000 (10:20 +0000)]
r3597: implement a suggestion from abartlet. By taking a refernce to the
database in the opendb lck, we ensure that the database is not closed
before the lock is gone. That ensures the lock destructor doesn't work
on a closed database.
(This used to be commit 218e01441aa1def3e8e884c8d618a95c9ffdfc1b)

16 years agor3596: MODE_INFORMATION tests now pass. Only RENAME_INFORMATION level left to
Andrew Tridgell [Sun, 7 Nov 2004 10:09:50 +0000 (10:09 +0000)]
r3596: MODE_INFORMATION tests now pass. Only RENAME_INFORMATION level left to
support RAW-SFILEINFO
(This used to be commit 20fc3a25ef775fc366711501ca83914335e8fae1)

16 years agor3595: - fixed a talloc_free ordering problem on cleanup with pending requests
Andrew Tridgell [Sun, 7 Nov 2004 10:05:35 +0000 (10:05 +0000)]
r3595: - fixed a talloc_free ordering problem on cleanup with pending requests

- added initial support for MODE_INFORMATION in setfileinfo (I have no
  idea what "mode information" on a file is - it takes a value of 0,
  2, 4 or 6. What could it be?)
(This used to be commit e53ec2f6b68e1d19149c36ea8fcd25a204db38fb)

16 years agor3594: continue conversion to __location__ from __LINE__ for error reporting
Andrew Tridgell [Sun, 7 Nov 2004 10:03:56 +0000 (10:03 +0000)]
r3594: continue conversion to __location__ from __LINE__ for error reporting
(This used to be commit 425e36ca4dd98d3fee8ab5bb775cb15dfa27f8fa)

16 years agor3593: fixed the trans2 t2open reply to initialise all bytes (bug found by valgrind)
Andrew Tridgell [Sun, 7 Nov 2004 10:03:17 +0000 (10:03 +0000)]
r3593: fixed the trans2 t2open reply to initialise all bytes (bug found by valgrind)
(This used to be commit b8ba6793c1b27f118083ddfa71af8ffbf2b65125)

16 years agor3592: auto-cleanup the test.$$ log files in these test scripts on control-C
Andrew Tridgell [Sun, 7 Nov 2004 10:02:27 +0000 (10:02 +0000)]
r3592: auto-cleanup the test.$$ log files in these test scripts on control-C
(This used to be commit a07bca1707857a33d50172432336b90e3da8c854)

16 years agor3591: to get a bit more useful info from valgrind I'm disabling the
Andrew Tridgell [Sun, 7 Nov 2004 10:00:32 +0000 (10:00 +0000)]
r3591: to get a bit more useful info from valgrind I'm disabling the
deliberate over-allocation of request structures in smbd and
libcli/raw code for now.
(This used to be commit 07596d87213e8ccbf6a0e7bc216d692065f43403)

16 years agor3590: Add some more commands to rpcclient from a patch by jbm. Add
Tim Potter [Sun, 7 Nov 2004 01:11:11 +0000 (01:11 +0000)]
r3590: Add some more commands to rpcclient from a patch by jbm.  Add
SamrQueryDomInfo, SamrQueryDomInfo2, SamrEnumDomainAliases, and
SamrEnumDomainUsers.
(This used to be commit 91eb405354a65bfd94bf59c21fe21f68fff7b9fd)

16 years agor3589: Add some extra status codes.
Tim Potter [Sun, 7 Nov 2004 01:09:14 +0000 (01:09 +0000)]
r3589: Add some extra status codes.
(This used to be commit 6d918f15951f38061128e141bbcc161d8956977e)

16 years agor3588: Fix bug in converting SIDs containing large unsigned integers from Python.
Tim Potter [Sun, 7 Nov 2004 00:41:43 +0000 (00:41 +0000)]
r3588: Fix bug in converting SIDs containing large unsigned integers from Python.
(This used to be commit a46aba43549e5221ec0c15d4133444d8ef77a4fb)

16 years agor3587: Add status_codes.i as a dependencies for dcerpc.i
Tim Potter [Sun, 7 Nov 2004 00:40:41 +0000 (00:40 +0000)]
r3587: Add status_codes.i as a dependencies for dcerpc.i
(This used to be commit 358f6410639f4843a2781094fb102952f9dc8639)

16 years agor3586: Fix some of the issues with the module init functions.
Jelmer Vernooij [Sat, 6 Nov 2004 23:23:15 +0000 (23:23 +0000)]
r3586: Fix some of the issues with the module init functions.

Both subsystems and modules can now have init functions, which can be
specified in .mk files (INIT_FUNCTION = ...)

The build system will define :
 - SUBSYSTEM_init_static_modules that calls the init functions of all statically compiled modules. Failing to load will generate an error which is not fatal
 - BINARY_init_subsystems that calls the init functions (if defined) for the subsystems the binary depends on

This removes the hack with the "static bool Initialised = " and the
"lazy_init" functions
(This used to be commit 7a8244761bfdfdfb48f8264d76951ebdfbf7bd8a)

16 years agor3585: check sscanf return code
Stefan Metzmacher [Sat, 6 Nov 2004 21:51:22 +0000 (21:51 +0000)]
r3585: check sscanf return code

metze
(This used to be commit 9701abfa3a5f6351c8c7bced6adb751be9f5ff31)

16 years agor3584: fix referral handling
Stefan Metzmacher [Sat, 6 Nov 2004 20:43:36 +0000 (20:43 +0000)]
r3584: fix referral handling

metze
(This used to be commit 4868f1ea857e94f60dbde83bfb54def8a5ee728f)

16 years agor3583: - seperate the ldap client code and the ldap parsing code
Stefan Metzmacher [Sat, 6 Nov 2004 20:15:39 +0000 (20:15 +0000)]
r3583: - seperate the ldap client code and the ldap parsing code
  (vl: we should only sync the parsing code with trunk)

- use hierachical talloc in the ldap client code

metze
(This used to be commit 1e9c0b68ca9ddb28877d45fc1b47653b13a7446d)

16 years agor3582: more gcc-4.0 signedness fixes
Stefan Metzmacher [Sat, 6 Nov 2004 20:08:05 +0000 (20:08 +0000)]
r3582: more gcc-4.0 signedness fixes

metze
(This used to be commit 07405f1c67e9df8a972e17f5bdaf312977960474)

16 years agor3581: fix some signedness warnings with gcc-4.0
Stefan Metzmacher [Sat, 6 Nov 2004 20:06:56 +0000 (20:06 +0000)]
r3581: fix some signedness warnings with gcc-4.0
(there some callers to be fixed later)

metze
(This used to be commit dfb062c63c5445023055045ba40979eb58f1740e)

16 years agor3580: - on file overwrite in ntcreatex we need to replace the file permissions.
Andrew Tridgell [Sat, 6 Nov 2004 12:35:31 +0000 (12:35 +0000)]
r3580: - on file overwrite in ntcreatex we need to replace the file permissions.

- pvfs now passes BASE-OPENATTR

- pvfs also passes the BASE-DEFER_OPEN test, but it is not a well
  formed test for regular running so I am removing it from the list of
  tests to run in test_posix.sh (the test is covered better by RAW-MUX
  anyway)
(This used to be commit cb76bd218ed4194ea151264d495aa902ddf03b3c)

16 years agor3579: with the gcc warning flag from abartlet we don't need sys_strftime()
Andrew Tridgell [Sat, 6 Nov 2004 12:14:14 +0000 (12:14 +0000)]
r3579: with the gcc warning flag from abartlet we don't need sys_strftime()
(This used to be commit 041f77b6a19c98599fe18d2eb4e86db00b40014e)

16 years agor3578: a couple of include changes that should help with FreeBSD
Andrew Tridgell [Sat, 6 Nov 2004 12:10:57 +0000 (12:10 +0000)]
r3578: a couple of include changes that should help with FreeBSD
(This used to be commit d8c4a660a08d7be8b69e4e5458bdcc1cb492506e)

16 years agor3577: add a torture_join_domain_ads_dc() function,
Stefan Metzmacher [Sat, 6 Nov 2004 10:07:08 +0000 (10:07 +0000)]
r3577: add a torture_join_domain_ads_dc() function,
which will join as a w2k dc joins a ads domain

(this is currently not fully implmented,
 I just have listed the steps we need to do)

metze
(This used to be commit 29cd3d20e39766455e488c6e240228d8815bd36b)

16 years agor3576: don't consider short share delay timeouts to be an error, so we can
Andrew Tridgell [Sat, 6 Nov 2004 09:35:56 +0000 (09:35 +0000)]
r3576: don't consider short share delay timeouts to be an error, so we can
run test_posix.sh in a reaonable time by using posix:sharedelay=100000

this still tests correct multiplex behaviour
(This used to be commit 64a6db5b029343f41fc9c3582e0fb051d6c18d39)

16 years agor3575: fixed attribute normalisation in xattr code. RAW-SEARCH now passes again.
Andrew Tridgell [Sat, 6 Nov 2004 09:34:17 +0000 (09:34 +0000)]
r3575: fixed attribute normalisation in xattr code. RAW-SEARCH now passes again.
(This used to be commit 66bdc6e78c2c7ce4e215919959f0d0623ef06723)

16 years agor3574: the RAW-OPEN test changes broke a couple of the other tests. This
Andrew Tridgell [Sat, 6 Nov 2004 09:12:53 +0000 (09:12 +0000)]
r3574: the RAW-OPEN test changes broke a couple of the other tests. This
fixes most of them, although RAW-SEARCH still fails (due to an
interaction with the new xattr code)
(This used to be commit 09b4652b40c4cfca027765178bd5a0adbaa666c2)

16 years agor3573: added trans2open support to smbd and pvfs, and fine-tuned the open->generic...
Andrew Tridgell [Sat, 6 Nov 2004 07:58:45 +0000 (07:58 +0000)]
r3573: added trans2open support to smbd and pvfs, and fine-tuned the open->generic ntvfs mapping code.
(This used to be commit ed844192d7f7ed487290f719df65f256a5b0b9bc)

16 years agor3572: Thanks to tridge for his patience with my build breakage.
Andrew Bartlett [Sat, 6 Nov 2004 05:40:34 +0000 (05:40 +0000)]
r3572: Thanks to tridge for his patience with my build breakage.

This concludes the proper fixes.

Andrew Bartlett
(This used to be commit c1d025793f2994c8f1cab304c3394ab186654071)

16 years agor3571: rough guesses at what abartlet really wanted to do in his last commit
Andrew Tridgell [Sat, 6 Nov 2004 03:44:16 +0000 (03:44 +0000)]
r3571: rough guesses at what abartlet really wanted to do in his last commit
(which I suspect was missing some pieces)

this at least fixes the build so i can keep going on pvfs. Please review/fix Andrew.
(This used to be commit bffd18d09df04c1e492ef12f744ff4b6c561d53c)

16 years agor3570: Export the user's group list from ntlm_auth, via a new command 'UG'
Andrew Bartlett [Sat, 6 Nov 2004 01:20:28 +0000 (01:20 +0000)]
r3570: Export the user's group list from ntlm_auth, via a new command 'UG'
(user groups).  The form of this is not final, but is this should be a
discussion point with the squid team.

Andrew Bartlett
(This used to be commit cbb0c67d06f75c2d8841a95ba8837124160ffd49)

16 years agor3565: Move PAC parsing into the session_info generation, and out of the
Andrew Bartlett [Fri, 5 Nov 2004 23:26:02 +0000 (23:26 +0000)]
r3565: Move PAC parsing into the session_info generation, and out of the
basic krb5 request path.

The idea is that we should not do the extra work, if we are not going
to use the results.

Andrew Bartlett
(This used to be commit 13a2a9e326c027d76d27ecd08fb9863fe881bf30)

16 years agor3558: We don't seem to need these as [public] any more.
Andrew Bartlett [Fri, 5 Nov 2004 12:53:04 +0000 (12:53 +0000)]
r3558: We don't seem to need these as [public] any more.

Andrew Bartlett
(This used to be commit f1d0bb409a481aeb094c586458f2b05576d2bef8)

16 years agor3557: Use a switch, not a series of if/else if statements.
Andrew Bartlett [Fri, 5 Nov 2004 12:52:09 +0000 (12:52 +0000)]
r3557: Use a switch, not a series of if/else if statements.

Andrew Bartlett
(This used to be commit fb7bc73f581c8b13041a91a115b4932f76b00ca7)

16 years agor3556: Remove --enable-krb5developer and --enable-gtkdeveloper, as the new
Andrew Bartlett [Fri, 5 Nov 2004 12:48:22 +0000 (12:48 +0000)]
r3556: Remove --enable-krb5developer and --enable-gtkdeveloper, as the new
modular headers confine the warnings, and everwhere else we need them.

Use the gcc option to suppress the silly strftime warning.

Andrew Bartlett
(This used to be commit 0bf3c245902da7e2e1a6b03c410d49c79f43edc7)

16 years agor3555: Fix auth_winbind to work with the new auth_util conversion code.
Andrew Bartlett [Fri, 5 Nov 2004 12:46:00 +0000 (12:46 +0000)]
r3555: Fix auth_winbind to work with the new auth_util conversion code.

Andrew Bartlett
(This used to be commit 3215f1c6ce9ec27affa8a7a6f440ef26ad878eae)

16 years agor3554: Use the new talloc_reference changes to simply the conversion of
Andrew Bartlett [Fri, 5 Nov 2004 12:44:18 +0000 (12:44 +0000)]
r3554: Use the new talloc_reference changes to simply the conversion of
returned validation information into the server_info struct.

Also allow for easier expansion to different variations on validation
levels.

Andrew Bartlett
(This used to be commit 316b74029cf3e10cf14cffe8ce326a97ef3aec35)

16 years agor3553: Allow talloc_reference to take a NULL pointer for the "ptr" argument.
Andrew Bartlett [Fri, 5 Nov 2004 12:20:27 +0000 (12:20 +0000)]
r3553: Allow talloc_reference to take a NULL pointer for the "ptr" argument.

This allows potentially NULL pointers to be referenced, without an if ()
for every use.  (previously, it would segfault).

Update doco, and allow talloc_unlink to match.

Andrew Bartlett
(This used to be commit 59757c7f9d0e08e3acacfb3116f6205057d5b119)

16 years agor3552: fixed sense of ACL test
Andrew Tridgell [Fri, 5 Nov 2004 12:10:28 +0000 (12:10 +0000)]
r3552: fixed sense of ACL test
(This used to be commit 630af28a0f812b5bafce3ffeb72ebd069b66adac)