kai/samba.git
15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Wed, 21 May 2008 02:13:45 +0000 (12:13 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 7594f79db6a0e8a46e2863829e5e050b03dfaec1)

15 years agoRe-add alignment removed by metze in 0e2f6d481b3e35ed392b2b3340b244c77593819c
Andrew Bartlett [Wed, 21 May 2008 00:23:02 +0000 (10:23 +1000)]
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)

15 years agoFurther tests show NTLOGON and NETLOGON to be identical.
Andrew Bartlett [Wed, 21 May 2008 00:18:21 +0000 (10:18 +1000)]
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)

15 years agoConvert in_transaction to a bool. Add the same fix Volker
Jeremy Allison [Tue, 20 May 2008 21:18:58 +0000 (14:18 -0700)]
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)

15 years agoFix nesting tdb_traverse in a transaction
Volker Lendecke [Tue, 20 May 2008 19:54:36 +0000 (21:54 +0200)]
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)

15 years agosmbtorture: Add RAW-BENCH-TCON benchmark.
James Peach [Tue, 20 May 2008 17:54:45 +0000 (10:54 -0700)]
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)

15 years agoChange wks password in rpc-bench-schannel1
Volker Lendecke [Tue, 20 May 2008 10:59:04 +0000 (12:59 +0200)]
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)

15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Andrew Tridgell [Tue, 20 May 2008 05:35:49 +0000 (15:35 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit e360be0b99b638afdfa789e217bf08f99d09be7a)

15 years agoFix irpc GetDC requests.
Andrew Bartlett [Tue, 20 May 2008 05:28:26 +0000 (15:28 +1000)]
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)

15 years agoadded read and write handlers. Fixed --analyse
Andrew Tridgell [Tue, 20 May 2008 05:16:53 +0000 (15:16 +1000)]
added read and write handlers. Fixed --analyse
(This used to be commit c05ed7bb9ae7211a7001fd0a3403744ba4f6dda0)

15 years agoFix number of arguments to IRPC getdc callback.
Andrew Bartlett [Tue, 20 May 2008 04:52:57 +0000 (14:52 +1000)]
Fix number of arguments to IRPC getdc callback.

Andrew Bartlett
(This used to be commit 8753ced2f4ee25cd5eff011f66f8e37f9807bdaf)

15 years agoadded smb2_util_setatr
Andrew Tridgell [Tue, 20 May 2008 03:37:51 +0000 (13:37 +1000)]
added smb2_util_setatr
(This used to be commit d4f41db964ce82c8889017d0f932d60100b3cd32)

15 years agospecify which server failed to deltree
Andrew Tridgell [Tue, 20 May 2008 03:37:40 +0000 (13:37 +1000)]
specify which server failed to deltree
(This used to be commit aa9108374f0dda8510245a6e69a53189f55a81e3)

15 years agoadded SMB2 setpathinfo composite wrapper
Andrew Tridgell [Tue, 20 May 2008 03:37:27 +0000 (13:37 +1000)]
added SMB2 setpathinfo composite wrapper
(This used to be commit e90c7587385598a1dd976c2420798f9bd682b43d)

15 years agofirst version of gentest_smb2. Only generates create and close so far.
Andrew Tridgell [Tue, 20 May 2008 01:59:43 +0000 (11:59 +1000)]
first version of gentest_smb2. Only generates create and close so far.
(This used to be commit 634a4bbd98e1c281f8339073b90cb7696ac59baa)

15 years agomoved these util functions into libcli
Andrew Tridgell [Tue, 20 May 2008 01:59:18 +0000 (11:59 +1000)]
moved these util functions into libcli
(This used to be commit b2f1154bc338fb56fc998f40159156cb6859075b)

15 years agocheck the creation options where the client can require a path to be a
Andrew Tridgell [Tue, 20 May 2008 01:58:47 +0000 (11:58 +1000)]
check the creation options where the client can require a path to be a
file or a directory
(This used to be commit c05b58940f06b01b9770c218eb0708cb621215ef)

15 years agoadded some SMB2 utility functions
Andrew Tridgell [Tue, 20 May 2008 01:58:04 +0000 (11:58 +1000)]
added some SMB2 utility functions
(This used to be commit 6a3b1cd6698faa460c6258bb41b4936e363f4387)

15 years agoremember the server time fields on negotiate. Needed for gentest
Andrew Tridgell [Tue, 20 May 2008 01:57:43 +0000 (11:57 +1000)]
remember the server time fields on negotiate. Needed for gentest
(This used to be commit 7989ca861dcc700b52be3a47ea5ae8b03fbb9330)

15 years agoRevert addition of 'mailslot' parameter.
Andrew Bartlett [Tue, 20 May 2008 01:54:50 +0000 (11:54 +1000)]
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)

15 years agoMerge commit 'origin/v4-0-test' into vfs_smb2
Andrew Tridgell [Tue, 20 May 2008 01:37:23 +0000 (11:37 +1000)]
Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit ffbd222d651dcddb19cacdc50cdbfeaefa816940)

15 years agoFix prototype generation in new syntax for netlogon.c
Andrew Bartlett [Tue, 20 May 2008 01:24:38 +0000 (11:24 +1000)]
Fix prototype generation in new syntax for netlogon.c

Andrew Bartlett
(This used to be commit b6f91ce75ae401bed515012fa3019a6241e7ff6d)

15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Tue, 20 May 2008 01:03:45 +0000 (11:03 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 67b47606b9c5b794d8feea5ba200098e9b9e33e3)

15 years agoAdd the core of the new CLDAP/NBT 'netlogon' parsing library.
Andrew Bartlett [Tue, 20 May 2008 00:58:43 +0000 (10:58 +1000)]
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)

15 years agoUpdate tdb version number.
Jelmer Vernooij [Mon, 19 May 2008 23:52:11 +0000 (01:52 +0200)]
Update tdb version number.
(This used to be commit eae17ae8ecdcb83fdb756189a9d5609a192371a4)

15 years agoFix proto generation.
Jelmer Vernooij [Mon, 19 May 2008 23:02:05 +0000 (01:02 +0200)]
Fix proto generation.
(This used to be commit 7385d9641d49b94c83fd2c75e57c9623d21fcdb0)

15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Mon, 19 May 2008 22:27:08 +0000 (08:27 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 69bac908bec3216d2f17042aa05ab8d4b55b0918)

15 years agoDon't regenerate pam_errors.h any more.
Andrew Bartlett [Mon, 19 May 2008 22:06:50 +0000 (08:06 +1000)]
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)

15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Mon, 19 May 2008 22:03:35 +0000 (08:03 +1000)]
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)

15 years agoAdd __repr__ implementation for Tdb.
Jelmer Vernooij [Mon, 19 May 2008 21:36:33 +0000 (23:36 +0200)]
Add __repr__ implementation for Tdb.
(This used to be commit 205699ed663a3c6d27695dee25bf26978615b475)

15 years agoFix dependency.
Jelmer Vernooij [Mon, 19 May 2008 21:36:11 +0000 (23:36 +0200)]
Fix dependency.
(This used to be commit d8fe782dc200907e0364c623e187c51f4d44edb2)

15 years agoAdd __repr__ implementation for Ldb.
Jelmer Vernooij [Mon, 19 May 2008 21:12:13 +0000 (23:12 +0200)]
Add __repr__ implementation for Ldb.
(This used to be commit 5607aea07f66f09fd5b33842d07d2fbbf44d13e7)

15 years agoAdd __repr__ implementations for ldb.Message, ldb.MessageElement and ldb.Dn.
Jelmer Vernooij [Mon, 19 May 2008 21:07:04 +0000 (23:07 +0200)]
Add __repr__ implementations for ldb.Message, ldb.MessageElement and ldb.Dn.
(This used to be commit b9119c0f0f524d43ff09825dffb24a5e77a240f4)

15 years agoFix a memleak in irpc_remove_name
Volker Lendecke [Mon, 19 May 2008 13:53:09 +0000 (15:53 +0200)]
Fix a memleak in irpc_remove_name

First, even when length==0 tdb_fetch might return something. Second, for some
weird reason there might be less data than necessary for a single server id.
(This used to be commit 49b04ca7aadf264e500d83bc8d3cb5173a86184e)

15 years agobuild: only add enabled subsystems and modules to ALL_OBJS
Stefan Metzmacher [Mon, 19 May 2008 12:15:15 +0000 (14:15 +0200)]
build: only add enabled subsystems and modules to ALL_OBJS

metze
(This used to be commit cc07bd86e270c8016acd0f685d699e4a3e63cfb1)

15 years agoadded SMB2 proxying of rmdir
Andrew Tridgell [Mon, 19 May 2008 03:05:08 +0000 (13:05 +1000)]
added SMB2 proxying of rmdir
(This used to be commit 1e0c24b2760f2a632333b51710cd9581f0cee851)

15 years agoMerge commit 'origin/v4-0-test' into vfs_smb2
Andrew Tridgell [Mon, 19 May 2008 01:40:25 +0000 (11:40 +1000)]
Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit 733937e87a1adcc19492ea2bd138e705701901b6)

15 years agoadded mkdir to SMB2 proxy
Andrew Tridgell [Mon, 19 May 2008 01:39:16 +0000 (11:39 +1000)]
added mkdir to SMB2 proxy
(This used to be commit 1323aab11fbf346e19c4cef227d727ddfcaa7d60)

15 years agoRevert some absolute paths.
Jelmer Vernooij [Mon, 19 May 2008 00:19:32 +0000 (02:19 +0200)]
Revert some absolute paths.
(This used to be commit b4613e81351fa0477d0c76a19fb0474a79f8689f)

15 years agoMove IDL build script to rpc directory, make various bits and pieces easier to use...
Jelmer Vernooij [Mon, 19 May 2008 00:03:00 +0000 (02:03 +0200)]
Move IDL build script to rpc directory, make various bits and pieces easier to use externally.
(This used to be commit 8328ff76416df5a6e05461d3a19f510b76f2e902)

15 years agoFix a bunch of dependencies.
Jelmer Vernooij [Sun, 18 May 2008 21:40:23 +0000 (23:40 +0200)]
Fix a bunch of dependencies.
(This used to be commit a63f458462d207d215a6e4ef8e480b0c8daedf6a)

15 years agoFix a couple (well, little more than that..) of typos.
Jelmer Vernooij [Sun, 18 May 2008 21:02:47 +0000 (23:02 +0200)]
Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)

15 years agoCreate prototype headers from Makefile directory, without smb_build in the middle.
Jelmer Vernooij [Sun, 18 May 2008 20:30:08 +0000 (22:30 +0200)]
Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)

15 years agoMerge branch 'v4-0-test' of /home/jelmer/samba34.git/samba4 into v4-0-test
Jelmer Vernooij [Sun, 18 May 2008 19:10:41 +0000 (21:10 +0200)]
Merge branch 'v4-0-test' of /home/jelmer/samba34.git/samba4 into v4-0-test

Conflicts:

source/build/smb_build/makefile.pm
(This used to be commit 57b57b1ff9a2ddf087fc6cceaf6c9afb4f8f0135)

15 years agoTypo, formatting fixes.
Jelmer Vernooij [Sun, 18 May 2008 19:10:09 +0000 (21:10 +0200)]
Typo, formatting fixes.
(This used to be commit 5c961c0b41e0a41bd41705a103595af7405132a4)

15 years agoAvoid smb_build for prototype headers in some places.
Jelmer Vernooij [Sun, 18 May 2008 19:09:04 +0000 (21:09 +0200)]
Avoid smb_build for prototype headers in some places.
(This used to be commit 4876c4efbbafb4e0afa3554cd9f748ab591a2927)

15 years agoMerge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
Jelmer Vernooij [Sun, 18 May 2008 18:35:01 +0000 (20:35 +0200)]
Merge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
(This used to be commit 63fd551a159b3ad4e314f551d65b7d723bbe485a)

15 years agoUse variables for source directory in remaining subsystems.
Jelmer Vernooij [Sun, 18 May 2008 18:30:46 +0000 (20:30 +0200)]
Use variables for source directory in remaining subsystems.
(This used to be commit 6b6b2196a8a8d9e741f5c399185ded7a16938da0)

15 years agoUse variables for source directory in a couple more places.
Jelmer Vernooij [Sun, 18 May 2008 17:56:17 +0000 (19:56 +0200)]
Use variables for source directory in a couple more places.
(This used to be commit 28f4a8bc2c9b4158e74e1284ff9df068388c3b3d)

15 years agoUse variables for source directory in a couple more places.
Jelmer Vernooij [Sun, 18 May 2008 17:54:27 +0000 (19:54 +0200)]
Use variables for source directory in a couple more places.
(This used to be commit c41bd3005f5f0b9cfd3709fc9217b4a401d265b4)

15 years agoUse variables for source directory in a couple more places.
Jelmer Vernooij [Sun, 18 May 2008 17:46:09 +0000 (19:46 +0200)]
Use variables for source directory in a couple more places.
(This used to be commit 2860a7db5968c7007522cdb300eba390da929ab8)

15 years agoUse variables for source directory in a couple more places.
Jelmer Vernooij [Sun, 18 May 2008 17:41:33 +0000 (19:41 +0200)]
Use variables for source directory in a couple more places.
(This used to be commit 56bb2907c67d55967f54ce74b029f05067a187c5)

15 years agoMerge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
Jelmer Vernooij [Sun, 18 May 2008 17:37:58 +0000 (19:37 +0200)]
Merge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
(This used to be commit 3a83d4ebd41908aa0f88eec5b05156112ea0ca7b)

15 years agoUse variable for param src dir.
Jelmer Vernooij [Sun, 18 May 2008 17:37:24 +0000 (19:37 +0200)]
Use variable for param src dir.
(This used to be commit f97bc5735803a73181030e6d7db2862ebc1b7f4b)

15 years agoMerge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
Jelmer Vernooij [Sun, 18 May 2008 17:12:00 +0000 (19:12 +0200)]
Merge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
(This used to be commit 3cff5bc25ad894bef6ed65566d9d692968092760)

15 years agoBuild system doesn't do make variable expansion...
Jelmer Vernooij [Sun, 18 May 2008 17:11:47 +0000 (19:11 +0200)]
Build system doesn't do make variable expansion...
(This used to be commit 16a04d9af4cc33daafe32bc45a404959924bd33e)

15 years agoMerge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
Jelmer Vernooij [Sun, 18 May 2008 17:10:49 +0000 (19:10 +0200)]
Merge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
(This used to be commit 201da6d5d05ed624bd9f4bd535969077a3b8b3ba)

15 years agoUse src dir.
Jelmer Vernooij [Sun, 18 May 2008 17:10:37 +0000 (19:10 +0200)]
Use src dir.
(This used to be commit 63f2b66f0e1120a516d3dfcd03b38db2e4aaddd0)

15 years agoMerge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
Jelmer Vernooij [Sun, 18 May 2008 17:07:17 +0000 (19:07 +0200)]
Merge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
(This used to be commit ad58defe129d25ea2e8a598934800610189747e8)

15 years agoUse variables for source path in libnet/ and scripting/python.
Jelmer Vernooij [Sun, 18 May 2008 17:07:07 +0000 (19:07 +0200)]
Use variables for source path in libnet/ and scripting/python.
(This used to be commit fb10a81b9484642099ecbe896eabe00a4417bc42)

15 years agoMerge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
Jelmer Vernooij [Sun, 18 May 2008 16:55:38 +0000 (18:55 +0200)]
Merge branch 'v4-0-test' of /home/jelmer/samba4 into v4-0-test
(This used to be commit 84c9fbe8466e013e501eecf9b2e7981c1df8232c)

15 years agoMove templates to a separate file.
Jelmer Vernooij [Sun, 18 May 2008 16:55:14 +0000 (18:55 +0200)]
Move templates to a separate file.
(This used to be commit d9770b651f61a0b70d6afa4610fadc7f199e1d98)

15 years agoAvoid use of relative paths.
Jelmer Vernooij [Sun, 18 May 2008 16:52:33 +0000 (18:52 +0200)]
Avoid use of relative paths.
(This used to be commit 8a4f030261d15ea78280d51877711ceea815885a)

15 years agoSimplify argument handling.
Jelmer Vernooij [Sun, 18 May 2008 16:33:24 +0000 (18:33 +0200)]
Simplify argument handling.
(This used to be commit f305c443db8e48efa80eeda8f83073b475dc3fee)

15 years agoFix --output argument.
Jelmer Vernooij [Sun, 18 May 2008 16:33:05 +0000 (18:33 +0200)]
Fix --output argument.
(This used to be commit a38e473c9e382465ae30f3ca7ae12de500aec5f7)

15 years agoAllow specifying different input file to smb_build.
Jelmer Vernooij [Sun, 18 May 2008 16:08:37 +0000 (18:08 +0200)]
Allow specifying different input file to smb_build.
(This used to be commit c4bfc0b8daf2e288a278936b279bb4f7848d78e9)

15 years agoMove writing of data.mk file to m4 macro.
Jelmer Vernooij [Sun, 18 May 2008 15:55:50 +0000 (17:55 +0200)]
Move writing of data.mk file to m4 macro.
(This used to be commit 7fee112d2b86b423c397118f0333065825ea3518)

15 years agoMove writing autoconf vars into files into m4 macros.
Jelmer Vernooij [Sun, 18 May 2008 15:48:50 +0000 (17:48 +0200)]
Move writing autoconf vars into files into m4 macros.
(This used to be commit 3ce8a4bb5568bb798c40034e3fa6a613ad2bf43b)

15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
Jelmer Vernooij [Sun, 18 May 2008 15:35:16 +0000 (17:35 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit 16dbbf75c7fa0f877659654a20bcab73b707e627)

15 years agoEnsure we don't send a reply if we couldn't push the CLDAP blob
Andrew Bartlett [Sat, 17 May 2008 11:30:36 +0000 (21:30 +1000)]
Ensure we don't send a reply if we couldn't push the CLDAP blob

Andrew Bartlett
(This used to be commit a8ec36eba79f96940f314520f97d23181bc9cfc5)

15 years agoMerge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Andrew Bartlett [Sat, 17 May 2008 11:16:22 +0000 (21:16 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 60579269d1e0bebce5b595ef95d68fd4bf781cfd)

15 years agoHandle netbios domains in the CLDAP server too.
Andrew Bartlett [Sat, 17 May 2008 10:53:29 +0000 (20:53 +1000)]
Handle netbios domains in the CLDAP server too.

This commit also fixes a number of issues found by the NBT-DGRAM and
LDAP-CLDAP tests.

Andrew Bartlett
(This used to be commit 8f99a4b94e95f8bde0f80f92d4e57020c62cfaab)

15 years agoModify the LDAP-CLDAP test for better coverage.
Andrew Bartlett [Sat, 17 May 2008 10:52:23 +0000 (20:52 +1000)]
Modify the LDAP-CLDAP test for better coverage.

This fixes up some compiled in constants and checks a couple more NT
versions.

Andrew Bartlett
(This used to be commit ca1b3fe3add06dc22361d5a5fe7e63a6abb1697c)

15 years agoShow that the NTLOGON and NETLOGON mailslots are *very* similar.
Andrew Bartlett [Sat, 17 May 2008 03:24:29 +0000 (13:24 +1000)]
Show that the NTLOGON and NETLOGON mailslots are *very* similar.

Rework the mailslot infrustructure to cope, passing down the mailslot
name so that we can implement both in the same callback function.

Andrew Bartlett
(This used to be commit 89fdd77891529aa74bb920994b8b5959aae8ac2d)

15 years agoExplain that the sid must be absent on the NTLOGON mailslot.
Andrew Bartlett [Sat, 17 May 2008 02:44:35 +0000 (12:44 +1000)]
Explain that the sid must be absent on the NTLOGON mailslot.

Andrew Bartlett
(This used to be commit a7983387f7a624f6bf5c2fbfa41f849ac4471147)

15 years agoMake the IRPC GetDC request use SAM_LOGON packets.
Andrew Bartlett [Sat, 17 May 2008 02:43:42 +0000 (12:43 +1000)]
Make the IRPC GetDC request use SAM_LOGON packets.

This also moves the request to the new netlogon structures.

Andrew Bartlett
(This used to be commit 7ed4ba8d1a2ced013feafc1f0ca95595ac66bcbc)

15 years agoConvert the CLDAP server to use the new netlogon structures.
Andrew Bartlett [Sat, 17 May 2008 02:41:42 +0000 (12:41 +1000)]
Convert the CLDAP server to use the new netlogon structures.

This also makes the CLDAP server the place where we create the
NETLOGON SAMLOGON replies, regardless of protocol (NBT mailslots or
CLDAP).

Andrew Bartlett
(This used to be commit 8b00a9429470c9ad3646255c340e6a963bd226bd)

15 years agoTest the use of the domain SID on the NETLOGON mailslot
Andrew Bartlett [Sat, 17 May 2008 02:39:38 +0000 (12:39 +1000)]
Test the use of the domain SID on the NETLOGON mailslot

Interestingly, despite these packets being very similar, this fails on
NTLOGON - no reply is received.

Andrew Bartlett
(This used to be commit 25ab0ad0a0216ef18e0aaeec27c7833d8c68ca30)

15 years agoPut back the old netlogn parsing code - for the request only
Andrew Bartlett [Sat, 17 May 2008 02:38:58 +0000 (12:38 +1000)]
Put back the old netlogn parsing code - for the request only

This gives us seperate parsing functions for requests and replies.

Andrew Bartlett
(This used to be commit d2d3d15a8edd58cda7543feebdeb52178400615b)

15 years agosmbd: pass down lp_ctx to stream_new_connection_merge()
Stefan Metzmacher [Fri, 16 May 2008 22:01:05 +0000 (00:01 +0200)]
smbd: pass down lp_ctx to stream_new_connection_merge()

metze
(This used to be commit 91e9062265a68e3a1fe5e092503ec44ae5ea034e)

15 years agosmbd: add session_info to struct stream_connection
Stefan Metzmacher [Fri, 16 May 2008 22:02:28 +0000 (00:02 +0200)]
smbd: add session_info to struct stream_connection

NULL represents an anoymous connection, as that's
cheaper than always calling auth_anonymous_session_info(),
That means if the caller wants to use the transport layer
session_info he should call auth_anonymous_session_info()
to create the session info.

metze
(This used to be commit 3777d0307b346bcf363ab5ad783e802682034a9a)

15 years agolib/replace: move sys/sockio.h and sys/un.h checks into AC_LIBREPLACE_NETWORK_CHECKS
Stefan Metzmacher [Fri, 16 May 2008 10:46:10 +0000 (12:46 +0200)]
lib/replace: move sys/sockio.h and sys/un.h checks into AC_LIBREPLACE_NETWORK_CHECKS

metze
(This used to be commit 7f26a5425e706a97cc07c5139b3fea4fde9e4020)

15 years agolib/socket: remove unused configure checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET...
Stefan Metzmacher [Fri, 16 May 2008 10:30:49 +0000 (12:30 +0200)]
lib/socket: remove unused configure checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET and rely on libreplace

metze
(This used to be commit 5de605bb2ef88a1f3e61c64e557c7f069d0f6dad)

15 years agolib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET
Stefan Metzmacher [Fri, 16 May 2008 10:29:21 +0000 (12:29 +0200)]
lib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET

Moved from the samba specific locations

metze
(This used to be commit e674128ee2f11596f358ed46104c9d25eb2f754f)

15 years agolib/socket: remove unused configure check for HAVE_WORKING_AF_LOCAL
Stefan Metzmacher [Fri, 16 May 2008 10:13:11 +0000 (12:13 +0200)]
lib/socket: remove unused configure check for HAVE_WORKING_AF_LOCAL

metze
(This used to be commit 1c7905cfb4c77edeb24ac612a544e777cf49e184)

15 years agoInstall python modules by default.
Jelmer Vernooij [Fri, 16 May 2008 14:30:22 +0000 (16:30 +0200)]
Install python modules by default.
(This used to be commit 4c098e4c9f071592e134c979388891f5bf16452d)

15 years agoMake rpc-bench-schannel1 use two wks accounts if --option=torture:multijoin=true
Volker Lendecke [Fri, 16 May 2008 13:51:27 +0000 (15:51 +0200)]
Make rpc-bench-schannel1 use two wks accounts if --option=torture:multijoin=true
(This used to be commit fc3bc3c4a85b0e0ba853f3208a4e934a733cfdc4)

15 years agoFix two C++ warnings
Volker Lendecke [Fri, 16 May 2008 13:44:14 +0000 (15:44 +0200)]
Fix two C++ warnings
(This used to be commit f75f95931c15d57b3111db4dff589be06710aea7)

15 years agotorture: add RPC-BENCH-SCHANNEL1 test
Stefan Metzmacher [Tue, 13 May 2008 07:10:25 +0000 (09:10 +0200)]
torture: add RPC-BENCH-SCHANNEL1 test

This tests SamLogonEx() calls on multiple (smb) connections
in parallel. Sadly the smb connect needs to be serialized
because of the reset on zero VC style behavior of windows.

Call it like this:
bin/smbtorture -U administrator%test ncacn_np:w2k3-101 -W W2K3 RPC-BENCH-SCHANNEL
or
bin/smbtorture -U administrator%test ncacn_np:w2k3-101 -W W2K3 -k no RPC-BENCH-SCHANNEL \
--option="torture:nprocs=4" --option="torture:timelimit=1" \
--extra-user SUB1\\sub1user%testsecret --extra-user SUB1\\sub1user%testsecret
or ...

Later we should add more tests, maybe using only one smb connection
and different netlogon pipes.

We should also test using the DCERPC_PFC_FLAG_CONC_MPX flag and just one
rpc connection.

DCERPC_PFC_FLAG_CONC_MPX /* supports concurrent multiplexing of a single connection.*/

metze
(This used to be commit 901426c24c74390f7b1c78bb7a07c020b6ef73eb)

15 years agoFix an uninitialized variable warning
Volker Lendecke [Thu, 15 May 2008 16:09:56 +0000 (18:09 +0200)]
Fix an uninitialized variable warning
(This used to be commit b3d024676426000380ad86a2a4b83e7b21478978)

15 years agoIn torture_leave_domain, say what account was deleted
Volker Lendecke [Fri, 16 May 2008 13:38:16 +0000 (15:38 +0200)]
In torture_leave_domain, say what account was deleted
(This used to be commit a9a0f24f7299c1480d8047d97c703aca8e94c79f)

15 years agobuild: readd ALL_OBJS which is needed for automatic_dependencies
Stefan Metzmacher [Fri, 16 May 2008 12:40:56 +0000 (14:40 +0200)]
build: readd ALL_OBJS which is needed for automatic_dependencies

metze
(This used to be commit 5ca4f76703485d68b1aa6b38beaf208555c0cbfe)

15 years agoThe following patch calls the op_bind operation for an interface which context is...
Julien Kerihuel [Thu, 15 May 2008 11:55:23 +0000 (13:55 +0200)]
The following patch calls the op_bind operation for an interface which context is altered by dcerpc alter_context requests. It prevents dcerpc_server from returning errors (nca_s_fault_access_denied, then nca_s_fault_context_mismatch in further client requests) and keeps the connection alive.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 718f9ce6889346c92894e868f0678fbe404a43ab)

15 years agoThis patch adds remaining padding bytes to the dcerpc_fault IDL structure and adds...
Julien Kerihuel [Thu, 15 May 2008 11:54:07 +0000 (13:54 +0200)]
This patch adds remaining padding bytes to the dcerpc_fault IDL structure and adds a const 4 bytes blob to pkt.u.fault.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 652b8c5f156b357e231057a5a0fbded88f4f9c5f)

15 years agoprivate -> private_data for struct smb2_request
Andrew Tridgell [Fri, 16 May 2008 05:03:58 +0000 (15:03 +1000)]
private -> private_data for struct smb2_request
(This used to be commit 67290e0ad69df2f2fe651249c6550b8e32dd641b)

15 years agobuild the smb2 composite calls
Andrew Tridgell [Fri, 16 May 2008 05:03:24 +0000 (15:03 +1000)]
build the smb2 composite calls
(This used to be commit ac10e3ad15dd17b96424987d1a2b7a0e4dc67cd0)

15 years agodeclare composite_wait_free()
Andrew Tridgell [Fri, 16 May 2008 05:03:12 +0000 (15:03 +1000)]
declare composite_wait_free()
(This used to be commit 5b6f80aba30fc8ade26f73b0a1336c22e40b66a9)

15 years ago- added a composite_wait_free() call
Andrew Tridgell [Fri, 16 May 2008 05:02:58 +0000 (15:02 +1000)]
- added a composite_wait_free() call

- allow composite_error() to take NT_STATUS_OK
(This used to be commit 5240e1e25655af1f9b92da99e85d845bf30c4e9e)

15 years agostarted adding SMB2 composite functions that emulate common SMB calls
Andrew Tridgell [Fri, 16 May 2008 05:02:14 +0000 (15:02 +1000)]
started adding SMB2 composite functions that emulate common SMB calls
(such as unlink)
(This used to be commit 433038f3fea60087bdca07dcc856d0be4a4753f3)

15 years agoadded SMB2 proxying for unlink
Andrew Tridgell [Fri, 16 May 2008 05:01:31 +0000 (15:01 +1000)]
added SMB2 proxying for unlink
(This used to be commit a5459bd88092863668db199953458fe97162240c)