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.
Björn Jacke [Sun, 30 May 2010 22:26:01 +0000 (00:26 +0200)]
s3: final test for working shlib support requires PIE_LDFLAGS
Jelmer Vernooij [Sun, 30 May 2010 22:13:10 +0000 (00:13 +0200)]
s4-python: Remove cruft to deal with static python modules, which are no
longer supported.
Björn Jacke [Sun, 30 May 2010 21:50:48 +0000 (23:50 +0200)]
s3: use autoconf macro to get some debug output in config.log
Kai Blin [Sun, 30 May 2010 21:27:08 +0000 (23:27 +0200)]
s3-waf: Fix the build after rebase
Kai Blin [Fri, 28 May 2010 13:56:32 +0000 (15:56 +0200)]
s3-waf: support avahi builds
Kai Blin [Fri, 28 May 2010 13:50:26 +0000 (15:50 +0200)]
build: Also replace '-' by '_' when creating header defines
Tridge, please check
Kai Blin [Wed, 26 May 2010 11:44:43 +0000 (13:44 +0200)]
s3-waf: Add more darwin-specific options
Matthias Dieter Wallnöfer [Sun, 30 May 2010 20:46:50 +0000 (22:46 +0200)]
s4:tests/python/passwords.py - fix filter
Matthias Dieter Wallnöfer [Sun, 30 May 2010 19:58:11 +0000 (21:58 +0200)]
ldb:ldb_tdb/ldb_tdb.c - quiet a warning regarding TDB -> LDB error code conversions
Matthias Dieter Wallnöfer [Tue, 11 May 2010 19:43:36 +0000 (21:43 +0200)]
s4:samldb LDB module - deny delete operations on some important attributes
Add operations are denied since these are single-valued - only replace is
allowed.
This is only provisorily at the moment - we need to implement the triggers
specified in MS-ADTS.
Matthias Dieter Wallnöfer [Tue, 11 May 2010 19:35:46 +0000 (21:35 +0200)]
s4:ldap.py - add a test which shows the modification behaviour of important attributes
This shows how important attributes of SAM objects do behave when you launch
add and delete modify requests on them.
Matthias Dieter Wallnöfer [Sun, 30 May 2010 19:08:05 +0000 (21:08 +0200)]
s4:samldb LDB module - rework the group change code to be again synchronous
Matthias Dieter Wallnöfer [Tue, 11 May 2010 15:00:54 +0000 (17:00 +0200)]
s4:ldap.py - add more test cases to show invalid primary group change behaviour
Kai Blin [Thu, 27 May 2010 21:38:02 +0000 (23:38 +0200)]
s3-waf: Set HAVE_GSSAPI if gssapi libs were found
Björn Jacke [Sun, 30 May 2010 19:44:14 +0000 (21:44 +0200)]
libreplace: include sys/file.h only when available
thanks to Joachim Schmitz <schmitz@hp.com>. This fixes #7460.
Joachim Schmitz [Sun, 30 May 2010 19:25:30 +0000 (21:25 +0200)]
s3: define timespec before we use it
this fixes #7464
Signed-off-by: Björn Jacke <bj@sernet.de>
Matthias Dieter Wallnöfer [Sun, 30 May 2010 18:46:57 +0000 (20:46 +0200)]
s4:dsdb/samdb/ldb_modules/util.c - make sure to always free temporary data
Matthias Dieter Wallnöfer [Sun, 30 May 2010 18:46:31 +0000 (20:46 +0200)]
s4:dsdb_module_search_dn - add code to handle NULL format string
Matthias Dieter Wallnöfer [Sun, 30 May 2010 18:45:56 +0000 (20:45 +0200)]
s4:dsdb/common/util.c - fix a counter variable
Jelmer Vernooij [Sun, 30 May 2010 15:05:07 +0000 (17:05 +0200)]
selftest: list.remove raises ValueError rather than KeyError.
Björn Jacke [Sat, 29 May 2010 00:06:56 +0000 (02:06 +0200)]
s3: set pthread cflags in a more portable fashion
this avoids one place of a GNU make dependency.
Portable make sucks a bit as it has no way of defining variables for a limited
set of targets only. Manual duplication of target rules is the only way to
achieve what we need.
If someone actually knows a trick how to do this without target duplication,
let me know.
Björn Jacke [Sat, 29 May 2010 00:02:20 +0000 (02:02 +0200)]
Revert "s3: Attempt to fix the non-gnumake build"
This reverts commit
086c6c0e9a56f7e6dca6c1398e210b8c6225e4ed, it broke some
builds. The following commit should also remove the gmake dependency.
Björn Jacke [Fri, 28 May 2010 23:40:21 +0000 (01:40 +0200)]
s3: fix check for pie compiler flags
some compilers (HP and Sun e.g.) output warning messages on stderr for unknown
options and we ended up partly using some unwanted random compile flags we
did't intend to use.
Björn Jacke [Fri, 28 May 2010 23:39:16 +0000 (01:39 +0200)]
s3: add m4 macro to check if stderr is empty or not
Matthias Dieter Wallnöfer [Sun, 30 May 2010 12:53:36 +0000 (14:53 +0200)]
Revert "s4:rpc_server/dcesrv_auth.c - Fix a RPC issue in conjunction with Windows 2000"
This reverts commit
1cf5be39e30f9478606a5525eb7beeb21ee83c24.
My fix approach isn't such appreciated therefore revert this.
Matthias Dieter Wallnöfer [Sun, 30 May 2010 10:02:24 +0000 (12:02 +0200)]
s4:rpc_server/dcesrv_auth.c - Fix a RPC issue in conjunction with Windows 2000
Windows 2000 does strictly request header signing on some requests also if the
server doesn't provide it. But there is a small trick (don't reset the actual
session info) to make these special RPC operations work without a full header
signing implementation.
This fixes for example the list of domain groups in local groups when displayed
sing the local user/group management tool.
And this should finally fix bug #7113.
The patch was inspired by another one by tridge and abartlet: http://gitweb.samba.org/samba.git/?p=tridge/samba.git;a=commitdiff;h=
2dc19e2878371264606575d3fc09176776be7729
Matthias Dieter Wallnöfer [Sun, 30 May 2010 09:01:25 +0000 (11:01 +0200)]
s4:web_server/wsgi.c - free the "env" and "inputstream" objects on an "asprintf" failure
Matthias Dieter Wallnöfer [Fri, 28 May 2010 20:30:50 +0000 (22:30 +0200)]
s4:auth/credentials/credentials.c - initialise "password_last_changed_time"
Otherwise it could remain uninitialised.
Matthias Dieter Wallnöfer [Sat, 29 May 2010 20:54:07 +0000 (22:54 +0200)]
nss_wrapper/testsuite.c - make sure to test always the "NSS wrapper" calls
This should fix bug #7319 and #7320.
Simo Sorce [Sat, 29 May 2010 20:49:37 +0000 (16:49 -0400)]
s3:auth make it easier to trace auth modules
Simo Sorce [Fri, 28 May 2010 17:35:56 +0000 (13:35 -0400)]
s3:auth fix info3 duplication function
Simo Sorce [Fri, 28 May 2010 12:33:18 +0000 (08:33 -0400)]
s3:smbd Use the right num_sids
We use s_i->ptok->num_sids everywhere else in this call and
then suddenly we reference s_i->num_sids
Simo Sorce [Sat, 29 May 2010 13:48:20 +0000 (09:48 -0400)]
s3:passdb Fix memory leak
We were allocating this passwd structure on sampass, but never freeing
it nor assigning it to unix_pw where it could be reused.
Andrew Bartlett [Fri, 28 May 2010 18:14:27 +0000 (04:14 +1000)]
s3:auth Fix segfault when the user cannot be found by getpwnam()
Add comment to notify when getpwnam() fails.
Reviewed-by: Simo Sorce <idra@samba.org>
Günther Deschner [Fri, 28 May 2010 22:38:21 +0000 (00:38 +0200)]
s3-selftest: fix chmod commands in provisioning.
Guenther
Günther Deschner [Fri, 28 May 2010 22:09:14 +0000 (00:09 +0200)]
s3-selftest: make sure provisioned s3 looks the same in make selftest as in make test.
This fixes some tests that were previously failing.
Guenther
Kamen Mazdrashki [Fri, 28 May 2010 19:14:39 +0000 (22:14 +0300)]
s4/test-libnet: Remove multiple test_samr_close() impelementations
We now have a nice common test_samr_close_handle() function to use
Kamen Mazdrashki [Fri, 28 May 2010 18:20:03 +0000 (21:20 +0300)]
s4/test-libnet-user: Remove test_createuser()
We have same functionality already implemented by
test_user_create() in libnet/utils.c
Kamen Mazdrashki [Fri, 28 May 2010 14:59:25 +0000 (17:59 +0300)]
s4/test-libnet-utils: refactor test_user_create()
- param names made more clear what they stand for
- user RID out param is now optional, so that this function may
be used in cases where we don't need user RID
- SAMR connection handle is closed as it is not used further
(we should play nice with servers)
Kamen Mazdrashki [Fri, 28 May 2010 02:20:18 +0000 (05:20 +0300)]
s4/test: remove local impl for open_domain and use common one
Kamen Mazdrashki [Fri, 28 May 2010 02:14:47 +0000 (05:14 +0300)]
s4/test: remove torture/libnet/utils.h as we are using proto.h now
Kamen Mazdrashki [Fri, 28 May 2010 02:06:55 +0000 (05:06 +0300)]
s4/test: change prototype for test_opendomain()
- name changed to test_domain_open to be more alike athore functions
in utils.c file
- output parameters moved to the end param list definition just
after mem_ctx so it is somehow more clear those params are OUT
Kamen Mazdrashki [Fri, 28 May 2010 02:04:56 +0000 (05:04 +0300)]
s4/test: Refactor test_opendomain to address following
- param names made more clear what they stand for
- dom_sid out param is now optional, so that this function may
be used in cases where we don't need dom_sid
- SAMR connection handle is closed as it is not used further
Kamen Mazdrashki [Fri, 28 May 2010 01:45:40 +0000 (04:45 +0300)]
s4/test: make samr_close handle functio public
It is to be used further for closing opened handles when testing
using SAMR interface
Kamen Mazdrashki [Thu, 27 May 2010 14:24:10 +0000 (17:24 +0300)]
s4/test: refactor NET-USERINFO test to be more 'torture' friendly
Test may be further refactored to be converted as a test case
(what it is actually)
Kamen Mazdrashki [Thu, 27 May 2010 14:10:31 +0000 (17:10 +0300)]
s4/test: test_userinfo/_async tests should use passed user_name param value
Matthias Dieter Wallnöfer [Fri, 28 May 2010 16:58:45 +0000 (18:58 +0200)]
s4:web_server/wsgi.c - provide a better out-of-memory handling for an "asprintf" call
Andrew Bartlett [Thu, 13 May 2010 07:41:33 +0000 (17:41 +1000)]
s3:winbind Kill amusing but un-used winbindd_kill_all_clients
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andrew Bartlett [Wed, 26 May 2010 01:11:08 +0000 (11:11 +1000)]
s3:lib s3:lib move get_global_sam_name to util_names.c
This doesn't really belong in util_sid.c, and has much more in common
with the other functions in util_names.c
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andrew Bartlett [Mon, 17 May 2010 06:25:26 +0000 (16:25 +1000)]
s3:lib split out global workgroup and netbios name functions.
Having these in their own file allows easier selective inclusion.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>