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
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
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
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
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
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
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
Stefan Metzmacher [Fri, 16 May 2008 22:01:05 +0000 (00:01 +0200)]
smbd: pass down lp_ctx to stream_new_connection_merge()
metze
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
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
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
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
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
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
Volker Lendecke [Fri, 16 May 2008 13:44:14 +0000 (15:44 +0200)]
Fix two C++ warnings
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
Volker Lendecke [Thu, 15 May 2008 16:09:56 +0000 (18:09 +0200)]
Fix an uninitialized variable warning
Volker Lendecke [Fri, 16 May 2008 13:38:16 +0000 (15:38 +0200)]
In torture_leave_domain, say what account was deleted
Stefan Metzmacher [Fri, 16 May 2008 12:40:56 +0000 (14:40 +0200)]
build: readd ALL_OBJS which is needed for automatic_dependencies
metze
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>
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>
Andrew Bartlett [Fri, 16 May 2008 03:03:01 +0000 (13:03 +1000)]
Rework the CLDAP and NBT netlogon requests and responses.
This now matches section 7.3.3 of the MS-ATDS specification, and all
our current tests pass against windows. There is still more testing
to do, and the server implementation to complete.
Andrew Bartlett
Andrew Bartlett [Wed, 14 May 2008 22:08:43 +0000 (08:08 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Volker Lendecke [Wed, 14 May 2008 17:49:38 +0000 (19:49 +0200)]
Fix an uninitialized variable introduced by
3045d391
Simo, please check!
Volker
Stefan Metzmacher [Wed, 14 May 2008 15:28:42 +0000 (17:28 +0200)]
Revert "lib/events: system/network.h isn't needed"
Somehow this breaks 'make test'...
This reverts commit
59faf3bf670140784d5698bbdc8b86afe8e188ec.
metze
Stefan Metzmacher [Wed, 14 May 2008 13:19:43 +0000 (15:19 +0200)]
lib/events: system/network.h isn't needed
metze
Simo Sorce [Thu, 24 Apr 2008 21:28:30 +0000 (17:28 -0400)]
Make it possible to build libevents standalone.
Stefan Metzmacher [Thu, 8 May 2008 09:01:09 +0000 (11:01 +0200)]
libreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6
metze
Stefan Metzmacher [Thu, 8 May 2008 08:39:41 +0000 (10:39 +0200)]
libreplace: make sure system/network.h is only used when AC_LIBREPLACE_NETWORK_CHECKS was used
metze
Stefan Metzmacher [Thu, 8 May 2008 08:32:19 +0000 (10:32 +0200)]
libreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS vars
metze
Stefan Metzmacher [Thu, 8 May 2008 08:27:23 +0000 (10:27 +0200)]
libreplace: include inet_ntoa.o when the system one is broken
metze
Stefan Metzmacher [Thu, 8 May 2008 08:08:42 +0000 (10:08 +0200)]
libreplace: merge getifaddrs.m4 into libreplace_network.m4
metze
Stefan Metzmacher [Thu, 8 May 2008 08:06:39 +0000 (10:06 +0200)]
libreplace: merge getaddrinfo.m4 into libreplace_network.m4
metze
Stefan Metzmacher [Thu, 8 May 2008 08:04:51 +0000 (10:04 +0200)]
libreplace: merge socketpair.m4 into libreplace_network.m4
metze
Stefan Metzmacher [Thu, 8 May 2008 08:02:21 +0000 (10:02 +0200)]
libreplace: merge inet_pton.m4 into libreplace_network.m4
metze
Stefan Metzmacher [Thu, 8 May 2008 08:00:58 +0000 (10:00 +0200)]
libreplace: merge inet_ntop.m4 into libreplace_network.m4
metze
Stefan Metzmacher [Thu, 8 May 2008 07:59:16 +0000 (09:59 +0200)]
libreplace: merge inet_aton.m4 into libreplace_network.m4
metze
Stefan Metzmacher [Thu, 8 May 2008 07:58:07 +0000 (09:58 +0200)]
libreplace: merge inet_ntoa.m4 into libreplace_network.m4
metze
Stefan Metzmacher [Thu, 8 May 2008 07:56:10 +0000 (09:56 +0200)]
libreplace: merge socket.m4 into libreplace_network.m4
metze
Andrew Bartlett [Sun, 11 May 2008 23:46:50 +0000 (09:46 +1000)]
Remove JavaScript provision-backend script
The library it relied on has already been removed.
Andrew Bartlett
Andrew Bartlett [Sun, 11 May 2008 23:44:27 +0000 (09:44 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Jelmer Vernooij [Sun, 11 May 2008 13:37:09 +0000 (15:37 +0200)]
Fail earlier on if shared libs can't be built.
Jelmer Vernooij [Sun, 11 May 2008 13:31:02 +0000 (15:31 +0200)]
Add extra include directories, hopefully fixes the build on aix53bf.
Jelmer Vernooij [Sun, 11 May 2008 13:15:27 +0000 (15:15 +0200)]
Remove obsolete provisioning library.
Jelmer Vernooij [Sun, 11 May 2008 12:32:06 +0000 (14:32 +0200)]
Remove python extension from upgrade script.
Jelmer Vernooij [Sun, 11 May 2008 12:08:31 +0000 (14:08 +0200)]
Properly support sentinels for binary init functions. This should fix the build.
Jelmer Vernooij [Sun, 11 May 2008 03:49:07 +0000 (05:49 +0200)]
Avoid unnecessary headers in lib/torture.
Jelmer Vernooij [Sun, 11 May 2008 03:18:09 +0000 (05:18 +0200)]
Fix formatting of install message.
Jelmer Vernooij [Sun, 11 May 2008 03:17:50 +0000 (05:17 +0200)]
Remove extra space that caused issues during make install.
Jelmer Vernooij [Sun, 11 May 2008 03:17:29 +0000 (05:17 +0200)]
Avoid installing non-public header.
Jelmer Vernooij [Sun, 11 May 2008 02:36:37 +0000 (04:36 +0200)]
make sure to always use string version of uuid rather than object.
Jelmer Vernooij [Sun, 11 May 2008 02:36:05 +0000 (04:36 +0200)]
Complete dependencies for python modules (actually matters when built standalone).
Jelmer Vernooij [Sun, 11 May 2008 01:31:38 +0000 (03:31 +0200)]
Fix dependency on loadparm.
Jelmer Vernooij [Sun, 11 May 2008 01:31:26 +0000 (03:31 +0200)]
Use consistent function names with the standard Python uuid module that is available in >= 2.4.
Jelmer Vernooij [Sun, 11 May 2008 01:01:27 +0000 (03:01 +0200)]
Properly escape quotes.
Jelmer Vernooij [Sun, 11 May 2008 00:15:32 +0000 (02:15 +0200)]
Merge ldb_map into LIBLDB.
Jelmer Vernooij [Sat, 10 May 2008 23:53:11 +0000 (01:53 +0200)]
Fix LDB module initialization when using external ldb.
Jelmer Vernooij [Sat, 10 May 2008 21:46:51 +0000 (23:46 +0200)]
Fix torture module initializion.
Jelmer Vernooij [Sat, 10 May 2008 21:38:56 +0000 (23:38 +0200)]
Revert "Remove copy of torture file."
This reverts commit
89bfca2da2b614e979a20c9a293b798ed7ae15ae.
Jelmer Vernooij [Sat, 10 May 2008 21:25:50 +0000 (23:25 +0200)]
Install standalone python modules (so we can use stock python rather than smbpython).
Jelmer Vernooij [Sat, 10 May 2008 20:30:00 +0000 (22:30 +0200)]
Fix soversion for libtorture and libsamba-hostconfig.
Jelmer Vernooij [Sat, 10 May 2008 20:26:14 +0000 (22:26 +0200)]
Remove copy of torture file.
Jelmer Vernooij [Sat, 10 May 2008 19:29:42 +0000 (21:29 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
Jelmer Vernooij [Sat, 10 May 2008 19:29:09 +0000 (21:29 +0200)]
Fix building with system-provided LDB without breaking anything else :-)
Jelmer Vernooij [Sat, 10 May 2008 18:59:48 +0000 (20:59 +0200)]
Revert "Fix building with system-provided LDB."
This reverts commit
fbfbc1f163520b3b9a4a3bf8bdddf26749cc7255.
Jelmer Vernooij [Sat, 10 May 2008 18:59:17 +0000 (20:59 +0200)]
Clean up some git merges gone wrong.
Jelmer Vernooij [Sat, 10 May 2008 18:44:59 +0000 (20:44 +0200)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
Jelmer Vernooij [Sat, 10 May 2008 18:17:02 +0000 (20:17 +0200)]
Fix building with system-provided LDB.
Jelmer Vernooij [Sat, 10 May 2008 16:08:00 +0000 (18:08 +0200)]
Merge branch 'v4-0-test' into v4-0-gmake3
Conflicts:
source/auth/config.mk
source/auth/gensec/config.mk
source/torture/smbtorture.c
Jelmer Vernooij [Sat, 10 May 2008 12:26:08 +0000 (14:26 +0200)]
Fix case.
Jelmer Vernooij [Fri, 9 May 2008 22:48:11 +0000 (00:48 +0200)]
Fix location of torture pc file.
Jelmer Vernooij [Fri, 9 May 2008 22:46:25 +0000 (00:46 +0200)]
Fix installation of pidl perl files, torture pc file.
Andrew Bartlett [Fri, 9 May 2008 00:47:23 +0000 (10:47 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Jelmer Vernooij [Thu, 8 May 2008 11:43:45 +0000 (13:43 +0200)]
Fix typo.
William Jojo [Thu, 8 May 2008 10:41:57 +0000 (12:41 +0200)]
Add undefined symbol flag for AIX.
Jelmer Vernooij [Thu, 8 May 2008 10:40:56 +0000 (12:40 +0200)]
Fix typo.
Jelmer Vernooij [Thu, 8 May 2008 09:56:32 +0000 (11:56 +0200)]
Fix link flags for ldb and tdb Python modules.
Jelmer Vernooij [Thu, 8 May 2008 08:53:03 +0000 (10:53 +0200)]
Install session.h, required by OpenChange's proxy.
Stefan Metzmacher [Wed, 7 May 2008 15:38:41 +0000 (17:38 +0200)]
libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone build
metze
Stefan Metzmacher [Wed, 7 May 2008 15:15:36 +0000 (17:15 +0200)]
libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba
metze
Stefan Metzmacher [Wed, 7 May 2008 14:50:19 +0000 (16:50 +0200)]
libreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macro
Note: moving it out of AC_LIBREPLACE_BROKEN_CHECKS will be the next step
metze
Stefan Metzmacher [Wed, 7 May 2008 13:46:22 +0000 (15:46 +0200)]
pvfs: remove XATTR_ATTRIB_FLAG_STICKY_WRITE_TIME code
I'll fix this more correctly very soon,
so that we'll pass the BASE-DELAYWRITE test.
metze
Stefan Metzmacher [Wed, 7 May 2008 11:10:31 +0000 (13:10 +0200)]
libreplace: always provide utime() and utimes()
I'd like to also provide futimes(), but it seems
that some systems doesn't support a it at kernel level.
If someone knows how to write a portable replacement
for futimes() please tell me...
metze
Stefan Metzmacher [Wed, 7 May 2008 06:59:06 +0000 (08:59 +0200)]
build: fix path to lex_compile.sh
metze
Andrew Bartlett [Tue, 6 May 2008 22:12:16 +0000 (08:12 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
Michael Adam [Tue, 6 May 2008 13:26:37 +0000 (15:26 +0200)]
torture: use dom_idx after determining it in samba3rpc.c:get_usr_handle()
Michael
Stefan Metzmacher [Tue, 6 May 2008 10:38:55 +0000 (12:38 +0200)]
libreplace: check how portable utimes() and futimes() are
metze
Andrew Bartlett [Tue, 6 May 2008 01:02:40 +0000 (11:02 +1000)]
Cope with an empty mapping file in ad2oLschema
Tiago Batista [Mon, 5 May 2008 22:12:03 +0000 (08:12 +1000)]
Tiago Batista posted a patch to fix the build:
Trying to compile the latest git tree, I got some errors
"auth/pam_error.h not found" errors, it looks like it moved to
auth/ntlm/pam_errors.h.
Andrew Bartlett
Andrew Bartlett [Mon, 5 May 2008 09:28:38 +0000 (19:28 +1000)]
Fix the build after the auth/ -> auth/ntlm/ rename
I need to fix up the header inclusion, but this fixes things for now.
Andrew Bartlett
Andrew Bartlett [Mon, 5 May 2008 05:23:57 +0000 (15:23 +1000)]
Move NTLM authentication details into auth/ntlm
This should help clarify the role of the various files around here
(done on Jelmer's request).
Andrew Bartlett
Andrew Bartlett [Mon, 5 May 2008 03:21:18 +0000 (13:21 +1000)]
Add a new implementation of security=server.
This is not intended for general use, and will not be easily exposed
(if I have anything to do with it), but should allow the CIFS proxy to
re-use the connection.
A work in progress.
Andrew Bartlett
Andrew Bartlett [Mon, 5 May 2008 02:58:15 +0000 (12:58 +1000)]
Allow an NTLM response to be specified into the auth subsystem.
This allows it to be proxied for NTLM pass-though authentication (aka
security=server and associated man-in-the-middle attacks).
Andrew Bartlett
Andrew Bartlett [Mon, 5 May 2008 02:57:23 +0000 (12:57 +1000)]
Reorder this function in the file, so it reads bottom-up.
The rest of this file reads bottom-up, but this function
(connect_send_negprot()) was out of place.
Andrew Bartlett
Andrew Bartlett [Thu, 1 May 2008 06:41:36 +0000 (16:41 +1000)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
Jelmer Vernooij [Sun, 27 Apr 2008 22:29:50 +0000 (23:29 +0100)]
Split up lcov target.
Jelmer Vernooij [Sun, 27 Apr 2008 14:04:33 +0000 (15:04 +0100)]
Fix header locations.
Jelmer Vernooij [Sun, 27 Apr 2008 13:02:46 +0000 (14:02 +0100)]
Move subunit infrastructure code into lib/torture.