1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

2759 Commits

Author SHA1 Message Date
Andrew Bartlett
50916c8f2f 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 9cd666bcfb)
2007-10-10 13:05:47 -05:00
Andrew Bartlett
d309966e31 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 d6aca06793)
2007-10-10 13:05:46 -05:00
Stefan Metzmacher
eabdfac14e r3722: - add userdomain in the binding dialog
- print samba_version_string() on Help->About

- some minor format fixes

metze
(This used to be commit b11bcb2704)
2007-10-10 13:05:46 -05:00
Andrew Bartlett
2f8804631d r3721: We cracked the NTLM2 puzzle long ago, and set the flags elsewhere.
Remove the conditional set.

Andrew Bartlett
(This used to be commit f5d8a4dde5)
2007-10-10 13:05:46 -05:00
Andrew Tridgell
a1a05543dc 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 a20cbca788)
2007-10-10 13:05:46 -05:00
Andrew Tridgell
263916cf71 r3719: pvfs now passes the RAW-RENAME test
(This used to be commit 3ab8136431)
2007-10-10 13:05:46 -05:00
Andrew Tridgell
1b2b72ff61 r3718: added support for the ntrename level in pvfs_rename().
(This used to be commit 3d50982f54)
2007-10-10 13:05:46 -05:00
Andrew Tridgell
1c59d825af 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 e255d1c3a8)
2007-10-10 13:05:46 -05:00
Andrew Bartlett
1158268287 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 c1d3794cad)
2007-10-10 13:05:46 -05:00
Andrew Tridgell
62979b84cb r3700: pvfs passes RAW-WRITE but not BASE-DELAYWRITE
(This used to be commit 7f3315d919)
2007-10-10 13:05:45 -05:00
Andrew Tridgell
0e255bb542 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 f7fb34715b)
2007-10-10 13:05:45 -05:00
Andrew Tridgell
27859603d7 r3698: mark RAW-SFILEINFO as working
(This used to be commit f0760858f8)
2007-10-10 13:05:45 -05:00
Jelmer Vernooij
3c8dab7a61 r3696: Feed directly to perl, rather then creating an intermediate file
(This used to be commit dab264b78c)
2007-10-10 13:05:45 -05:00
Jelmer Vernooij
2de1e5299d r3695: Add intermediate functions to use when migrating from .m4+.mk to .pm files
(This used to be commit fb849a309b)
2007-10-10 13:05:45 -05:00
Andrew Tridgell
94c6fde541 r3694: added support for the RENAME_INFORMATION level of setfileinfo and
setpathinfo. pvfs now passes the RAW-SFILEINFO test.
(This used to be commit 31ac31398b)
2007-10-10 13:05:45 -05:00
Jelmer Vernooij
a20b130b5f r3691: Use packages
(This used to be commit 975f06b626)
2007-10-10 13:05:45 -05:00
Jelmer Vernooij
ab440ac6f7 r3690: Use perl's 'use' statement to include the build system parts
rather then using "cat"
(This used to be commit 4d018b2b70)
2007-10-10 13:05:44 -05:00
Jelmer Vernooij
79c5d73a71 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 7466947a23)
2007-10-10 13:05:44 -05:00
Andrew Bartlett
c8b894b670 r3687: Gaah - I forgot to add the new file for the RPC-SAMSYNC test...
See -r 3686

Andrew Bartlett
(This used to be commit ab12134286)
2007-10-10 13:05:44 -05:00
Andrew Bartlett
fd5135a63b 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 6e6cc6fb98)
2007-10-10 13:05:43 -05:00
Andrew Bartlett
32e368502d 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 68dd173dc0)
2007-10-10 13:05:43 -05:00
Andrew Bartlett
189783e5b9 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 295e09fa3e)
2007-10-10 13:05:43 -05:00
Andrew Bartlett
8ea4cb31d9 r3678: Remove testing code accidentily commited.
Andrew Bartlett
(This used to be commit cd23ddd0a7)
2007-10-10 13:05:43 -05:00
Andrew Bartlett
a8db4dcf03 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 3a140a3691)
2007-10-10 13:05:43 -05:00
Andrew Bartlett
5afda90c95 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 49c335bcd8)
2007-10-10 13:05:43 -05:00
Jelmer Vernooij
0d696dc0e9 r3667: Small COM fixes
(This used to be commit 7484b9be74)
2007-10-10 13:05:43 -05:00
Volker Lendecke
f847f3a3e1 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 02f5205872)
2007-10-10 13:05:42 -05:00
Andrew Tridgell
e7810eeab7 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 4b3afc6c39)
2007-10-10 13:05:42 -05:00
Andrew Bartlett
70fbbdfdfd r3657: More netlogon torture. We now test both function calls (SamLogon and SamLogonWithFlags).
Andrew Bartlett
(This used to be commit 7937503849)
2007-10-10 13:05:42 -05:00
Andrew Tridgell
099d8cc972 r3656: allow easy testing of the "realloc changes the pointer" type of problem that abartlet
recently fixed.
(This used to be commit 70e53a21f2)
2007-10-10 13:05:42 -05:00
Andrew Bartlett
5805c780dc r3655: As required by the new torture test, add the LM session key output
parameter to SMBNTLMv2encrypt().

Andrew Bartlett
(This used to be commit 75ff351faf)
2007-10-10 13:05:42 -05:00
Andrew Bartlett
cb700e90c2 r3654: Add static and fix indentation.
Andrew Bartlett
(This used to be commit cef31134ec)
2007-10-10 13:05:42 -05:00
Andrew Bartlett
f1119474fa 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 be99ee4719)
2007-10-10 13:05:42 -05:00
Andrew Bartlett
017bf499d4 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 4bfc916a2c)
2007-10-10 13:05:42 -05:00
Andrew Bartlett
d1f4ba08df 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 bd9497b092)
2007-10-10 13:05:41 -05:00
Jelmer Vernooij
7fb2523b4c r3636: Fix python build
(This used to be commit 0cf3978714)
2007-10-10 13:05:41 -05:00
Andrew Tridgell
cc0e670156 r3635: fixed the crash from the BASE-DISCONNECT test
(This used to be commit bdabb3f836)
2007-10-10 13:05:41 -05:00
Andrew Tridgell
77ff35de86 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 25e0138464)
2007-10-10 13:05:41 -05:00
Andrew Tridgell
4815480bb6 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 5205f598b8)
2007-10-10 13:05:41 -05:00
Andrew Tridgell
3351f1aa8d 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 0443537be8)
2007-10-10 13:05:41 -05:00
Andrew Tridgell
47b91c97cd 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 bfca9eb7cb)
2007-10-10 13:05:41 -05:00
Jelmer Vernooij
0639758dd9 r3630: More work on DCOM server side
(This used to be commit e995a1c0e5)
2007-10-10 13:05:40 -05:00
Jelmer Vernooij
b3ef49946f r3629: A bit of work on the DCOM server architecture, small fixes
(This used to be commit e7b67ff22f)
2007-10-10 13:05:40 -05:00
Jelmer Vernooij
e056ed97d7 r3626: More minor DCOM fixes
(This used to be commit 709f279b19)
2007-10-10 13:05:40 -05:00
Jelmer Vernooij
73c1f61350 r3625: Couple of minor DCOM bugfixes
(This used to be commit 6f5bf44ade)
2007-10-10 13:05:40 -05:00
Andrew Tridgell
c077300a22 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 aa09df22ee)
2007-10-10 13:05:40 -05:00
Andrew Tridgell
19fc6e8f51 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 6e4fdf01d1)
2007-10-10 13:05:40 -05:00
Andrew Tridgell
ce51a06f02 r3613: fixed a typo
(This used to be commit 891e3097ee)
2007-10-10 13:05:40 -05:00
Andrew Bartlett
3dbc38fd6b r3612: This appears to be the 'offical' way to initialise this struct.
Andrew Bartlett
(This used to be commit 47d67c6e5b)
2007-10-10 13:05:40 -05:00
Jelmer Vernooij
8c2e179d47 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 8693344772)
2007-10-10 13:05:39 -05:00