Stefan Metzmacher [Sat, 8 May 2010 11:55:09 +0000 (13:55 +0200)]
s4:blackbox password tests - more complex passwords
Matthias Dieter Wallnöfer [Wed, 30 Sep 2009 18:59:42 +0000 (20:59 +0200)]
s4:selftest - change test passwords
The passwords need to be more complex to meet the new complexity criteria.
Stefan Metzmacher [Sat, 8 May 2010 11:55:25 +0000 (13:55 +0200)]
s4:selftest: add --socket-wrapper[-keep]-pcap options to "waf test"
metze
Günther Deschner [Mon, 10 May 2010 09:22:32 +0000 (11:22 +0200)]
testprogs: update Makefile.mingw (although mingw current cant build it).
Guenther
Günther Deschner [Mon, 10 May 2010 09:15:59 +0000 (11:15 +0200)]
testprogs: update README to reflect the util rename.
Guenther
Günther Deschner [Mon, 10 May 2010 09:06:03 +0000 (11:06 +0200)]
testprogs: add readme for testspoolss.exe.
Patch from Kurt Pfeifle <Kurt.Pfeifle@ricoh.de>.
Guenther
Günther Deschner [Mon, 10 May 2010 09:03:49 +0000 (11:03 +0200)]
testprogs: add vcproj and sln files for testspoolss.exe.
Patch from Kurt Pfeifle <Kurt.Pfeifle@ricoh.de>.
Guenther
Günther Deschner [Mon, 10 May 2010 09:01:54 +0000 (11:01 +0200)]
testprogs: rename spoolss.exe to testspoolss.exe.
Patch from Kurt Pfeifle <Kurt.Pfeifle@ricoh.de>.
Guenther
Günther Deschner [Sat, 8 May 2010 00:16:37 +0000 (02:16 +0200)]
s3-net: Fix Bug #7417. 'net rpc user password' can set the wrong password.
Guenther
Andreas Schneider [Mon, 10 May 2010 08:27:42 +0000 (10:27 +0200)]
tevent: Added a description for tevent queue.
Andreas Schneider [Mon, 10 May 2010 08:24:53 +0000 (10:24 +0200)]
tevent: Added an introduction to the tevent_queue tutorial.
Thanks Volker.
Andreas Schneider [Mon, 10 May 2010 07:56:18 +0000 (09:56 +0200)]
tevent: Fixed a doxygen problem with PRINTF_ATTRIBUTE.
Andreas Schneider [Mon, 10 May 2010 07:55:44 +0000 (09:55 +0200)]
talloc: Fixed a doxygen problem with PRINTF_ATTRIBUTE.
Kai Blin [Mon, 10 May 2010 07:58:57 +0000 (09:58 +0200)]
build: Update the waf build to fix python header checks
Matthias Dieter Wallnöfer [Mon, 10 May 2010 07:21:17 +0000 (09:21 +0200)]
s3:provision_basedn_modify.ldif - add "msDS-NcType" attribute and fix comments
Günther Deschner [Sun, 9 May 2010 21:47:56 +0000 (23:47 +0200)]
s3-proto: add missing protoype for dcerpc_fault_to_nt_status().
Guenther
Günther Deschner [Fri, 19 Mar 2010 11:01:54 +0000 (12:01 +0100)]
s3-lanman: use srvsvc for api_RNetServerGetInfo().
Following MS-RAP 3.2.5.3 NetServerGetInfo Command.
Guenther
Simo Sorce [Fri, 7 May 2010 13:26:41 +0000 (09:26 -0400)]
s3-spoolss: Make spoolss_Time_to_time_t public.
Signed-off-by: Günther Deschner <gd@samba.org>
Matthias Dieter Wallnöfer [Thu, 6 May 2010 10:17:08 +0000 (12:17 +0200)]
s4:samldb LDB module - make "samldb_member_check" synchronous again
Matthias Dieter Wallnöfer [Thu, 6 May 2010 09:55:11 +0000 (11:55 +0200)]
s4:samldb LDB module - make "samldb_prim_group_users_check" synchronous again
Matthias Dieter Wallnöfer [Thu, 6 May 2010 09:35:46 +0000 (11:35 +0200)]
s4:samldb LDB module - update the copyright notice
Matthias Dieter Wallnöfer [Sun, 9 May 2010 09:45:24 +0000 (11:45 +0200)]
s4:blackbox/test_kinit.sh - Test the new "net user add <user> [<password>]" syntax
Matthias Dieter Wallnöfer [Sun, 9 May 2010 09:24:10 +0000 (11:24 +0200)]
s4:net utility - make outprinted description comments more consistent
I've added a [server connection needed] when commands won't work on the local
SamDB.
Matthias Dieter Wallnöfer [Sun, 9 May 2010 08:57:03 +0000 (10:57 +0200)]
s4:net utility - remove unixname parameter of samdb.newuser
We don't handle the id mapping stuff manually anymore.
Matthias Dieter Wallnöfer [Sun, 9 May 2010 08:54:19 +0000 (10:54 +0200)]
s4:samdb python bindings - remove idmap creation stuff from this call
The id mapping should now be handled automatically by the s4 daemon.
Matthias Dieter Wallnöfer [Fri, 7 May 2010 22:48:33 +0000 (00:48 +0200)]
s4:net utility - add an optional password attribute to "net user add"
To make it behave similar to "net newuser".
Andrew Bartlett [Fri, 7 May 2010 12:43:36 +0000 (22:43 +1000)]
s4:dsdb Provide an intelegent fallback if not CN=Subnets is found
We may as well fall back rather than return NULL (which callers don't
do useful things with).
Andrew Bartlett
Andrew Bartlett [Fri, 7 May 2010 11:09:40 +0000 (21:09 +1000)]
buildtools: Add 'make testenv' to Samba4 make targets
I'm still too addicted to this as my standard debugging environment, and while I can learn the new command, this helps the muscle-memory.
Andrew Bartlett
Stefan Metzmacher [Fri, 7 May 2010 22:59:12 +0000 (00:59 +0200)]
dsdb/password_hash: remove usage of msDs-KeyVersionNumber
metze
Andrew Bartlett [Fri, 7 May 2010 11:56:15 +0000 (21:56 +1000)]
s4:dsdb Use replPropertyMetaData as the basis for msDS-KeyVersionNumber
This means that the existing kvno will no longer be valid, all
unix-based domain members may need to be rejoined, and
upgradeprovision run to update the local kvno in
secrets.ldb/secrets.keytab.
This is required to match the algorithm used by Windows DCs, which we
may be replicating with. We also need to find a way to generate a
reasonable kvno with the OpenLDAP backend.
Andrew Bartlett
Matthias Dieter Wallnöfer [Fri, 7 May 2010 21:51:06 +0000 (23:51 +0200)]
librpc:dcerpc_error.c - fix a warning
Günther Deschner [Sat, 8 May 2010 22:42:54 +0000 (00:42 +0200)]
s3-libsmb: fix argument order for tevent_req_default_print in cli_pull_print().
Andreas, please check.
Guenther
Günther Deschner [Fri, 7 May 2010 20:54:08 +0000 (22:54 +0200)]
pidl: add NDR_PRINT_DEBUG output to generated s3 server dispatch tables.
This dramatically helps tracking and debugging usage of the
rpc_pipe_open_internal users.
Guenther
Volker Lendecke [Sat, 8 May 2010 20:03:23 +0000 (22:03 +0200)]
s3: Fix the build
Günther Deschner [Fri, 7 May 2010 13:40:49 +0000 (15:40 +0200)]
s4-smbtorture: add smbcli_rap_netuserpasswordset2().
Guenther
Günther Deschner [Thu, 6 May 2010 16:08:41 +0000 (18:08 +0200)]
rap: add rap_NetUserPasswordSet2() to IDL.
Guenther
Günther Deschner [Thu, 6 May 2010 15:49:36 +0000 (17:49 +0200)]
s3: move BASE_RID to main includes.h (in preparation to separate passdb).
Guenther
Günther Deschner [Thu, 6 May 2010 15:17:37 +0000 (17:17 +0200)]
s3-passdb: moving account_pol.c into passdb.
Guenther
Jelmer Vernooij [Fri, 7 May 2010 16:30:46 +0000 (18:30 +0200)]
s3-merged: Make sure bin/ exists when copying in bin/smbtorture4.
Jelmer Vernooij [Thu, 6 May 2010 13:31:48 +0000 (15:31 +0200)]
s3-merged: Use newly added waf reconfigure subcommand.
Jelmer Vernooij [Thu, 6 May 2010 12:08:49 +0000 (14:08 +0200)]
Reintroduce merged build, using waf to build smbtorture4.
Jelmer Vernooij [Thu, 6 May 2010 10:00:01 +0000 (12:00 +0200)]
Revert "Revert "s3-build: Remove --enable-merged support.""
This reverts commit
8f8e7c788a12d1e0bda9183ed765cc1048e105f7.
Jelmer Vernooij [Thu, 6 May 2010 09:49:10 +0000 (11:49 +0200)]
samba3: Generate C files from IDL in source3/librpc/gen_ndr rather than
librpc/gen_ndr.
This is done to make it possible to run waf in the source4/ tree at
the same time, since waf has problems with files that were generated by
something else.
Jeremy Allison [Fri, 7 May 2010 14:25:13 +0000 (07:25 -0700)]
Only MULTIPLE-UNLOCK test left to fix !
Jeremy.
Jeremy Allison [Fri, 7 May 2010 13:54:16 +0000 (06:54 -0700)]
When tearing down the connection make sure we close all files before
freeing the global context, as we close access to the locking db
before freeing the global context.
Jeremy.
Jeremy Allison [Fri, 7 May 2010 13:20:50 +0000 (06:20 -0700)]
This patch looks bigger than it is. It does 2 things. 1). Renames smbpid -> smblctx in our locking code. 2). Widens smblctx to 64-bits internally. Preparing to use the SMB2 handle as the locking context.
Jeremy.
Andrew Tridgell [Fri, 7 May 2010 11:47:37 +0000 (13:47 +0200)]
s4-devel: a very useful script when dealing with library/linking issues
I use this all the time, so I thought I'd put it in the tree for
others
Andrew Tridgell [Fri, 7 May 2010 09:41:50 +0000 (11:41 +0200)]
build: fixed pc file variable substitution
We should not substitute for the first use of each variable
declaration in the pkgconfig file
Björn Jacke [Fri, 7 May 2010 11:45:00 +0000 (13:45 +0200)]
idl: get the logic of the prevous commit right
Björn Jacke [Fri, 7 May 2010 11:38:00 +0000 (13:38 +0200)]
idl: fix Unix builds by replacing bashism
test -nt is not portable - tridge, please check!
Björn Jacke [Fri, 7 May 2010 10:53:53 +0000 (12:53 +0200)]
s3:configure: search fdatasync also in librt
Sun^W Oracle Solaris has it there ...
Björn Jacke [Fri, 7 May 2010 09:56:38 +0000 (11:56 +0200)]
s3:configure: use correct SONAMEFLAG on Solaris depending on which linker is being used
Jeremy Allison [Fri, 7 May 2010 08:20:26 +0000 (01:20 -0700)]
Make us pass all SMB2 lock tests except MULTIPLE-UNLOCK and CONTEXT. Them next :-).
Jeremy.
Jeremy Allison [Fri, 7 May 2010 07:33:59 +0000 (00:33 -0700)]
Fix crash in cancel-tdis lock test. Correctly shut down connection.
Jeremy.
Andrew Tridgell [Fri, 7 May 2010 07:00:53 +0000 (09:00 +0200)]
build: treat a blank --build or --host as not a cross-compile
This matches autoconf behaviour
Jeremy Allison [Thu, 6 May 2010 22:39:21 +0000 (15:39 -0700)]
Fix cancel by close lock test.
Jeremy.
Andreas Schneider [Thu, 6 May 2010 15:50:26 +0000 (17:50 +0200)]
talloc: Documented the missing string functions.
Jeremy Allison [Thu, 6 May 2010 16:07:49 +0000 (09:07 -0700)]
Fix SMB2 lock tests up to cancel-by-close.
Jeremy.
Jeremy Allison [Thu, 6 May 2010 15:22:13 +0000 (08:22 -0700)]
Fix more SMB2 locking. We still crash but this won't last :-).
Jeremy.
Andrew Tridgell [Thu, 6 May 2010 13:23:07 +0000 (15:23 +0200)]
s4-devel: auto-delete any leftover IPs
remove IP from a previous vampire_ad.sh run
Andrew Tridgell [Thu, 6 May 2010 13:22:11 +0000 (15:22 +0200)]
s4-devel: a useful script for giving DRS replication demos
Andrew Tridgell [Thu, 6 May 2010 12:51:28 +0000 (14:51 +0200)]
build: added a reconfigure target
this is meant to be used by the s3 build, to allow jelmers work on
smbtorture4 in s3 to avoid re-running configure unless its needed
Günther Deschner [Tue, 27 Apr 2010 23:38:08 +0000 (01:38 +0200)]
s3-spoolss: make several notify functions static.
Guenther
Günther Deschner [Thu, 6 May 2010 09:42:52 +0000 (11:42 +0200)]
s3-eventlog: move all eventlog headers to lib/eventlog and only include where required.
Guenther
Björn Jacke [Thu, 6 May 2010 10:26:43 +0000 (12:26 +0200)]
s3: fix the merged build - it required $LD
Thanks to Jelmer for pointing that out!
Jelmer Vernooij [Thu, 6 May 2010 08:41:43 +0000 (10:41 +0200)]
Remove the copy of ldb from Samba 3.
There were two utility functions that other parts of Samba 3
still relied on; they have been moved to lib/ldb_compat.[ch].
Günther Deschner [Thu, 6 May 2010 08:25:47 +0000 (10:25 +0200)]
s3-build: fix the build of vfs_notify_fam.
Guenther
Jeremy Allison [Wed, 5 May 2010 22:57:57 +0000 (15:57 -0700)]
Move to MS-FSA algorithm when checking for invalid lock range.
Satisfies SMB and SMB2.
Jeremy.
Günther Deschner [Tue, 4 May 2010 23:39:16 +0000 (01:39 +0200)]
s3: only include gen_ndr headers where needed.
This shrinks include/includes.h.gch by the size of 7 MB and reduces build time
as follows:
ccache build w/o patch
real 4m21.529s
ccache build with patch
real 3m6.402s
pch build w/o patch
real 4m26.318s
pch build with patch
real 3m6.932s
Guenther
Jeremy Allison [Wed, 5 May 2010 21:54:31 +0000 (14:54 -0700)]
Get closer to passing SMB2 lock test. Still crashes but we get further.
More work to follow later.
Jeremy.
Andrew Tridgell [Wed, 5 May 2010 14:27:52 +0000 (16:27 +0200)]
s4-ldb: check for ldap_initialize
HPUX 11.0 has a ldap library that doesn't have ldap_initialize
Björn Jacke [Wed, 5 May 2010 18:17:39 +0000 (20:17 +0200)]
s3:configure: not simply check for "ld" but for the linker used by $CC
this hopefully fixes Solaris' gcc build which uses the system ld by default.
All in all we should clean up most of the compiler and linker flags depending
on the actual compilers and linkers we use. Only some tweaks are OS-specific.
A cleanup in this area should be done along with the move to a new build
system (whensoever that will be ...).
Jeremy Allison [Wed, 5 May 2010 16:50:48 +0000 (09:50 -0700)]
Return correct error on read request on directory.
Jeremy.
Jeremy Allison [Wed, 5 May 2010 16:47:49 +0000 (09:47 -0700)]
Get in_minimum and EOF errors right.
Jeremy.
Jeremy Allison [Wed, 5 May 2010 16:42:45 +0000 (09:42 -0700)]
Client ignoring max write is a warning, not an error.
Jeremy.
Jeremy Allison [Wed, 5 May 2010 16:39:31 +0000 (09:39 -0700)]
Start to pass the SMB2 read torture tests.
Jeremy.
Günther Deschner [Wed, 5 May 2010 13:39:47 +0000 (15:39 +0200)]
s3-lanman: use srvsvc for api_RNetShareAdd().
Guenther
Günther Deschner [Wed, 5 May 2010 16:23:45 +0000 (18:23 +0200)]
s3-spoolss: remove unused winreg_enumval_to_blob().
Guenther
Andreas Schneider [Fri, 30 Apr 2010 08:01:10 +0000 (10:01 +0200)]
s3-spoolss: Create default DsSpooler values.
Signed-off-by: Günther Deschner <gd@samba.org>
Andreas Schneider [Tue, 4 May 2010 10:24:00 +0000 (12:24 +0200)]
s3-spoolss: Fixed the DeviceMode handling in winreg.
Signed-off-by: Günther Deschner <gd@samba.org>
Andreas Schneider [Tue, 4 May 2010 09:44:12 +0000 (11:44 +0200)]
s3-spoolss: Added winreg security descriptor functions.
Signed-off-by: Günther Deschner <gd@samba.org>
Andreas Schneider [Tue, 4 May 2010 10:07:26 +0000 (12:07 +0200)]
s3-spoolss: Migrated winreg to spoolss_create_default_secdesc.
Signed-off-by: Günther Deschner <gd@samba.org>
Günther Deschner [Mon, 26 Apr 2010 19:02:12 +0000 (21:02 +0200)]
s3-spoolss: make sure to return success in winreg_get_driver_list() for a
non-existing architecture / version combination.
Guenther
Günther Deschner [Mon, 26 Apr 2010 19:00:45 +0000 (21:00 +0200)]
s3-spoolss: talloc_steal the returned driver_list in winreg_get_driver_list().
Otherwise the function would return a pointer to a freed list.
Guenther
Simo Sorce [Tue, 27 Apr 2010 15:52:26 +0000 (11:52 -0400)]
s3-spoolss: Fixed winreg_printer_query_XXX.
A cast to an incorrectly sized pointer was breaking
on 64bit architectures where size_t is 64bit.
Signed-off-by: Günther Deschner <gd@samba.org>
Andreas Schneider [Tue, 4 May 2010 09:43:27 +0000 (11:43 +0200)]
s3-spoolss: Added a winreg_printer_query_binary function.
Signed-off-by: Günther Deschner <gd@samba.org>
Andreas Schneider [Tue, 4 May 2010 10:07:10 +0000 (12:07 +0200)]
s3-spoolss: Added a generic spoolss_create_default_secdesc function.
Signed-off-by: Günther Deschner <gd@samba.org>
Andreas Schneider [Wed, 5 May 2010 15:44:22 +0000 (17:44 +0200)]
s3-spoolss: Added a function to create a default spoolss_DeviceMode.
Signed-off-by: Günther Deschner <gd@samba.org>
Volker Lendecke [Wed, 5 May 2010 15:44:00 +0000 (17:44 +0200)]
s3: Fix bug 5972 -- remove -L testparm parameter
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> to point out that this does
not work and to agree it's not worth fixing :-)
Andreas Schneider [Wed, 28 Apr 2010 09:26:08 +0000 (11:26 +0200)]
s3-spoolss: Fixed memory error in winreg_get_driver.
The strings in the structure need to be initialized with an empty
string.
Signed-off-by: Günther Deschner <gd@samba.org>
Andreas Schneider [Tue, 4 May 2010 09:37:42 +0000 (11:37 +0200)]
s3-spoolss: Added a sharename arg to winreg_update_printer.
Signed-off-by: Günther Deschner <gd@samba.org>
Andreas Schneider [Mon, 26 Apr 2010 11:36:19 +0000 (13:36 +0200)]
s3-spoolss: Added missing servername option to winreg_{create,get}_printer.
This is needed to be able to pass the correct servername from
Printer_entry.
Signed-off-by: Günther Deschner <gd@samba.org>
Andreas Schneider [Fri, 23 Apr 2010 19:37:13 +0000 (21:37 +0200)]
s3-spoolss: Added missing Printer Driver in winreg_{update,get}_printer.
Signed-off-by: Günther Deschner <gd@samba.org>
Günther Deschner [Wed, 5 May 2010 15:17:12 +0000 (17:17 +0200)]
s3-net: fix crash in rap_share_add().
Guenther
Günther Deschner [Wed, 5 May 2010 14:58:46 +0000 (16:58 +0200)]
s4-smbtorture: remove unused variable from smbcli_rap_netprintdestgetinfo().
Guenther
Günther Deschner [Wed, 5 May 2010 14:56:52 +0000 (16:56 +0200)]
rap: add IDL for rap_NetShareAdd (undocumented in MS-RAP).
Guenther
Andrew Tridgell [Wed, 5 May 2010 14:12:59 +0000 (16:12 +0200)]
s3-build: don't rebuild/link on every make run
Andrew Tridgell [Wed, 5 May 2010 13:16:26 +0000 (15:16 +0200)]
build: added configure test for inline
Andrew Tridgell [Wed, 5 May 2010 12:12:26 +0000 (14:12 +0200)]
build: update version of waf
this fixes a slow configure problem on HPUX
Andrew Tridgell [Wed, 5 May 2010 12:11:56 +0000 (14:11 +0200)]
build: use the wrapper commands in testwaf.sh
this ensures they are well tested