1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

16339 Commits

Author SHA1 Message Date
Jelmer Vernooij
4a8212c955 Refuse to install autogenerated proto header files.
(This used to be commit c0a84c2b4698f6ac9b555cc74bed52e5930804d9)
2008-05-21 20:46:16 +02:00
Jelmer Vernooij
03b328eb90 Ignore generated netlogon headers.
(This used to be commit 28e04f751f1d509da2c821f33df79b2a0c2d5a1a)
2008-05-21 20:44:36 +02:00
Jelmer Vernooij
a1411c1a26 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into nosmbpython
(This used to be commit f29e9009310e4a6d575651dd9ba41ffc90bfb386)
2008-05-21 15:45:04 +02:00
Jelmer Vernooij
0c357edb13 Fix typo.
(This used to be commit f0914d0187130adcd4f239d4ea0fc9f729fdedc9)
2008-05-21 15:40:55 +02:00
Jelmer Vernooij
1929675813 Fix reference to removed smbpython.
(This used to be commit 58f956dc4591137489cba16f360f2d24d91dadc1)
2008-05-21 15:39:00 +02:00
Andrew Tridgell
aed93a238e fixed SMB2 flush call, and added flush to gentest_smb2
(This used to be commit c52fe1fe1c77636d87355d3c4baa66e052fe9008)
2008-05-21 22:51:21 +10:00
Jelmer Vernooij
721332411a Regenerate with newer version of swig.
(This used to be commit 034c68bea934db87bce13a750c17fb1bd2bbe3b6)
2008-05-21 14:29:05 +02:00
Jelmer Vernooij
9d1fd37e79 Use gnu make syntax for SWIG implicit rule since it allows multiple output files.
(This used to be commit ce440887316d3ae379551c136f6b640c573fd702)
2008-05-21 14:28:10 +02:00
Andrew Tridgell
4d39976ddd fixed SMB2 locking
- SMB2 locking is different in several ways from SMB locking. To fix
  it properly we will need a new generic mapping structure for
  locking, but for now do a best effort mapping

- added locking to gentest_smb2
(This used to be commit ea6d9cf602302adafe0f9d5f5f90a9b26d1ead6f)
2008-05-21 22:12:20 +10:00
Jelmer Vernooij
af61219f36 Fix dependencies for ldb instancetype module.
(This used to be commit 17c41a6c3e71102e3516e6926f7e7d1ab5c97563)
2008-05-21 12:38:47 +02:00
Jelmer Vernooij
d17b9c4509 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into nosmbpython
(This used to be commit 5c56464a6c2f29a039ba3152de83d34778ca0615)
2008-05-21 12:22:05 +02:00
Jelmer Vernooij
904359cd2f Fix installed symlinks (cp was trying to be smart).
(This used to be commit a95f2bf86a75729717542b401aa39bedd21be8d0)
2008-05-21 12:14:47 +02:00
Jelmer Vernooij
12d32fb18e Allow dots in .mk file section headers, fix docstring.
(This used to be commit bd3f3e7c85f1a92638d69379782aa7bfcecd9e2f)
2008-05-21 12:02:02 +02:00
Andrew Bartlett
59105620dc Correct an assertion in the testsuite.
Andrew Bartlett
(This used to be commit c3eeae2ea6a7562b43a436f20c110002ca4d1d2b)
2008-05-21 14:49:47 +10:00
Andrew Bartlett
40ff67e454 Merge branch 'v4-0-local' of git://git.id10ts.net/samba into 4-0-local
(This used to be commit 0e429dd1fb15137a2a7c25e051b9af8c4ed8c7f3)
2008-05-21 14:34:43 +10:00
Andrew Bartlett
3a29c33e82 Fix creation of sockaddr in netlogon datagram generator.
The previous code sent uninitialised data, and was the wrong length.

Andrew Bartlett
(This used to be commit 8e070293cfd522b7464be5bc4d8045572d6d996c)
2008-05-21 14:29:20 +10:00
Andrew Bartlett
5cc4b9d13e Include flags.h into samdb.h
These flags are too useful just to hide away...

Andrew Bartlett
(This used to be commit 1e897b6148407e9921edd2c3db734930d79ccb42)
2008-05-21 14:28:50 +10:00
Andrew Bartlett
52a3c96a89 Extend the NBT-DGRAM torture test again.
Andrew Bartlett
(This used to be commit f4154846401b31d99c40b2ea53992262095366b0)
2008-05-21 14:28:17 +10:00
Andrew Bartlett
2f5a1d2b1c Manually handle the NETLOGON_SAM_LOGON_REQUEST too.
With the sid structure being both optional and aligned, it was too
hard to do this in just IDL.

This requried moving some things around, as otherwise we would have a
dependency loop.

Andrew Bartlett
(This used to be commit e28790ba4884277f310be1b8bd3fba4fd47dbbdb)
2008-05-21 14:26:38 +10:00
Andrew Bartlett
f67156fc92 Extend the 'netlogon' CLDAP and NBT implementation.
This now handles checking if the user exists, including validating the
ACB mask on the user.

This would be a nasty security hole, if Kerberos did not already
expose this information anonymously...

Andrew Bartlett
(This used to be commit 441b286c00f9a7743cdefeb243545bdbd2c94c5e)
2008-05-21 12:37:36 +10:00
Andrew Bartlett
fdec7fdaf5 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 7594f79db6a0e8a46e2863829e5e050b03dfaec1)
2008-05-21 12:13:45 +10:00
Andrew Bartlett
2f773ff347 Re-add alignment removed by metze in 0e2f6d481b3e35ed392b2b3340b244c77593819c
This manual alignment is required, because the structure is marked as
unaligned.

Andrew Bartlett
(This used to be commit ef5d1c8d320d45b78a1e709964eaada4f5acda59)
2008-05-21 10:23:02 +10:00
Andrew Bartlett
58375fdff0 Further tests show NTLOGON and NETLOGON to be identical.
I can't tell the difference between the NTLOGON and NETLOGON behaviour
on these pipes, and this 'exception' turned out to be alignment
dependent, not pipe dependent.

Andrew Bartlett
(This used to be commit bf1b99aff2a8feaee5f57c7530bc81d447e5d765)
2008-05-21 10:18:21 +10:00
Jeremy Allison
6d4424cd45 Convert in_transaction to a bool. Add the same fix Volker
used for tdb_traverse() to tdb_traverse_read().
Jeremy.
(This used to be commit e05ec3047c4fe0cc2e09a812830fc835dc35abea)
2008-05-20 14:20:47 -07:00
Volker Lendecke
aa7e4b8e9c Fix nesting tdb_traverse in a transaction
Calling tdb_traverse inside a transaction led to the transaction lock being
held indefinitely. This was caused by the tdb_transaction_lock/unlock inside
tdb_traverse: The transaction code holds the global lock at offset
TRANSACTION_LOCK. The call to tdb_transaction_lock does nothing because the
transaction_lock is already being held. tdb_transaction_unlock inside tdb_wrap
resets tdb->have_transaction_lock but does not release the kernel-level fcntl
lock. transaction_commit later on does not release that fcntl lock either,
because tdb->have_transaction_lock was already reset by tdb_transaction().

This patch does fix that problem for me. An alternative would be to make
tdb->have_transaction_lock a counter that can cope with proper nesting, maybe
in other places as well.

Volker
(This used to be commit 89543005fe2e4934b3c560c937d49304a32a7fc2)
2008-05-20 14:20:42 -07:00
James Peach
9a975a868e smbtorture: Add RAW-BENCH-TCON benchmark.
Add a simple test to benchmark the rate at which a server can accept
new tree connections. You can tune the length of time to run the
benchmark for and the number of parallel connections to make.
(This used to be commit ea3f4b93057e85c4ea516cc77dd0f293016d520c)
2008-05-20 11:35:32 -07:00
Volker Lendecke
276fa76fa9 Change wks password in rpc-bench-schannel1
Prove that a workstation password change does not affect existing schannel
connections
(This used to be commit f72dc52ccc426c8057b91b4699dfeda7d9e9b864)
2008-05-20 13:06:05 +02:00
Andrew Tridgell
cd167fd44b Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit e360be0b99b638afdfa789e217bf08f99d09be7a)
2008-05-20 15:35:49 +10:00
Andrew Bartlett
52f0af3990 Fix irpc GetDC requests.
We would return NT_STATUS_NO_LOGON_SERVERS in all cases, which was
less than helpful.

Andrew Bartlett
(This used to be commit 5dfa316b3636718ffc6fd26cf7a397a797bd2ac1)
2008-05-20 15:28:26 +10:00
Andrew Tridgell
5ca6f42510 added read and write handlers. Fixed --analyse
(This used to be commit c05ed7bb9ae7211a7001fd0a3403744ba4f6dda0)
2008-05-20 15:16:53 +10:00
Andrew Bartlett
acba9bc702 Fix number of arguments to IRPC getdc callback.
Andrew Bartlett
(This used to be commit 8753ced2f4ee25cd5eff011f66f8e37f9807bdaf)
2008-05-20 14:52:57 +10:00
Andrew Tridgell
2214e6d9bf added smb2_util_setatr
(This used to be commit d4f41db964ce82c8889017d0f932d60100b3cd32)
2008-05-20 13:37:51 +10:00
Andrew Tridgell
430f4ef666 specify which server failed to deltree
(This used to be commit aa9108374f0dda8510245a6e69a53189f55a81e3)
2008-05-20 13:37:40 +10:00
Andrew Tridgell
d6f1dd1a42 added SMB2 setpathinfo composite wrapper
(This used to be commit e90c7587385598a1dd976c2420798f9bd682b43d)
2008-05-20 13:37:27 +10:00
Andrew Tridgell
fc267b0510 first version of gentest_smb2. Only generates create and close so far.
(This used to be commit 634a4bbd98e1c281f8339073b90cb7696ac59baa)
2008-05-20 11:59:43 +10:00
Andrew Tridgell
f8f0cc985b moved these util functions into libcli
(This used to be commit b2f1154bc338fb56fc998f40159156cb6859075b)
2008-05-20 11:59:18 +10:00
Andrew Tridgell
2352602a57 check the creation options where the client can require a path to be a
file or a directory
(This used to be commit c05b58940f06b01b9770c218eb0708cb621215ef)
2008-05-20 11:58:47 +10:00
Andrew Tridgell
803c076450 added some SMB2 utility functions
(This used to be commit 6a3b1cd6698faa460c6258bb41b4936e363f4387)
2008-05-20 11:58:04 +10:00
Andrew Tridgell
9c6a35ad9b remember the server time fields on negotiate. Needed for gentest
(This used to be commit 7989ca861dcc700b52be3a47ea5ae8b03fbb9330)
2008-05-20 11:57:43 +10:00
Andrew Bartlett
aa90730e0c Revert addition of 'mailslot' parameter.
It turns out that the mailslot name (and a useful private prointer) is
provided in the struct dgram_mailslot_handler.

Andrew Bartlett
(This used to be commit e17804b8857fdb3c182c5e886323b9d6c194c2ff)
2008-05-20 11:54:50 +10:00
Andrew Tridgell
9551d4027d Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit ffbd222d651dcddb19cacdc50cdbfeaefa816940)
2008-05-20 11:37:23 +10:00
Andrew Bartlett
e533e7a7eb Fix prototype generation in new syntax for netlogon.c
Andrew Bartlett
(This used to be commit b6f91ce75ae401bed515012fa3019a6241e7ff6d)
2008-05-20 11:24:38 +10:00
Andrew Bartlett
cb42e59b77 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 67b47606b9c5b794d8feea5ba200098e9b9e33e3)
2008-05-20 11:03:45 +10:00
Andrew Bartlett
8052309d5a Add the core of the new CLDAP/NBT 'netlogon' parsing library.
This uses some hand-adjusted PIDL output to cope with some 'oddities'
in the parsing of the _EX varient of the netlogon packet.

Andrew Bartlett
(This used to be commit 6e357d00474de65395ca51524d3b85d00691baf2)
2008-05-20 10:58:43 +10:00
Jelmer Vernooij
7015b7840c Update tdb version number.
(This used to be commit eae17ae8ecdcb83fdb756189a9d5609a192371a4)
2008-05-20 01:52:11 +02:00
Jelmer Vernooij
1323e3e736 Fix proto generation.
(This used to be commit 7385d9641d49b94c83fd2c75e57c9623d21fcdb0)
2008-05-20 01:02:05 +02:00
Andrew Bartlett
28b2fa8623 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 69bac908bec3216d2f17042aa05ab8d4b55b0918)
2008-05-20 08:27:08 +10:00
Andrew Bartlett
868c45102d Don't regenerate pam_errors.h any more.
Due to the new rules on prototypes, it must be a static header file.

Andrew Bartlett
(This used to be commit cf60a9b34ec2419b2bc03a37190cb17ad4cf3d5f)
2008-05-20 08:06:50 +10:00
Andrew Bartlett
343fea32cc Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Fix config.mk due to changing syntax.

Conflicts:

	source/libcli/config.mk
	source/nbt_server/config.mk
(This used to be commit 6a1c76f29f78183f44dfac6f468c5e728d2cb2cf)
2008-05-20 08:03:35 +10:00
Jelmer Vernooij
1b4b8d5e78 Add __repr__ implementation for Tdb.
(This used to be commit 205699ed663a3c6d27695dee25bf26978615b475)
2008-05-19 23:36:33 +02:00