Günther Deschner [Wed, 2 Jun 2010 13:35:33 +0000 (15:35 +0200)]
s3-selftest: Fix blackbox smbclient s3 tests during make selftest.
Guenther
Matthieu Patou [Fri, 21 May 2010 07:57:29 +0000 (11:57 +0400)]
s3: Allow previous password to be stored and use it to check tickets
This patch is to fix bug 7099. It stores the current password in the
previous password key when the password is changed. It also check the
user ticket against previous password.
Signed-off-by: Günther Deschner <gd@samba.org>
Volker Lendecke [Tue, 5 Jan 2010 09:42:38 +0000 (10:42 +0100)]
s3: Add vfs_linux_xfs_sgid
http://oss.sgi.com/bugzilla/show_bug.cgi?id=280 shows an old Linux XFS bug that
still exists: Under certain circumstances the SGID bit is not inherited.
Kai Blin [Wed, 2 Jun 2010 09:28:54 +0000 (11:28 +0200)]
s3-waf: Fix up smbclient dependencies
Kai Blin [Wed, 2 Jun 2010 09:21:18 +0000 (11:21 +0200)]
s3-waf: Fixed dependencies of the the krbclient subsystem.
Andreas Schneider [Wed, 2 Jun 2010 09:19:36 +0000 (11:19 +0200)]
s3-waf: Fixed dependencies of the the avahi subsystem.
Matthias Dieter Wallnöfer [Wed, 2 Jun 2010 07:30:54 +0000 (09:30 +0200)]
s4:ldb_msg_element_compare - fix typo in comment
Matthias Dieter Wallnöfer [Tue, 1 Jun 2010 17:59:56 +0000 (19:59 +0200)]
s4:lib/ldb/pyldb_util.c - add a cast to quiet a warning
Jelmer, please fix if it isn't correct.
Ira Cooper [Wed, 2 Jun 2010 00:09:29 +0000 (17:09 -0700)]
SMB2: Fix rename on Windows 7.
This removes some code Jeremy (jra) suspected was bad. It turns out that the
command window rename command will not work with the offending code in place.
With it removed the bug is gone, and rename works.
Jeremy Allison [Tue, 1 Jun 2010 23:05:44 +0000 (16:05 -0700)]
Don't use sigev_value.sival_int to just store the mid, use sigev_value.sival_ptr to store the private data structure.
This allows easier use from SMB2. Ensure aio is initialized before the
aio_pending_size check else aio will never be used.
Jeremy.
Günther Deschner [Tue, 1 Jun 2010 21:02:13 +0000 (23:02 +0200)]
s3-eventlog: try to pass RPC-EVENTLOG during make test as non-root.
Guenther
Holger Hetterich [Sun, 30 May 2010 16:52:17 +0000 (18:52 +0200)]
s3-vfs: Send the share name instead of the path in smb_traffic_analyzer.
In protocol v2, the name of the service should be sent instead of the
path.
Signed-off-by: Andreas Schneider <asn@samba.org>
Günther Deschner [Tue, 1 Jun 2010 14:48:51 +0000 (16:48 +0200)]
s4-smbtorture: skip driverName and printerName DsSpooler tests for now.
Guenther
Günther Deschner [Tue, 1 Jun 2010 14:46:37 +0000 (16:46 +0200)]
s4-smbtorture: Make sure RPC-SPOOLSS and RPC-SPOOLSS-PRINTER pass against s3.
Printjobs are extremely fragile beasts on paused virtual printers within make
test. Very often the printq updater in the background is not fast enough, so
subsequent tests don't get to the updated information. Something to remember and
to work on later...
Guenther
Günther Deschner [Tue, 1 Jun 2010 14:04:19 +0000 (16:04 +0200)]
lib/replace: fix some c++ build warnings in testsuite.
Guenther
Anatoliy Atanasov [Tue, 1 Jun 2010 12:05:02 +0000 (15:05 +0300)]
s4: check the sacl and dacl pointers on the old sd
Kai Blin [Tue, 1 Jun 2010 13:37:40 +0000 (15:37 +0200)]
s3-waf: Fix the build
Michael Adam [Tue, 1 Jun 2010 13:31:17 +0000 (15:31 +0200)]
s3: remove unused prototype for lp_idmap_domains().
Kai Blin [Tue, 1 Jun 2010 08:31:11 +0000 (10:31 +0200)]
s3-waf: Add check for dirent.d_off member
Stefan Metzmacher [Mon, 31 May 2010 08:57:52 +0000 (10:57 +0200)]
s3:winbindd: make sure we only call static_init_idmap once
metze
Signed-off-by: Michael Adam <obnox@samba.org>
Andrew Bartlett [Mon, 24 May 2010 04:55:17 +0000 (14:55 +1000)]
s3:winbind Ensure we always init idmap_passdb before we use it
It seems that it is possible for idmap_init_passdb_domain() to be run
before idmap_init_domain(), so ensure we run the static init functions
in both.
Andrew Bartlett
Signed-off-by: Michael Adam <obnox@samba.org>
Andrew Bartlett [Mon, 24 May 2010 00:51:10 +0000 (10:51 +1000)]
s3:idmap Use idmap.idl defined structures and constants
This allows these structures to be shared across all of Samba
The additional name type ID_TYPE_BOTH is unused in source3 code at
this time.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Karolin Seeger [Tue, 1 Jun 2010 08:02:14 +0000 (10:02 +0200)]
s4-configure: Fix typo in comment.
Karolin
Karolin Seeger [Tue, 1 Jun 2010 07:45:19 +0000 (09:45 +0200)]
selftest: Fix typo in comment.
Karolin
Karolin Seeger [Tue, 1 Jun 2010 07:35:53 +0000 (09:35 +0200)]
s4-heimdal: Fix typo in comment.
Karolin
Karolin Seeger [Tue, 1 Jun 2010 07:33:53 +0000 (09:33 +0200)]
s4-cracknames: Fix typo in debug message.
Karolin
Andrew Bartlett [Tue, 1 Jun 2010 01:23:50 +0000 (11:23 +1000)]
s3:auth Rename wksta_name -> workstation_name in auth_usersupplied_info
Andrew Bartlett [Tue, 25 May 2010 11:18:15 +0000 (21:18 +1000)]
s4:ntlmssp Use common code for ntlmssp_sign.c
The common code does not have a mem_ctx on ntlmssp_check_packet() and
ntlmssp_unseal_packet().
We do however need some internal working of the code exposed, so some
structures are moved to ntlmssp_sign.h
Andrew Bartlett
Andrew Bartlett [Tue, 25 May 2010 10:20:46 +0000 (20:20 +1000)]
s4:ntlmssp Use the new common ntlmssp.h
Andrew Bartlett [Tue, 25 May 2010 09:59:23 +0000 (19:59 +1000)]
s4:ntlmssp Merge ntlmssp structures with version from source3/
Use this as an excuse to get rid of ntlmssp_set_domain() etc, which
don't do anything useful now that msrpc_parse() use talloc anyway.
Andrew Bartlett
Andrew Bartlett [Tue, 18 May 2010 12:10:13 +0000 (22:10 +1000)]
s3:param Put 'server_role' functions in another file.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andrew Bartlett [Tue, 18 May 2010 12:07:48 +0000 (22:07 +1000)]
s3:param Add helper function to get at Gobals.iDomainMaster
This is needed for a future split out of the server_role code.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Kai Blin [Mon, 31 May 2010 21:02:16 +0000 (23:02 +0200)]
s3-waf: Check for device major and minor macros
Kai Blin [Mon, 31 May 2010 20:39:47 +0000 (22:39 +0200)]
s3-waf: Add check for asm/types.h
Jelmer Vernooij [Mon, 31 May 2010 21:10:59 +0000 (23:10 +0200)]
pyldb_util: Remove dependency on LIBPYTHON - it's already there
implicitly and not available in the standalone build.
Matthias Dieter Wallnöfer [Mon, 31 May 2010 11:58:27 +0000 (13:58 +0200)]
s4:samldb LDB module - start on a sequential trigger implementation
This is a start to allow the triggers to be called sequentially.
Matthias Dieter Wallnöfer [Mon, 31 May 2010 20:22:37 +0000 (22:22 +0200)]
ldb:ldb_msg_add_steal_string - prevent also there the addition of strings with length 0
Matthias Dieter Wallnöfer [Mon, 31 May 2010 20:04:29 +0000 (22:04 +0200)]
s4:dsdb_load_udv_v1 - "uint32_t" counter type fits better than "unsigned int"
Kai Blin [Mon, 31 May 2010 06:36:29 +0000 (08:36 +0200)]
s3-waf: Check if compiler supports LL suffix
Kai Blin [Mon, 31 May 2010 06:35:58 +0000 (08:35 +0200)]
s3-waf: Check for broken nisplus include files
Günther Deschner [Mon, 31 May 2010 19:49:04 +0000 (21:49 +0200)]
s3-smbd: remove unused sconn from token_contains_name().
Guenther
Andrew Bartlett [Thu, 13 May 2010 07:07:15 +0000 (17:07 +1000)]
s3:winbindd move reinit_after_fork() back out of winbindd_register_handlers
This particular init function needs to be done in a native Samba3
build, but it turns out to be difficult for s3compat, which has other
code listening on the sockets.
Andrew Bartlett
Andrew Bartlett [Mon, 24 May 2010 00:11:23 +0000 (10:11 +1000)]
s3:winbind Make state->mem_ctx a talloc child of state
This way everything is destoryed at the conclusion of
the connection correctly.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andrew Bartlett [Mon, 17 May 2010 09:34:32 +0000 (19:34 +1000)]
s3:winbind tidy up connecting the winbind sockets.
By putting this code inline in winbindd_setup_listeners() we remove 2
static variables and simplify the code.
By putting the get_winbind_priv_pipe_dir() in the same file, we allow
it to be reimplemented in s3compat.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andrew Bartlett [Fri, 14 May 2010 03:11:48 +0000 (13:11 +1000)]
Revert "s3:winbindd Split helper functions to allow s3compat to call them"
I'm experimenting with a different entry point
This reverts commit
f5c0f90da5f5372ca6b7a72daa8d073a2444a068.
Günther Deschner [Mon, 31 May 2010 19:26:30 +0000 (21:26 +0200)]
s3-netlogon: Fix crash bug in _netr_NetrEnumerateTrustedDomains().
Guenther
Simo Sorce [Mon, 31 May 2010 18:50:07 +0000 (14:50 -0400)]
Revert "ldb: Remove Samba-specific symbols."
This reverts commit
fe8302b235197e359a20ba0489eb72b54793963e.
Jelmer, please do not re-re-revert this until we can properly handle
*both* s4 and standalone ldb builds.
Jelmer Vernooij [Mon, 31 May 2010 18:44:30 +0000 (20:44 +0200)]
wafsamba: Only try to build manpages if XSLTPROC was actually found.
Jelmer Vernooij [Mon, 31 May 2010 18:44:12 +0000 (20:44 +0200)]
pyldb: Remove duplicate copy of function.
Simo Sorce [Mon, 31 May 2010 17:54:00 +0000 (13:54 -0400)]
ldb: Remove unexisting and mistyped function from header
Jelmer Vernooij [Mon, 31 May 2010 16:29:11 +0000 (18:29 +0200)]
ldb: Install ldb_handlers.h header.
Jelmer Vernooij [Mon, 31 May 2010 16:28:09 +0000 (18:28 +0200)]
ldb: Remove Samba-specific symbols.
Jelmer Vernooij [Mon, 31 May 2010 16:12:05 +0000 (18:12 +0200)]
ldb: Move utility functions to separate file.
Jelmer Vernooij [Mon, 31 May 2010 14:05:41 +0000 (16:05 +0200)]
ldb: Fix dependencies when building with system ldb.
Simo Sorce [Mon, 31 May 2010 14:52:06 +0000 (10:52 -0400)]
s3:smbd map_username() doesn't need sconn anymore
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 31 May 2010 14:47:01 +0000 (10:47 -0400)]
s3:smbd user_ok doesn't need sconn anymore
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 31 May 2010 14:45:24 +0000 (10:45 -0400)]
s3:smbd user_in_list() doesn't need sconn anymore
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 31 May 2010 14:43:19 +0000 (10:43 -0400)]
s3:smbd user_in_network() doesn't need sconn anymore
Signed-off-by: Andreas Schneider <asn@samba.org>
Simo Sorce [Mon, 31 May 2010 14:36:02 +0000 (10:36 -0400)]
s3:smbd make yp cache local.
The my_yp_domain variable is just a static cache needed to avoid
making over and over expensive and potentially blocking calls to
yp_get_default_domain().
Instead of keeping this onto the smbd_server_connection struct, just
keep it local to the only function ever using this variable.
This disentagle this function (and a number of calling functions)
from having to pass around smbd_server_connection and thus having
to link against smbd. It also removes a few ifdefs.
Nothing changes from a global/local pov, as the smbd_server_connection
variable passed around is also a global one.
Signed-off-by: Andreas Schneider <asn@samba.org>
Stefan Metzmacher [Mon, 31 May 2010 15:51:21 +0000 (17:51 +0200)]
buildtools/wafsamba: use build group 'final' for the creation of manpages
This way we don't try to build manpages just for waf build --target=smbtorture
metze
Kai Blin [Mon, 31 May 2010 13:56:30 +0000 (15:56 +0200)]
s3-waf: Fix build after ntlmssp_sign.c moved
Kai Blin [Mon, 31 May 2010 13:33:40 +0000 (15:33 +0200)]
ldb: Revert signature file changes made in
151e239bcf2860411527a953d627b2d724c0a57e
Günther Deschner [Fri, 28 May 2010 13:31:35 +0000 (15:31 +0200)]
s3-netlogon: use LSA in _netr_NetrEnumerateTrustedDomains.
Guenther
Günther Deschner [Fri, 28 May 2010 12:22:08 +0000 (14:22 +0200)]
s3-netlogon: use SAMR in _netr_ServerAuthenticate3.
Guenther
Günther Deschner [Fri, 28 May 2010 12:21:15 +0000 (14:21 +0200)]
s3-samr: give the system user a free pass for _samr_QueryUserInfo{2} level 18.
Guenther
Günther Deschner [Fri, 28 May 2010 12:19:28 +0000 (14:19 +0200)]
s3-auth: add "system" bool flag to auth_serversupplied_info.
Guenther
Günther Deschner [Fri, 28 May 2010 10:39:12 +0000 (12:39 +0200)]
s3-netlogon: use SAMR in _netr_ServerPasswordSet{2}.
Guenther
Andrew Bartlett [Tue, 25 May 2010 10:58:52 +0000 (20:58 +1000)]
s3:ntlmssp Move ntlmssp_sign.c from source3 to common code.
This needs a small re-arrangement of the supporting code.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Andrew Bartlett [Tue, 25 May 2010 10:55:40 +0000 (20:55 +1000)]
s3:ntlmssp Use a TALLOC_CTX for ntlmssp_sign_packet() and ntlmssp_seal_packet()
This ensures the results can't be easily left to leak.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Andrew Bartlett [Tue, 25 May 2010 10:19:22 +0000 (20:19 +1000)]
ntlmssp: Make the ntlmssp.h from source3/ a common header
The code is not yet in common, but I hope to fix that soon.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Andrew Bartlett [Tue, 25 May 2010 09:58:00 +0000 (19:58 +1000)]
s3:ntlmssp Add two unused variables to match the Samba4 ntlmssp.h
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Andrew Bartlett [Tue, 25 May 2010 05:40:35 +0000 (15:40 +1000)]
s3:auth Remove AUTH_NTLMSSP_STATE typedef.
typedefs are no longer preferred Samba style.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Andrew Bartlett [Tue, 25 May 2010 05:34:06 +0000 (15:34 +1000)]
s3:auth Make AUTH_NTLMSSP_STATE a private structure.
This makes it a little easier for it to writen in terms of GENSEC in future.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
Björn Jacke [Mon, 31 May 2010 12:33:51 +0000 (14:33 +0200)]
s3:configre: work around shell problem on HP-UX in AC macro
Jelmer Vernooij [Mon, 31 May 2010 11:55:17 +0000 (13:55 +0200)]
talloc: Don't set is_bundled for standalone build.
Jelmer Vernooij [Mon, 31 May 2010 11:51:49 +0000 (13:51 +0200)]
ldb/waf: Fix build with system and bundled ldb.
Jelmer Vernooij [Mon, 31 May 2010 10:17:33 +0000 (12:17 +0200)]
waf: Refactor manpage building code.
Jelmer Vernooij [Mon, 31 May 2010 10:08:01 +0000 (12:08 +0200)]
Add manpages argument to SAMBA_LIBRARY().
Stefan Metzmacher [Mon, 31 May 2010 10:51:58 +0000 (12:51 +0200)]
s4-waf: Fixed the ldb build.
Matthias Dieter Wallnöfer [Mon, 31 May 2010 08:15:25 +0000 (10:15 +0200)]
s3/s4:netrEnumerateTrustedDomains - this call returns a "NTSTATUS" result
See MS-NRPC 3.5.5.6.3.
Matthias Dieter Wallnöfer [Mon, 31 May 2010 10:01:34 +0000 (12:01 +0200)]
s4:dcesrv_netr_DsrEnumerateDomainTrusts - fix an integer type
Matthias Dieter Wallnöfer [Tue, 27 Apr 2010 13:58:45 +0000 (15:58 +0200)]
s4:torture/rpc/netlogon.c - add another "LogonGetDomainInfo" testcase
Mark it as dangerous since it does break some target systems.
Volker Lendecke [Wed, 26 May 2010 15:52:10 +0000 (17:52 +0200)]
s3: Fix some debug messages
Volker Lendecke [Wed, 26 May 2010 15:47:37 +0000 (17:47 +0200)]
s3: Don't announce readraw and writeraw with the async echo responder
Günther Deschner [Fri, 28 May 2010 01:31:52 +0000 (03:31 +0200)]
s3: use shared security defines.
Guenther
Günther Deschner [Tue, 18 May 2010 17:40:31 +0000 (19:40 +0200)]
s3: only use netlogon/nbt header when needed.
Guenther
Günther Deschner [Fri, 28 May 2010 00:19:32 +0000 (02:19 +0200)]
s3-build: only use ndr_security.h where needed.
Guenther
Günther Deschner [Fri, 28 May 2010 01:04:45 +0000 (03:04 +0200)]
libcli/nbt/lmhosts: fix missing prototype warning.
Andrew, please check.
Guenther
Michael Adam [Mon, 31 May 2010 08:30:15 +0000 (10:30 +0200)]
s3: remove prototype of non-existsing function idmap_tdb_tdb_close().
Kai Blin [Mon, 31 May 2010 07:39:44 +0000 (09:39 +0200)]
wafsamba: Correctly detect if bld.env.XSLTPROC is not set
This fixes the build on some build farm hosts and my machine.
Jelmer, please check.
Jelmer Vernooij [Mon, 31 May 2010 02:48:00 +0000 (04:48 +0200)]
ldb: Support building with system ldb library
Jelmer Vernooij [Mon, 31 May 2010 02:20:44 +0000 (04:20 +0200)]
tdb-waf: Don't install binaries when using system tdb.
Jelmer Vernooij [Mon, 31 May 2010 02:16:19 +0000 (04:16 +0200)]
tdb-waf: Simplify manpage handling.
Jelmer Vernooij [Mon, 31 May 2010 01:59:50 +0000 (03:59 +0200)]
wafsamba: Default blacklist to an empty list rather than None.
Jelmer Vernooij [Mon, 31 May 2010 00:43:17 +0000 (02:43 +0200)]
s4-waf: sanitize library names like the old build system did, only add
-samba4 suffix for libraries that are bundled.
Björn Jacke [Mon, 31 May 2010 00:17:04 +0000 (02:17 +0200)]
s3: use PICFLAG instead of PIE_FLAGS
Jelmer Vernooij [Sun, 30 May 2010 23:35:43 +0000 (01:35 +0200)]
wafsamba: Actually install manual pages.
Jelmer Vernooij [Sun, 30 May 2010 23:35:07 +0000 (01:35 +0200)]
ldb: Remove manual pages for binaries that have already been moved to utils/.
Jelmer Vernooij [Sun, 30 May 2010 23:28:15 +0000 (01:28 +0200)]
ldb-waf: Fix installation path of manpages, simplify manpage handling.
Jelmer Vernooij [Sun, 30 May 2010 23:25:56 +0000 (01:25 +0200)]
s4-waf: Look for xsltproc executable, required to build manpages.