Jelmer Vernooij [Wed, 21 May 2008 21:59:34 +0000 (23:59 +0200)]
Move more modules inside of the samba package.
Jelmer Vernooij [Wed, 21 May 2008 19:50:56 +0000 (21:50 +0200)]
Move some python files into the samba package.
Jelmer Vernooij [Wed, 21 May 2008 19:32:53 +0000 (21:32 +0200)]
Move CFLAGS overrides for SWIG modules to Makefile.
Jelmer Vernooij [Wed, 21 May 2008 19:24:48 +0000 (21:24 +0200)]
Remove support for .py files from smb_build - deal with it only in the makefiles.
Jelmer Vernooij [Wed, 21 May 2008 18:46:16 +0000 (20:46 +0200)]
Refuse to install autogenerated proto header files.
Jelmer Vernooij [Wed, 21 May 2008 18:44:36 +0000 (20:44 +0200)]
Ignore generated netlogon headers.
Jelmer Vernooij [Wed, 21 May 2008 13:45:04 +0000 (15:45 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into nosmbpython
Jelmer Vernooij [Wed, 21 May 2008 13:40:55 +0000 (15:40 +0200)]
Fix typo.
Jelmer Vernooij [Wed, 21 May 2008 13:39:00 +0000 (15:39 +0200)]
Fix reference to removed smbpython.
Andrew Tridgell [Wed, 21 May 2008 12:51:21 +0000 (22:51 +1000)]
fixed SMB2 flush call, and added flush to gentest_smb2
Jelmer Vernooij [Wed, 21 May 2008 12:29:05 +0000 (14:29 +0200)]
Regenerate with newer version of swig.
Jelmer Vernooij [Wed, 21 May 2008 12:28:10 +0000 (14:28 +0200)]
Use gnu make syntax for SWIG implicit rule since it allows multiple output files.
Andrew Tridgell [Wed, 21 May 2008 12:12:20 +0000 (22:12 +1000)]
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
Jelmer Vernooij [Wed, 21 May 2008 10:38:47 +0000 (12:38 +0200)]
Fix dependencies for ldb instancetype module.
Jelmer Vernooij [Wed, 21 May 2008 10:22:05 +0000 (12:22 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into nosmbpython
Jelmer Vernooij [Wed, 21 May 2008 10:14:47 +0000 (12:14 +0200)]
Fix installed symlinks (cp was trying to be smart).
Jelmer Vernooij [Wed, 21 May 2008 10:02:02 +0000 (12:02 +0200)]
Allow dots in .mk file section headers, fix docstring.
Andrew Bartlett [Wed, 21 May 2008 04:49:47 +0000 (14:49 +1000)]
Correct an assertion in the testsuite.
Andrew Bartlett
Andrew Bartlett [Wed, 21 May 2008 04:34:43 +0000 (14:34 +1000)]
Merge branch 'v4-0-local' of git://git.id10ts.net/samba into 4-0-local
Andrew Bartlett [Wed, 21 May 2008 04:29:20 +0000 (14:29 +1000)]
Fix creation of sockaddr in netlogon datagram generator.
The previous code sent uninitialised data, and was the wrong length.
Andrew Bartlett
Andrew Bartlett [Wed, 21 May 2008 04:28:50 +0000 (14:28 +1000)]
Include flags.h into samdb.h
These flags are too useful just to hide away...
Andrew Bartlett
Andrew Bartlett [Wed, 21 May 2008 04:28:17 +0000 (14:28 +1000)]
Extend the NBT-DGRAM torture test again.
Andrew Bartlett
Andrew Bartlett [Wed, 21 May 2008 04:26:38 +0000 (14:26 +1000)]
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
Andrew Bartlett [Wed, 21 May 2008 02:37:36 +0000 (12:37 +1000)]
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
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
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
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
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.
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
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.
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
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
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
Andrew Tridgell [Tue, 20 May 2008 05:16:53 +0000 (15:16 +1000)]
added read and write handlers. Fixed --analyse
Andrew Bartlett [Tue, 20 May 2008 04:52:57 +0000 (14:52 +1000)]
Fix number of arguments to IRPC getdc callback.
Andrew Bartlett
Andrew Tridgell [Tue, 20 May 2008 03:37:51 +0000 (13:37 +1000)]
added smb2_util_setatr
Andrew Tridgell [Tue, 20 May 2008 03:37:40 +0000 (13:37 +1000)]
specify which server failed to deltree
Andrew Tridgell [Tue, 20 May 2008 03:37:27 +0000 (13:37 +1000)]
added SMB2 setpathinfo composite wrapper
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.
Andrew Tridgell [Tue, 20 May 2008 01:59:18 +0000 (11:59 +1000)]
moved these util functions into libcli
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
Andrew Tridgell [Tue, 20 May 2008 01:58:04 +0000 (11:58 +1000)]
added some SMB2 utility functions
Andrew Tridgell [Tue, 20 May 2008 01:57:43 +0000 (11:57 +1000)]
remember the server time fields on negotiate. Needed for gentest
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
Andrew Tridgell [Tue, 20 May 2008 01:37:23 +0000 (11:37 +1000)]
Merge commit 'origin/v4-0-test' into vfs_smb2
Andrew Bartlett [Tue, 20 May 2008 01:24:38 +0000 (11:24 +1000)]
Fix prototype generation in new syntax for netlogon.c
Andrew Bartlett
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
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
Jelmer Vernooij [Mon, 19 May 2008 23:52:11 +0000 (01:52 +0200)]
Update tdb version number.
Jelmer Vernooij [Mon, 19 May 2008 23:02:05 +0000 (01:02 +0200)]
Fix proto generation.
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
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
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
Jelmer Vernooij [Mon, 19 May 2008 21:36:33 +0000 (23:36 +0200)]
Add __repr__ implementation for Tdb.
Jelmer Vernooij [Mon, 19 May 2008 21:36:11 +0000 (23:36 +0200)]
Fix dependency.
Jelmer Vernooij [Mon, 19 May 2008 21:12:13 +0000 (23:12 +0200)]
Add __repr__ implementation for Ldb.
Jelmer Vernooij [Mon, 19 May 2008 21:07:04 +0000 (23:07 +0200)]
Add __repr__ implementations for ldb.Message, ldb.MessageElement and ldb.Dn.
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.
Stefan Metzmacher [Mon, 19 May 2008 12:15:15 +0000 (14:15 +0200)]
build: only add enabled subsystems and modules to ALL_OBJS
metze
Andrew Tridgell [Mon, 19 May 2008 03:05:08 +0000 (13:05 +1000)]
added SMB2 proxying of rmdir
Andrew Tridgell [Mon, 19 May 2008 01:40:25 +0000 (11:40 +1000)]
Merge commit 'origin/v4-0-test' into vfs_smb2
Andrew Tridgell [Mon, 19 May 2008 01:39:16 +0000 (11:39 +1000)]
added mkdir to SMB2 proxy
Jelmer Vernooij [Mon, 19 May 2008 00:19:32 +0000 (02:19 +0200)]
Revert some absolute paths.
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.
Jelmer Vernooij [Sun, 18 May 2008 21:40:23 +0000 (23:40 +0200)]
Fix a bunch of dependencies.
Jelmer Vernooij [Sun, 18 May 2008 21:02:47 +0000 (23:02 +0200)]
Fix a couple (well, little more than that..) of typos.
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.
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
Jelmer Vernooij [Sun, 18 May 2008 19:10:09 +0000 (21:10 +0200)]
Typo, formatting fixes.
Jelmer Vernooij [Sun, 18 May 2008 19:09:04 +0000 (21:09 +0200)]
Avoid smb_build for prototype headers in some places.
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
Jelmer Vernooij [Sun, 18 May 2008 18:30:46 +0000 (20:30 +0200)]
Use variables for source directory in remaining subsystems.
Jelmer Vernooij [Sun, 18 May 2008 17:56:17 +0000 (19:56 +0200)]
Use 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.
Jelmer Vernooij [Sun, 18 May 2008 17:46:09 +0000 (19:46 +0200)]
Use 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.
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
Jelmer Vernooij [Sun, 18 May 2008 17:37:24 +0000 (19:37 +0200)]
Use variable for param src dir.
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
Jelmer Vernooij [Sun, 18 May 2008 17:11:47 +0000 (19:11 +0200)]
Build system doesn't do make variable expansion...
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
Jelmer Vernooij [Sun, 18 May 2008 17:10:37 +0000 (19:10 +0200)]
Use src dir.
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
Jelmer Vernooij [Sun, 18 May 2008 17:07:07 +0000 (19:07 +0200)]
Use variables for source path in libnet/ and scripting/python.
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
Jelmer Vernooij [Sun, 18 May 2008 16:55:14 +0000 (18:55 +0200)]
Move templates to a separate file.
Jelmer Vernooij [Sun, 18 May 2008 16:52:33 +0000 (18:52 +0200)]
Avoid use of relative paths.
Jelmer Vernooij [Sun, 18 May 2008 16:33:24 +0000 (18:33 +0200)]
Simplify argument handling.
Jelmer Vernooij [Sun, 18 May 2008 16:33:05 +0000 (18:33 +0200)]
Fix --output argument.
Jelmer Vernooij [Sun, 18 May 2008 16:08:37 +0000 (18:08 +0200)]
Allow specifying different input file to smb_build.
Jelmer Vernooij [Sun, 18 May 2008 15:55:50 +0000 (17:55 +0200)]
Move writing of data.mk file to m4 macro.
Jelmer Vernooij [Sun, 18 May 2008 15:48:50 +0000 (17:48 +0200)]
Move writing autoconf vars into files into m4 macros.
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
Andrew Kroeger [Sun, 18 May 2008 04:24:48 +0000 (23:24 -0500)]
provision: Create instructions for enabling DNS GSS-TSIG updates.
Added code to the python provisioning to create the named.conf file that was
previously generated by the EJS provisioning.
Updated the named.conf template to provide the additional details necessary
to get things working.
Andrew Kroeger [Sun, 18 May 2008 04:20:35 +0000 (23:20 -0500)]
provision: Allow DNS GSS-TSIG updates to work.
This change ensures the KVNO of the principal in secrets.ldb (which is also
exported to the dns.keytab) matches the KVNO associated with the "dns" user.
Without explicitly setting msDS-KeyVersionNumber, the KVNO exported into the
dns.keytab was 0.
KVNO needs to be > 0, as the client libs (at least MIT libs on Fedora)
consider KVNO == 0 as a sign to ignore that particular key.
Andrew Kroeger [Thu, 8 May 2008 17:57:29 +0000 (12:57 -0500)]
howto: Update git clone command to something that actually works.
Made the command consistent with the one presented in the Wiki HOWTO.
Thanks to Matthias Wallnöfer <mwallnoefer@yahoo.de> for pointing this one out.
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
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
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
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