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

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 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)

14 years agor3551: these utils need system/filesys.h
Andrew Tridgell [Fri, 5 Nov 2004 12:06:36 +0000 (12:06 +0000)]
r3551: these utils need system/filesys.h
(This used to be commit 1b945f9f4bcbb6afb3e531e92cd2e904c92c334e)

14 years agor3550: fixed initial attribute on file create (inlusion of FILE_ATTRIBUTE_ARCHIVE)
Andrew Tridgell [Fri, 5 Nov 2004 11:49:37 +0000 (11:49 +0000)]
r3550: fixed initial attribute on file create (inlusion of FILE_ATTRIBUTE_ARCHIVE)
(This used to be commit b07feaafd16e42e84ba51004a6a9d4a3cb8f9a37)

14 years agor3549: added support for DOS extended attribute lists (name/value pairs)
Andrew Tridgell [Fri, 5 Nov 2004 11:31:35 +0000 (11:31 +0000)]
r3549: added support for DOS extended attribute lists (name/value pairs)
stored in posix xattrs
(This used to be commit bad6a88371264cffce2bf5d6ce904b7b357081de)

14 years agor3548: removed extra net/if.h include
Andrew Tridgell [Fri, 5 Nov 2004 10:53:20 +0000 (10:53 +0000)]
r3548: removed extra net/if.h include
(This used to be commit 1551f211d983398a4f27eaeebdd4bf05f8beb330)

14 years agor3547: fixed waitpid in fcntl_lock.c (thanks to jbm for pointing this out)
Andrew Tridgell [Fri, 5 Nov 2004 10:30:54 +0000 (10:30 +0000)]
r3547: fixed waitpid in fcntl_lock.c (thanks to jbm for pointing this out)
(This used to be commit 864a142409dcf3339343fdff407332629ad07633)

14 years agor3546: including includes.h twice causes gcc 3.4 to crash with pch
Andrew Tridgell [Fri, 5 Nov 2004 09:19:42 +0000 (09:19 +0000)]
r3546: including includes.h twice causes gcc 3.4 to crash with pch
(This used to be commit 51c1c2af687ed351d12e6d933659d94f5925728c)

14 years agor3545: initial support for using extended attributes to hold extended dos attributes...
Andrew Tridgell [Fri, 5 Nov 2004 07:29:02 +0000 (07:29 +0000)]
r3545: initial support for using extended attributes to hold extended dos attributes of files.

I decided to use IDL/NDR to encode the attribute, as it gives us a
simple way to describe and extend the saved attributes.

The xattr code needs to hook into quite a few more places in the pvfs
code, but this at least gets the basics done. I will start encoding
alternate data streams streams, DOS EAs etc soon using the same basic
mechanism.

I'll probably stick to "version 1" for the xattr.idl for quite a while
even though it will be changing, as I don't expect anyone to be
deploying this in production just yet. Once we have production users
we will need to keep compatibility by supporting all the old version
numbers in xattr.idl.
(This used to be commit c54253ed1b7dce1d14f43e747da61089aea87094)

14 years agor3544: fixed some #include lines to make them more consistent
Andrew Tridgell [Fri, 5 Nov 2004 07:24:25 +0000 (07:24 +0000)]
r3544: fixed some #include lines to make them more consistent
(This used to be commit a1a0118bd3f1cae034a1c564d05c3aa8019ff932)

14 years agor3543: fixed some #include lines to make them more consistent, and fixed
Andrew Tridgell [Fri, 5 Nov 2004 07:23:06 +0000 (07:23 +0000)]
r3543: fixed some #include lines to make them more consistent, and fixed
conditional compilation of xattr client code
(This used to be commit 321fb06a627f4deae649ab014bc881721d37b3dd)

14 years agor3542: Re-indent, and fix a use-after-free by doing the talloc_destroy just a
Andrew Bartlett [Fri, 5 Nov 2004 06:56:39 +0000 (06:56 +0000)]
r3542: Re-indent, and fix a use-after-free by doing the talloc_destroy just a
little later.

Andrew Bartlett
(This used to be commit b7c2a4fc34ef09b177508dcf475055523b84587c)

14 years agor3541: Add support (to be verified with the squid team) for the Squid 3.0
Andrew Bartlett [Fri, 5 Nov 2004 04:26:48 +0000 (04:26 +0000)]
r3541: Add support (to be verified with the squid team) for the Squid 3.0
multiplexed helper system.

This system prefixes every request with a number, and we maintian a
state machine for each of these integers.  This means that we can have
multiple outstanding challenges, without the overhead of a whole
ntlm_auth process.

In future, the actual password check will also be async.

Andrew Bartlett
(This used to be commit 9ea34abce384214e35b1b2c5f405c5f91f27d195)

14 years agor3540: added testing of SMBntcancel in the open/open/close mux
Andrew Tridgell [Fri, 5 Nov 2004 02:22:07 +0000 (02:22 +0000)]
r3540: added testing of SMBntcancel in the open/open/close mux
testing. Interestingly, w2k3 does not allow the cancel of an
outstanding async open request, whereas it does allow the cancel of an
outstanding async lock request. To support this I have changed the
pvfs_wait interface to provide a enum on why the event is happening,
so the callback can decide what to do.
(This used to be commit f23d6a28008a13588cde24b5012ec21e488ac47a)

14 years agor3539: much nicer async open delay code.
Andrew Tridgell [Fri, 5 Nov 2004 01:14:06 +0000 (01:14 +0000)]
r3539: much nicer async open delay code.

The previous code didn't handle the case where the file got renamed or
deleted while waiting for the sharing violation delay. To handle this
we need to make the 2nd open a full open call, including the name
resolve call etc. Luckily this simplifies the logic.

I also expanded the RAW-MUX test to include the case where we do
open/open/open/close/close, with the 3rd open async, and that open
gets retried after both the first close and the 2nd close, with the
first retry failing and the 2nd retry working. The tests the "async
reply after a async reply" logic in pvfs_open().
(This used to be commit eded2ad9c91f5ba587ef4f7f5f5a6dceb4b51ff3)

14 years agor3536: Some minor IDL updates/fixes/additions
Jelmer Vernooij [Thu, 4 Nov 2004 23:57:49 +0000 (23:57 +0000)]
r3536: Some minor IDL updates/fixes/additions
(This used to be commit 6fab01df000a126d2d01c41ead952d027f755309)

14 years agor3532: make sharing violation delay in pvfs configurable with "posix:sharedelay ...
Andrew Tridgell [Thu, 4 Nov 2004 13:27:29 +0000 (13:27 +0000)]
r3532: make sharing violation delay in pvfs configurable with "posix:sharedelay = usecs"
(This used to be commit c4758776491e5ed9f5b8c387226d1e75bc70eb2e)

14 years agor3531: add support for RAW_OPEN_MKNEW, RAW_OPEN_CREATE and RAW_OPEN_CTEMP in pvfs
Andrew Tridgell [Thu, 4 Nov 2004 13:15:22 +0000 (13:15 +0000)]
r3531: add support for RAW_OPEN_MKNEW, RAW_OPEN_CREATE and RAW_OPEN_CTEMP in pvfs
(This used to be commit 1d2f0a55c1de01cbbf6552371584847223841bc3)

14 years agor3530: make sure we match ntvfs_async_state_pop() with ntvfs_async_state_push()
Andrew Tridgell [Thu, 4 Nov 2004 12:12:09 +0000 (12:12 +0000)]
r3530: make sure we match ntvfs_async_state_pop() with ntvfs_async_state_push()
(This used to be commit 730ae0600e6c75a7048f7aaf3995604e8cdbba39)

14 years agor3529: fixed signing support for SMBntcancel requests (no reply means seq
Andrew Tridgell [Thu, 4 Nov 2004 11:38:44 +0000 (11:38 +0000)]
r3529: fixed signing support for SMBntcancel requests (no reply means seq
number rises by 1, not 2)
(This used to be commit 201ff734d47cb0c335820f11e2629cb3bd18162f)

14 years agor3528: added support for the SMBntcancel() operation, which cancels any
Andrew Tridgell [Thu, 4 Nov 2004 11:28:38 +0000 (11:28 +0000)]
r3528: added support for the SMBntcancel() operation, which cancels any
outstanding async operation (triggering an immediate timeout).

pvfs now passes the RAW-MUX test
(This used to be commit 3423e2f41461d054067ef168b9b986f62cc8f77c)

14 years agor3527: I hate compiler warnings...
Stefan Metzmacher [Thu, 4 Nov 2004 10:16:53 +0000 (10:16 +0000)]
r3527: I hate compiler warnings...

metze
(This used to be commit d264aacfd5b96c1fdb57fd1b6206835a7526eb3c)

14 years agor3524: Remove unused variable.
Andrew Bartlett [Thu, 4 Nov 2004 08:30:16 +0000 (08:30 +0000)]
r3524: Remove unused variable.

Andrew Bartlett
(This used to be commit a9f57319b8016d7ec379160132f7ea07cb7d5123)